perf srcline: Introduce map__srcline() to make code more compact
commite2d88aaa649e65851463426b133d87b61d3accbd
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 28 May 2018 14:05:20 +0000 (28 11:05 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 4 Jun 2018 13:28:52 +0000 (4 10:28 -0300)
treec0cc4ebd2f25f237e668b12f2ed561beba3974a0
parent982d410bc6b405a75086236d3c1da1f18c40d6dd
perf srcline: Introduce map__srcline() to make code more compact

Replacing a common open coded sequence.

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