mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
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 <jolsa@kernel.org> Acked-by: Ian Rogers <irogers@google.com> Link: https://lore.kernel.org/r/20201013192441.1299447-2-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
committed by
Arnaldo Carvalho de Melo
parent
79bbbabd22
commit
0aba7f036a
@@ -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,
|
||||
|
Reference in New Issue
Block a user