[PATCH 2/3] perf tools: Add perf_env__numa_node function

2019-09-04 Thread Jiri Olsa
To speed up cpu to node lookup, adding perf_env__numa_node function, that creates cpu array on the first lookup, that holds numa nodes for each stored cpu. Link: http://lkml.kernel.org/n/tip-qqwxklhissf3yjyuaszh6...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/env.c | 40 +

Re: [PATCH 2/3] perf tools: Add perf_env__numa_node function

2019-09-02 Thread Jiri Olsa
On Mon, Sep 02, 2019 at 10:57:10AM -0300, Arnaldo Carvalho de Melo wrote: > Em Mon, Sep 02, 2019 at 02:12:54PM +0200, Jiri Olsa escreveu: > > To speed up cpu to node lookup, adding perf_env__numa_node > > function, that creates cpu array on the first lookup, that > > holds numa nodes for each store

Re: [PATCH 2/3] perf tools: Add perf_env__numa_node function

2019-09-02 Thread Arnaldo Carvalho de Melo
Em Mon, Sep 02, 2019 at 02:12:54PM +0200, Jiri Olsa escreveu: > To speed up cpu to node lookup, adding perf_env__numa_node > function, that creates cpu array on the first lookup, that > holds numa nodes for each stored cpu. > > Link: http://lkml.kernel.org/n/tip-qqwxklhissf3yjyuaszh6...@git.kernel

[PATCH 2/3] perf tools: Add perf_env__numa_node function

2019-09-02 Thread Jiri Olsa
To speed up cpu to node lookup, adding perf_env__numa_node function, that creates cpu array on the first lookup, that holds numa nodes for each stored cpu. Link: http://lkml.kernel.org/n/tip-qqwxklhissf3yjyuaszh6...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/env.c | 35 +