perf hist: Move histogram related code to hist.h
authorNamhyung Kim <namhyung@kernel.org>
Thu, 11 Apr 2024 18:17:16 +0000 (11:17 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 17 Apr 2024 15:21:39 +0000 (12:21 -0300)
commit0993d724674a9d905ebdc9b9cd0b64e30523c5d6
tree0e0460bcbdcd2101a67ebf779a4eabf65693a1fc
parenta5a00497b9dfefbf6872f387bc7692919e1785d3
perf hist: Move histogram related code to hist.h

It's strange that sort.h has the definition of struct hist_entry.  As
sort.h already includes hist.h, let's move the data structure to hist.h.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Athira Rajeev <atrajeev@linux.vnet.ibm.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: https://lore.kernel.org/r/20240411181718.2367948-1-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/hist.h
tools/perf/util/sort.h
tools/perf/util/values.h