perf header: Transform nodes string info to struct
authorJiri Olsa <jolsa@kernel.org>
Mon, 4 Jul 2016 12:16:20 +0000 (14:16 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 4 Jul 2016 22:39:01 +0000 (19:39 -0300)
commitc60da22aca8755b77b7f4d4caf57ada8654db939
tree850dc675f62c2f3a3097a6d411d346002d86d067
parent6430a94ead2a4c8f350441351a735303eb6d1c8a
perf header: Transform nodes string info to struct

Storing NUMA info within struct numa_node instead of strings. This way
it's usable in future patches.

Also it turned out it's slightly less code involved than using strings.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1467634583-29147-2-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/env.c
tools/perf/util/env.h
tools/perf/util/header.c