Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 169708
b: refs/heads/master
c: 78075ca
h: refs/heads/master
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo authored and Ingo Molnar committed Nov 21, 2009
1 parent bd58e1b commit 954b09f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fd7a346ea292074e9f6cdb5232a57c56bf98fdc9
refs/heads/master: 78075caad99dc36ec6ef5826b7a5273ea14295fc
8 changes: 6 additions & 2 deletions trunk/tools/perf/util/symbol.c
Original file line number Diff line number Diff line change
Expand Up @@ -884,6 +884,11 @@ static int dso__load_sym(struct dso *self, struct map *map, const char *name,
return err;
}

static bool dso__build_id_equal(const struct dso *self, u8 *build_id)
{
return memcmp(self->build_id, build_id, sizeof(self->build_id)) == 0;
}

bool dsos__read_build_ids(void)
{
bool have_build_id = false;
Expand Down Expand Up @@ -1099,8 +1104,7 @@ int dso__load(struct dso *self, struct map *map, symbol_filter_t filter)
sizeof(build_id)) < 0)
goto more;
compare_build_id:
if (memcmp(build_id, self->build_id,
sizeof(self->build_id)) != 0)
if (!dso__build_id_equal(self, build_id))
goto more;
}

Expand Down

0 comments on commit 954b09f

Please sign in to comment.