summaryrefslogtreecommitdiffstats
path: root/collectors/ebpf.plugin/ebpf_hardirq.c
diff options
context:
space:
mode:
authorthiagoftsm <thiagoftsm@gmail.com>2021-09-20 16:51:58 +0000
committerGitHub <noreply@github.com>2021-09-20 16:51:58 +0000
commit4e828eb9b58be82a557344ee6a7747043274ee01 (patch)
tree042da7b2caa7de87d7b0e10d2327370fd3b84795 /collectors/ebpf.plugin/ebpf_hardirq.c
parentcb405deec824848fada38d363cfafa557f6727a4 (diff)
Update libbpf (#11480)
Diffstat (limited to 'collectors/ebpf.plugin/ebpf_hardirq.c')
-rw-r--r--collectors/ebpf.plugin/ebpf_hardirq.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/collectors/ebpf.plugin/ebpf_hardirq.c b/collectors/ebpf.plugin/ebpf_hardirq.c
index 29ece2ddf2..e1c52bcd29 100644
--- a/collectors/ebpf.plugin/ebpf_hardirq.c
+++ b/collectors/ebpf.plugin/ebpf_hardirq.c
@@ -36,8 +36,6 @@ static ebpf_local_maps_t hardirq_maps[] = {
}
};
-static ebpf_data_t hardirq_data;
-
#define HARDIRQ_TP_CLASS_IRQ "irq"
#define HARDIRQ_TP_CLASS_IRQ_VECTORS "irq_vectors"
static ebpf_tracepoint_t hardirq_tracepoints[] = {
@@ -466,22 +464,16 @@ void *ebpf_hardirq_thread(void *ptr)
ebpf_module_t *em = (ebpf_module_t *)ptr;
em->maps = hardirq_maps;
- fill_ebpf_data(&hardirq_data);
-
if (!em->enabled) {
goto endhardirq;
}
- if (ebpf_update_kernel(&hardirq_data)) {
- goto endhardirq;
- }
-
if (ebpf_enable_tracepoints(hardirq_tracepoints) == 0) {
em->enabled = CONFIG_BOOLEAN_NO;
goto endhardirq;
}
- probe_links = ebpf_load_program(ebpf_plugin_dir, em, kernel_string, &objects, hardirq_data.map_fd);
+ probe_links = ebpf_load_program(ebpf_plugin_dir, em, kernel_string, &objects);
if (!probe_links) {
goto endhardirq;
}