perf top: Use __map__is_kernel()
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 23 Apr 2018 19:40:02 +0000 (16:40 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 26 Apr 2018 12:30:27 +0000 (09:30 -0300)
commit68766bfa56476ee07217fc7f24a1d93f43125036
tree1c8b2d7cc83779da16b51c3be2b595d932094578
parentabc60bad0030193ffb55e438664bc09ac53939cf
perf top: Use __map__is_kernel()

Shorter form to figure out if a given map is the kernel one and also
reduces the number of code accessing MAP__{FUNCTION,VARIABLE}, that
should go away at some point.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: https://lkml.kernel.org/n/tip-rn8pexelsxpx92ce3elu3wiw@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-top.c