diff options
author | Jiri Olsa <jolsa@kernel.org> | 2018-08-17 11:48:07 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2018-08-20 08:54:59 -0300 |
commit | 2af5247530e073f4146d74ecd96cf64c953c001c (patch) | |
tree | f20b283d29fcbdfe2a69ecdfae4e1885c5c12f02 /tools/perf/util/machine.c | |
parent | 4b838b0db4e9cb3892b181ea9adc13cefb90d210 (diff) | |
download | linux-2af5247530e073f4146d74ecd96cf64c953c001c.tar.gz linux-2af5247530e073f4146d74ecd96cf64c953c001c.tar.bz2 linux-2af5247530e073f4146d74ecd96cf64c953c001c.zip |
perf tools: Store compression id into struct dso
Add comp to 'struct dso' to hold the compression index. It will be used
in the following patches.
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Michael Petlan <mpetlan@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20180817094813.15086-8-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/machine.c')
-rw-r--r-- | tools/perf/util/machine.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/perf/util/machine.c b/tools/perf/util/machine.c index b300a3973448..c4acd2001db0 100644 --- a/tools/perf/util/machine.c +++ b/tools/perf/util/machine.c @@ -1212,8 +1212,10 @@ static int map_groups__set_module_path(struct map_groups *mg, const char *path, * Full name could reveal us kmod compression, so * we need to update the symtab_type if needed. */ - if (m->comp && is_kmod_dso(map->dso)) + if (m->comp && is_kmod_dso(map->dso)) { map->dso->symtab_type++; + map->dso->comp = m->comp; + } return 0; } |