OSDN Git Service

perf srccode: Move struct definition from map.h to srccode.h
authorArnaldo Carvalho de Melo <acme@redhat.com>
Sun, 27 Jan 2019 10:31:39 +0000 (11:31 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 6 Feb 2019 13:00:38 +0000 (10:00 -0300)
commit4fed072609b8aae27eac7169033f762867a5ab4c
treeac3306d84addf8b26097c7d857fe18b1a148eff1
parentaf1db7f6b7323ab9f7beffe6028f421f4c398e7f
perf srccode: Move struct definition from map.h to srccode.h

To reduce the header dependencies, since we already have a srccode.h
header, then there is where the 'struct srccode_state' should be, and
map.h, that is more widely used should have just a forward declaraion
of 'struct srccode_state'.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lkml.kernel.org/n/tip-64lrkjjaa7wlo1zi2gr5u3es@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/map.h
tools/perf/util/srccode.h
tools/perf/util/thread.h