]> git.baikalelectronics.ru Git - kernel.git/commit
perf sort: Introduce addr_map_symbol__srcline() to make code more compact
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 28 May 2018 14:11:47 +0000 (11:11 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 4 Jun 2018 13:28:52 +0000 (10:28 -0300)
commit383973bff94973913b7d67c6d6b616139018635d
tree1b85fa0b658d3a431b57981aaf85f3525b5211a3
parent331004cd65bbe9ba36b8133c44c3dd07336e63f8
perf sort: Introduce addr_map_symbol__srcline() to make code more compact

Since we have 'struct addr_map_symbol' and the srcline sort order keys
all operate on those, make the code more compact by introducing a
function that receives a pointer to such struct and expands the
arguments to map__srcline().

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-j540wq7n3ukkh70gk5be0in5@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/sort.c