|
@@ -109,6 +109,7 @@ int sample__fprintf_callchain(struct perf_sample *sample, int left_alignment,
|
|
|
int print_srcline = print_opts & EVSEL__PRINT_SRCLINE;
|
|
|
int print_unknown_as_addr = print_opts & EVSEL__PRINT_UNKNOWN_AS_ADDR;
|
|
|
int print_arrow = print_opts & EVSEL__PRINT_CALLCHAIN_ARROW;
|
|
|
+ int print_skip_ignored = print_opts & EVSEL__PRINT_SKIP_IGNORED;
|
|
|
char s = print_oneline ? ' ' : '\t';
|
|
|
bool first = true;
|
|
|
|
|
@@ -124,6 +125,9 @@ int sample__fprintf_callchain(struct perf_sample *sample, int left_alignment,
|
|
|
if (!node)
|
|
|
break;
|
|
|
|
|
|
+ if (node->sym && node->sym->ignore && print_skip_ignored)
|
|
|
+ goto next;
|
|
|
+
|
|
|
printed += fprintf(fp, "%-*.*s", left_alignment, left_alignment, " ");
|
|
|
|
|
|
if (print_arrow && !first)
|
|
@@ -162,8 +166,9 @@ int sample__fprintf_callchain(struct perf_sample *sample, int left_alignment,
|
|
|
if (!print_oneline)
|
|
|
printed += fprintf(fp, "\n");
|
|
|
|
|
|
- callchain_cursor_advance(cursor);
|
|
|
first = false;
|
|
|
+next:
|
|
|
+ callchain_cursor_advance(cursor);
|
|
|
}
|
|
|
}
|
|
|
|