Skip to content

Commit

Permalink
Fix counter typo (exausted -> exhausted)
Browse files Browse the repository at this point in the history
  • Loading branch information
javierhonduco committed Dec 2, 2024
1 parent f723557 commit 4429694
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/bpf/profiler.bpf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/bpf/profiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/bpf/profiler_bindings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/bpf/shared_maps.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4429694

Please sign in to comment.