Skip to content

Commit 232981c

Browse files
d-e-s-oanakryiko
authored andcommitted
deps: update blazesym submodule to v0.2.0-rc.1
Update the blazesym submodule to version 0.2.0-rc.1 (well, actually to 0.1.0-rc.1 of blazesym-c, but they are effectively the same). Signed-off-by: Daniel Müller <[email protected]>
1 parent 70de71d commit 232981c

File tree

3 files changed

+40
-15
lines changed

3 files changed

+40
-15
lines changed

blazesym

Submodule blazesym updated 66 files

examples/c/profile.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ static void print_frame(const char *name, uintptr_t input_addr, uintptr_t addr,
6161
static void show_stack_trace(__u64 *stack, int stack_sz, pid_t pid)
6262
{
6363
const struct blaze_symbolize_inlined_fn* inlined;
64-
const struct blaze_result *result;
64+
const struct blaze_syms *syms;
6565
const struct blaze_sym *sym;
6666
int i, j;
6767

@@ -72,26 +72,26 @@ static void show_stack_trace(__u64 *stack, int stack_sz, pid_t pid)
7272
.type_size = sizeof(src),
7373
.pid = pid,
7474
};
75-
result = blaze_symbolize_process_abs_addrs(symbolizer, &src, (const uintptr_t *)stack, stack_sz);
75+
syms = blaze_symbolize_process_abs_addrs(symbolizer, &src, (const uintptr_t *)stack, stack_sz);
7676
} else {
7777
struct blaze_symbolize_src_kernel src = {
7878
.type_size = sizeof(src),
7979
};
80-
result = blaze_symbolize_kernel_abs_addrs(symbolizer, &src, (const uintptr_t *)stack, stack_sz);
80+
syms = blaze_symbolize_kernel_abs_addrs(symbolizer, &src, (const uintptr_t *)stack, stack_sz);
8181
}
8282

83-
if (result == NULL) {
83+
if (syms == NULL) {
8484
printf(" failed to symbolize addresses: %s\n", blaze_err_str(blaze_err_last()));
8585
return;
8686
}
8787

8888
for (i = 0; i < stack_sz; i++) {
89-
if (!result || result->cnt <= i || result->syms[i].name == NULL) {
89+
if (!syms || syms->cnt <= i || syms->syms[i].name == NULL) {
9090
printf("%016llx: <no-symbol>\n", stack[i]);
9191
continue;
9292
}
9393

94-
sym = &result->syms[i];
94+
sym = &syms->syms[i];
9595
print_frame(sym->name, stack[i], sym->addr, sym->offset, &sym->code_info);
9696

9797
for (j = 0; j < sym->inlined_cnt; j++) {
@@ -100,7 +100,7 @@ static void show_stack_trace(__u64 *stack, int stack_sz, pid_t pid)
100100
}
101101
}
102102

103-
blaze_result_free(result);
103+
blaze_syms_free(syms);
104104
}
105105

106106
/* Receive events from the ring buffer. */

examples/rust/Cargo.lock

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

0 commit comments

Comments
 (0)