diff options
author | Don Zickus <dzickus@redhat.com> | 2014-05-19 23:13:49 +0400 |
---|---|---|
committer | Jiri Olsa <jolsa@kernel.org> | 2014-06-09 15:34:45 +0400 |
commit | 7ef807034ef33f8afe33fa7957c73954e8e4f89c (patch) | |
tree | e463ee2fc5566d80059985587b60d8ffcbdc5aa7 /tools/perf/util/map.c | |
parent | f972eb63b1003fae68d7b7e9b674d4ba5db681c2 (diff) | |
download | linux-7ef807034ef33f8afe33fa7957c73954e8e4f89c.tar.xz |
perf tools: Update mmap2 interface with protection and flag bits
The kernel piece passes more info now. Update the perf tool to reflect
that and adjust the synthesized maps to play along.
Signed-off-by: Don Zickus <dzickus@redhat.com>
Link: http://lkml.kernel.org/r/1400526833-141779-4-git-send-email-dzickus@redhat.com
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Diffstat (limited to 'tools/perf/util/map.c')
-rw-r--r-- | tools/perf/util/map.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/perf/util/map.c b/tools/perf/util/map.c index 8ccbb32eda25..25c571f4cba6 100644 --- a/tools/perf/util/map.c +++ b/tools/perf/util/map.c @@ -138,7 +138,7 @@ void map__init(struct map *map, enum map_type type, struct map *map__new(struct list_head *dsos__list, u64 start, u64 len, u64 pgoff, u32 pid, u32 d_maj, u32 d_min, u64 ino, - u64 ino_gen, char *filename, + u64 ino_gen, u32 prot, u32 flags, char *filename, enum map_type type) { struct map *map = malloc(sizeof(*map)); @@ -157,6 +157,8 @@ struct map *map__new(struct list_head *dsos__list, u64 start, u64 len, map->min = d_min; map->ino = ino; map->ino_generation = ino_gen; + map->prot = prot; + map->flags = flags; if ((anon || no_dso) && type == MAP__FUNCTION) { snprintf(newfilename, sizeof(newfilename), "/tmp/perf-%d.map", pid); |