perf tools: Remove addr_location argument to sample__fprintf_callchain

Not used at all, nuke it.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-jf2w8ce8nl3wso3vuodg5jci@git.kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 6f736735
...@@ -1898,8 +1898,7 @@ static int trace__fprintf_callchain(struct trace *trace, struct perf_evsel *evse ...@@ -1898,8 +1898,7 @@ static int trace__fprintf_callchain(struct trace *trace, struct perf_evsel *evse
return 0; return 0;
} }
return sample__fprintf_callchain(sample, &al, 38, print_opts, return sample__fprintf_callchain(sample, 38, print_opts, &callchain_cursor, trace->output);
&callchain_cursor, trace->output);
} }
static int trace__sys_exit(struct trace *trace, struct perf_evsel *evsel, static int trace__sys_exit(struct trace *trace, struct perf_evsel *evsel,
......
...@@ -2343,8 +2343,7 @@ int perf_evsel__fprintf(struct perf_evsel *evsel, ...@@ -2343,8 +2343,7 @@ int perf_evsel__fprintf(struct perf_evsel *evsel,
return ++printed; return ++printed;
} }
int sample__fprintf_callchain(struct perf_sample *sample, int sample__fprintf_callchain(struct perf_sample *sample, int left_alignment,
struct addr_location *al, int left_alignment,
unsigned int print_opts, struct callchain_cursor *cursor, unsigned int print_opts, struct callchain_cursor *cursor,
FILE *fp) FILE *fp)
{ {
...@@ -2364,9 +2363,6 @@ int sample__fprintf_callchain(struct perf_sample *sample, ...@@ -2364,9 +2363,6 @@ int sample__fprintf_callchain(struct perf_sample *sample,
callchain_cursor_commit(cursor); callchain_cursor_commit(cursor);
if (print_symoffset)
node_al = *al;
while (1) { while (1) {
u64 addr = 0; u64 addr = 0;
...@@ -2431,7 +2427,7 @@ int sample__fprintf_sym(struct perf_sample *sample, struct addr_location *al, ...@@ -2431,7 +2427,7 @@ int sample__fprintf_sym(struct perf_sample *sample, struct addr_location *al,
int print_unknown_as_addr = print_opts & EVSEL__PRINT_UNKNOWN_AS_ADDR; int print_unknown_as_addr = print_opts & EVSEL__PRINT_UNKNOWN_AS_ADDR;
if (cursor != NULL) { if (cursor != NULL) {
printed += sample__fprintf_callchain(sample, al, left_alignment, printed += sample__fprintf_callchain(sample, left_alignment,
print_opts, cursor, fp); print_opts, cursor, fp);
} else if (!(al->sym && al->sym->ignore)) { } else if (!(al->sym && al->sym->ignore)) {
printed += fprintf(fp, "%-*.*s", left_alignment, left_alignment, " "); printed += fprintf(fp, "%-*.*s", left_alignment, left_alignment, " ");
......
...@@ -397,8 +397,8 @@ int perf_evsel__fprintf(struct perf_evsel *evsel, ...@@ -397,8 +397,8 @@ int perf_evsel__fprintf(struct perf_evsel *evsel,
struct callchain_cursor; struct callchain_cursor;
int sample__fprintf_callchain(struct perf_sample *sample, struct addr_location *al, int sample__fprintf_callchain(struct perf_sample *sample, int left_alignment,
int left_alignment, unsigned int print_opts, unsigned int print_opts,
struct callchain_cursor *cursor, FILE *fp); struct callchain_cursor *cursor, FILE *fp);
int sample__fprintf_sym(struct perf_sample *sample, struct addr_location *al, int sample__fprintf_sym(struct perf_sample *sample, struct addr_location *al,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment