Skip to content

Commit 23f3b6e

Browse files
d-e-s-oanakryiko
authored andcommitted
deps: update blazesym submodule to v0.2.0-alpha.8
Update the blazesym submodule to version 0.2.0-alpha.8. Signed-off-by: Daniel Müller <deso@posteo.net>
1 parent d78c929 commit 23f3b6e

File tree

4 files changed

+6
-37
lines changed

4 files changed

+6
-37
lines changed

examples/c/profile.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,16 @@ static void show_stack_trace(__u64 *stack, int stack_sz, pid_t pid)
7171
struct blaze_symbolize_src_process src = {
7272
.pid = pid,
7373
};
74-
result = blaze_symbolize_process(symbolizer, &src, (const uintptr_t *)stack, stack_sz);
74+
result = blaze_symbolize_process_virt_addrs(symbolizer, &src, (const uintptr_t *)stack, stack_sz);
7575
} else {
7676
struct blaze_symbolize_src_kernel src = {};
77-
result = blaze_symbolize_kernel(symbolizer, &src, (const uintptr_t *)stack, stack_sz);
77+
result = blaze_symbolize_kernel_virt_addrs(symbolizer, &src, (const uintptr_t *)stack, stack_sz);
7878
}
7979

8080

8181
for (i = 0; i < stack_sz; i++) {
8282
if (!result || result->cnt <= i || result->syms[i].name == NULL) {
83-
printf(" %2d [<%016llx>]\n", i, stack[i]);
83+
printf("%016llx: <no-symbol>\n", stack[i]);
8484
continue;
8585
}
8686

examples/rust/Cargo.lock

Lines changed: 1 addition & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/rust/profile/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ fn show_stack_trace(stack: &[u64], symbolizer: &symbolize::Symbolizer, pid: u32)
126126
symbolize::Source::from(symbolize::Process::new(pid.into()))
127127
};
128128

129-
let syms = match symbolizer.symbolize(&src, stack) {
129+
let syms = match symbolizer.symbolize(&src, symbolize::Input::AbsAddr(stack)) {
130130
Ok(syms) => syms,
131131
Err(err) => {
132132
eprintln!(" failed to symbolize addresses: {err:#}");

0 commit comments

Comments
 (0)