]> git.baikalelectronics.ru Git - kernel.git/commit
perf tools: Add numa_topology object
authorJiri Olsa <jolsa@kernel.org>
Tue, 19 Feb 2019 09:58:14 +0000 (10:58 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 19 Feb 2019 15:21:06 +0000 (12:21 -0300)
commitbd94596b8a201915eac625a558f45b2362fec33d
tree5c3dd2981a49b4b1b67a1813125a7cb1b35660a6
parent9beeaf4b194460b32cfcf126f2163f1cc3a36967
perf tools: Add numa_topology object

Add the numa_topology object to return the list of numa nodes together
with their cpus. It will replace the numa code in header.c and will be
used from 'perf record' in the following patches.

Add the following interface functions to load numa details:

  struct numa_topology *numa_topology__new(void);
  void numa_topology__delete(struct numa_topology *tp);

And replace the current (copied) local interface, with no functional
changes.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20190219095815.15931-4-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/cputopo.c
tools/perf/util/cputopo.h
tools/perf/util/header.c