Re: [PATCH 2/4] perf, kmem: Utilize the new generic cpunode_map

2014-04-07 Thread Don Zickus
On Sun, Apr 06, 2014 at 02:21:26PM +0200, Jiri Olsa wrote: > On Mon, Mar 31, 2014 at 10:42:30PM -0400, Don Zickus wrote: > > SNIP > > > > > -#define PATH_SYS_NODE "/sys/devices/system/node" > > > > - > > > > -static int init_cpunode_map(void) > > > > -{ > > > > - FILE *fp; > > > > -

Re: [PATCH 2/4] perf, kmem: Utilize the new generic cpunode_map

2014-04-06 Thread Jiri Olsa
On Mon, Mar 31, 2014 at 10:42:30PM -0400, Don Zickus wrote: SNIP > > > -#define PATH_SYS_NODE"/sys/devices/system/node" > > > - > > > -static int init_cpunode_map(void) > > > -{ > > > - FILE *fp; > > > - int i, err = -1; > > > - > > > - fp = fopen("/sys/devices/system/cpu/kernel_max", "r"); >

Re: [PATCH 2/4] perf, kmem: Utilize the new generic cpunode_map

2014-03-31 Thread Don Zickus
On Sat, Mar 29, 2014 at 06:10:47PM +0100, Jiri Olsa wrote: > On Mon, Mar 24, 2014 at 03:32:55PM -0400, Don Zickus wrote: > > Use the previous patch implementation of cpunode_map for builtin-kmem.c > > Should not be any functional difference. > > > > Cc: Li Zefan > > Signed-off-by: Don Zickus > >

Re: [PATCH 2/4] perf, kmem: Utilize the new generic cpunode_map

2014-03-29 Thread Jiri Olsa
On Mon, Mar 24, 2014 at 03:32:55PM -0400, Don Zickus wrote: > Use the previous patch implementation of cpunode_map for builtin-kmem.c > Should not be any functional difference. > > Cc: Li Zefan > Signed-off-by: Don Zickus > --- > tools/perf/builtin-kmem.c | 78 > ++-

[PATCH 2/4] perf, kmem: Utilize the new generic cpunode_map

2014-03-24 Thread Don Zickus
Use the previous patch implementation of cpunode_map for builtin-kmem.c Should not be any functional difference. Cc: Li Zefan Signed-off-by: Don Zickus --- tools/perf/builtin-kmem.c | 78 ++- 1 file changed, 3 insertions(+), 75 deletions(-) diff --gi