diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2014-07-22 09:18:00 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2014-07-23 16:37:26 -0400 |
commit | 5835eddab6f162b38e9a6a5447a2c3a128637956 (patch) | |
tree | 14c0f8417c2bcb1beb04dd7a98f6e097216aa43d /tools/perf/util/map.c | |
parent | 2b5b8bb27b9ec899cfba686dabec113ea0d4cbda (diff) |
perf tools: Add thread parameter to vdso__dso_findnew()
The thread will be needed to determine the VDSO type.
Reviewed-by: Jiri Olsa <jolsa@redhat.com>
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1406035081-14301-52-git-send-email-adrian.hunter@intel.com
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/util/map.c b/tools/perf/util/map.c index dffc8dce6046..31b8905dd863 100644 --- a/tools/perf/util/map.c +++ b/tools/perf/util/map.c | |||
@@ -141,7 +141,7 @@ void map__init(struct map *map, enum map_type type, | |||
141 | struct map *map__new(struct machine *machine, u64 start, u64 len, | 141 | struct map *map__new(struct machine *machine, u64 start, u64 len, |
142 | u64 pgoff, u32 pid, u32 d_maj, u32 d_min, u64 ino, | 142 | u64 pgoff, u32 pid, u32 d_maj, u32 d_min, u64 ino, |
143 | u64 ino_gen, u32 prot, u32 flags, char *filename, | 143 | u64 ino_gen, u32 prot, u32 flags, char *filename, |
144 | enum map_type type) | 144 | enum map_type type, struct thread *thread) |
145 | { | 145 | { |
146 | struct map *map = malloc(sizeof(*map)); | 146 | struct map *map = malloc(sizeof(*map)); |
147 | 147 | ||
@@ -174,7 +174,7 @@ struct map *map__new(struct machine *machine, u64 start, u64 len, | |||
174 | 174 | ||
175 | if (vdso) { | 175 | if (vdso) { |
176 | pgoff = 0; | 176 | pgoff = 0; |
177 | dso = vdso__dso_findnew(machine); | 177 | dso = vdso__dso_findnew(machine, thread); |
178 | } else | 178 | } else |
179 | dso = __dsos__findnew(&machine->user_dsos, filename); | 179 | dso = __dsos__findnew(&machine->user_dsos, filename); |
180 | 180 | ||