diff options
author | 2020-10-13 21:24:40 +0200 | |
---|---|---|
committer | 2020-10-14 11:28:52 -0300 | |
commit | e9ad94381cd0c694080810aea430130bb0b0e404 (patch) | |
tree | 7bf82d73d9f93729e6d34516d279bbb128918e90 /tools/perf/util/dso.c | |
parent | perf tools: Add size to 'struct perf_record_header_build_id' (diff) | |
download | linux-e9ad94381cd0c694080810aea430130bb0b0e404.tar.gz linux-e9ad94381cd0c694080810aea430130bb0b0e404.tar.bz2 linux-e9ad94381cd0c694080810aea430130bb0b0e404.zip |
perf tools: Align buildid list output for short build ids
With shorter md5 build ids we need to align their paths properly with
other build ids:
$ perf buildid-list
17f4e448cc746582ea1881528deb549f7fdb3fd5 [kernel.kallsyms]
a50e350e97c43b4708d09bcd85ebfff7 .../tools/perf/buildid-ex-md5
1805c738c8f3ec0f47b7ea09080c28f34d18a82b /usr/lib64/ld-2.31.so
$
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Acked-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20201013192441.1299447-9-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/dso.c')
-rw-r--r-- | tools/perf/util/dso.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/dso.c b/tools/perf/util/dso.c index ca965845b35e..55c11e854fe4 100644 --- a/tools/perf/util/dso.c +++ b/tools/perf/util/dso.c @@ -1369,7 +1369,7 @@ int dso__kernel_module_get_build_id(struct dso *dso, return 0; } -size_t dso__fprintf_buildid(struct dso *dso, FILE *fp) +static size_t dso__fprintf_buildid(struct dso *dso, FILE *fp) { char sbuild_id[SBUILD_ID_SIZE]; |