diff options
| author | Jiri Olsa <[email protected]> | 2020-10-13 19:24:33 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2020-10-14 11:44:47 +0000 |
| commit | 0aba7f036a56675b7fdc536757b4c49fc76a2208 (patch) | |
| tree | 02ec0c96f9e8f6d50aeaad0f29ea67ef0b0fd1a9 /tools/perf/util/annotate.c | |
| parent | perf config: Export the perf_config_from_file() function (diff) | |
| download | kernel-0aba7f036a56675b7fdc536757b4c49fc76a2208.tar.gz kernel-0aba7f036a56675b7fdc536757b4c49fc76a2208.zip | |
perf tools: Use build_id object in dso
Replace build_id byte array with struct build_id object and all the code
that references it.
The objective is to carry size together with build id array, so it's
better to keep both together.
This is preparatory change for following patches, and there's no
functional change.
Signed-off-by: Jiri Olsa <[email protected]>
Acked-by: Ian Rogers <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/annotate.c')
| -rw-r--r-- | tools/perf/util/annotate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c index fc17af7ba845..a016e1bd7b8d 100644 --- a/tools/perf/util/annotate.c +++ b/tools/perf/util/annotate.c @@ -1578,8 +1578,8 @@ int symbol__strerror_disassemble(struct map_symbol *ms, int errnum, char *buf, s char *build_id_msg = NULL; if (dso->has_build_id) { - build_id__sprintf(dso->build_id, - sizeof(dso->build_id), bf + 15); + build_id__sprintf(dso->bid.data, + sizeof(dso->bid.data), bf + 15); build_id_msg = bf; } scnprintf(buf, buflen, |
