mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
perf machine: Add method for common kernel_map(FUNCTION) operation
And it is also a step in the direction of killing the separation of data and text maps in map_groups. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Wang Nan <wangnan0@huawei.com> Link: http://lkml.kernel.org/n/tip-rrds86kb3wx5wk8v38v56gw8@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
77e6597749
commit
a5e813c686
10 changed files with 25 additions and 20 deletions
|
@ -473,7 +473,7 @@ static int do_test_code_reading(bool try_kcore)
|
|||
symbol_conf.kallsyms_name = "/proc/kallsyms";
|
||||
|
||||
/* Load kernel map */
|
||||
map = machine__kernel_map(machine, MAP__FUNCTION);
|
||||
map = machine__kernel_map(machine);
|
||||
ret = map__load(map, NULL);
|
||||
if (ret < 0) {
|
||||
pr_debug("map__load failed\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue