perf tools: Add machine__kernel_ip()
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 15 Aug 2014 19:08:39 +0000 (22:08 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 22 Aug 2014 16:12:12 +0000 (13:12 -0300)
commitfbe2af45f6bd27ee69fd775303c936c3af4a4807
treea3592cf08457e8f6735eec760ee2ee74c06d0866
parent4b99375b38fa137f501cfa60b70e3f0a9da39c93
perf tools: Add machine__kernel_ip()

Add a function to determine if an address is in the kernel.  This is
based on the kernel function kernel_ip().

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/1408129739-17368-5-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/event.c
tools/perf/util/machine.c
tools/perf/util/machine.h