diff options
author | thiagoftsm <thiagoftsm@gmail.com> | 2023-10-11 08:46:23 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-11 11:46:23 +0000 |
commit | 2539cb7ee65f6c5a1e0ccd041aced7a9608b0369 (patch) | |
tree | c8aa4183a4238e36f7dd94643acadfc140a7ec2b /collectors/ebpf.plugin/ebpf_socket.c | |
parent | f7789e1a83fa819cb072b7d818aef1ceb79c1bcb (diff) |
Modify eBPF exit (#16159)
Diffstat (limited to 'collectors/ebpf.plugin/ebpf_socket.c')
-rw-r--r-- | collectors/ebpf.plugin/ebpf_socket.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/collectors/ebpf.plugin/ebpf_socket.c b/collectors/ebpf.plugin/ebpf_socket.c index 33a82dec0e..3e38975514 100644 --- a/collectors/ebpf.plugin/ebpf_socket.c +++ b/collectors/ebpf.plugin/ebpf_socket.c @@ -1756,9 +1756,9 @@ void *ebpf_read_socket_thread(void *ptr) uint32_t running_time = 0; uint32_t lifetime = em->lifetime; usec_t period = update_every * USEC_PER_SEC; - while (!ebpf_exit_plugin && running_time < lifetime) { + while (!ebpf_plugin_exit && running_time < lifetime) { (void)heartbeat_next(&hb, period); - if (ebpf_exit_plugin || ++counter != update_every) + if (ebpf_plugin_exit || ++counter != update_every) continue; ebpf_update_array_vectors(em); @@ -2490,9 +2490,9 @@ static void socket_collector(ebpf_module_t *em) uint32_t lifetime = em->lifetime; netdata_idx_t *stats = em->hash_table_stats; memset(stats, 0, sizeof(em->hash_table_stats)); - while (!ebpf_exit_plugin && running_time < lifetime) { + while (!ebpf_plugin_exit && running_time < lifetime) { (void)heartbeat_next(&hb, USEC_PER_SEC); - if (ebpf_exit_plugin || ++counter != update_every) + if (ebpf_plugin_exit || ++counter != update_every) continue; counter = 0; |