aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/map.c
diff options
context:
space:
mode:
authorGravatar Arnaldo Carvalho de Melo <acme@redhat.com> 2019-11-19 12:26:19 -0300
committerGravatar Arnaldo Carvalho de Melo <acme@redhat.com> 2019-11-19 15:09:26 -0300
commit99459a84d5870a88274b4f10bc85c3e39e1d642c (patch)
tree777a3e06a3f80e63216389d13b3d3f93e4afcbc2 /tools/perf/util/map.c
parentMerge tag 'perf-core-for-mingo-5.5-20191119' of git://git.kernel.org/pub/scm/... (diff)
downloadlinux-99459a84d5870a88274b4f10bc85c3e39e1d642c.tar.gz
linux-99459a84d5870a88274b4f10bc85c3e39e1d642c.tar.bz2
linux-99459a84d5870a88274b4f10bc85c3e39e1d642c.zip
perf map: Move maj/min/ino/ino_generation to separate struct
And this patch highlights where these fields are being used: in the sort order where it uses it to compare maps and classify samples taking into account not just the DSO, but those DSO id fields. I think these should be used to differentiate DSOs with the same name but different 'struct dso_id' fields, i.e. these fields should move to 'struct dso' and then be used as part of the key when doing lookups for DSOs, in addition to the DSO name. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Link: https://lkml.kernel.org/n/tip-8v5isitqy0dup47nnwkpc80f@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/map.c')
-rw-r--r--tools/perf/util/map.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/perf/util/map.c b/tools/perf/util/map.c
index 67e0f81416cb..4f50b1b2961f 100644
--- a/tools/perf/util/map.c
+++ b/tools/perf/util/map.c
@@ -162,10 +162,10 @@ struct map *map__new(struct machine *machine, u64 start, u64 len,
vdso = is_vdso_map(filename);
no_dso = is_no_dso_memory(filename);
- map->maj = d_maj;
- map->min = d_min;
- map->ino = ino;
- map->ino_generation = ino_gen;
+ map->dso_id.maj = d_maj;
+ map->dso_id.min = d_min;
+ map->dso_id.ino = ino;
+ map->dso_id.ino_generation = ino_gen;
map->prot = prot;
map->flags = flags;
nsi = nsinfo__get(thread->nsinfo);