perf tools: Pass build_id object to dso__set_build_id()
Passing build_id object to dso__set_build_id(), so it's easier to initialize dos's build id object. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Acked-by: Ian Rogers <irogers@google.com> Link: https://lore.kernel.org/r/20201013192441.1299447-6-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
bf5411695a
commit
8dfdf440d3
@@ -1326,9 +1326,9 @@ void dso__put(struct dso *dso)
|
||||
dso__delete(dso);
|
||||
}
|
||||
|
||||
void dso__set_build_id(struct dso *dso, void *build_id)
|
||||
void dso__set_build_id(struct dso *dso, struct build_id *bid)
|
||||
{
|
||||
memcpy(dso->bid.data, build_id, sizeof(dso->bid.data));
|
||||
dso->bid = *bid;
|
||||
dso->has_build_id = 1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user