From 4429694ea751deb394f6d86426c71b207f6e9ab9 Mon Sep 17 00:00:00 2001 From: Francisco Javier Honduvilla Coto Date: Mon, 2 Dec 2024 10:37:38 +0000 Subject: [PATCH] Fix counter typo (exausted -> exhausted) --- src/bpf/profiler.bpf.c | 2 +- src/bpf/profiler.h | 2 +- src/bpf/profiler_bindings.rs | 4 ++-- src/bpf/shared_maps.h | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/bpf/profiler.bpf.c b/src/bpf/profiler.bpf.c index e344778..5216344 100644 --- a/src/bpf/profiler.bpf.c +++ b/src/bpf/profiler.bpf.c @@ -422,7 +422,7 @@ int dwarf_unwind(struct bpf_perf_event_data *ctx) { if (!in_previous_page) { LOG("[error] binary search failed with %llx, pc: %llx", table_idx, unwind_state->ip); if (table_idx == BINARY_SEARCH_EXHAUSTED_ITERATIONS) { - bump_unwind_error_binary_search_exausted_iterations(); + bump_unwind_error_binary_search_exhausted_iterations(); } return 1; } diff --git a/src/bpf/profiler.h b/src/bpf/profiler.h index c90893e..c2d0bc7 100644 --- a/src/bpf/profiler.h +++ b/src/bpf/profiler.h @@ -103,7 +103,7 @@ struct unwinder_stats_t { u64 error_mapping_not_found; u64 error_mapping_does_not_contain_pc; u64 error_chunk_not_found; - u64 error_binary_search_exausted_iterations; + u64 error_binary_search_exhausted_iterations; u64 error_sending_new_process_event; u64 error_cfa_offset_did_not_fit; u64 error_rbp_offset_did_not_fit; diff --git a/src/bpf/profiler_bindings.rs b/src/bpf/profiler_bindings.rs index 45075c6..38a756b 100644 --- a/src/bpf/profiler_bindings.rs +++ b/src/bpf/profiler_bindings.rs @@ -55,8 +55,8 @@ impl Add for unwinder_stats_t { error_previous_rbp_zero: self.error_previous_rbp_zero + other.error_previous_rbp_zero, error_should_never_happen: self.error_should_never_happen + other.error_should_never_happen, - error_binary_search_exausted_iterations: self.error_binary_search_exausted_iterations - + other.error_binary_search_exausted_iterations, + error_binary_search_exhausted_iterations: self.error_binary_search_exhausted_iterations + + other.error_binary_search_exhausted_iterations, error_chunk_not_found: self.error_chunk_not_found + other.error_chunk_not_found, error_mapping_does_not_contain_pc: self.error_mapping_does_not_contain_pc + other.error_mapping_does_not_contain_pc, diff --git a/src/bpf/shared_maps.h b/src/bpf/shared_maps.h index ec1345d..19c0485 100644 --- a/src/bpf/shared_maps.h +++ b/src/bpf/shared_maps.h @@ -41,7 +41,7 @@ DEFINE_COUNTER(error_should_never_happen); DEFINE_COUNTER(error_mapping_not_found); DEFINE_COUNTER(error_mapping_does_not_contain_pc); DEFINE_COUNTER(error_chunk_not_found); -DEFINE_COUNTER(error_binary_search_exausted_iterations); +DEFINE_COUNTER(error_binary_search_exhausted_iterations); DEFINE_COUNTER(error_sending_new_process_event); DEFINE_COUNTER(error_cfa_offset_did_not_fit); DEFINE_COUNTER(error_rbp_offset_did_not_fit);