Re: [PATCH] perf util: optimize util/machine.c:machines__find().

2013-11-21 Thread Dongsheng Yang
On 11/21/2013 07:06 PM, Arnaldo Carvalho de Melo wrote: This changes machines__find to always return the machine for the host (pid == 0). This function is also used for VM lookups. Nope: /* Native host kernel uses -1 as pid index in machine */ #define HOST_KERNEL_ID (-1)

Re: [PATCH] perf util: optimize util/machine.c:machines__find().

2013-11-21 Thread Dongsheng Yang
On 11/21/2013 07:06 PM, Arnaldo Carvalho de Melo wrote: This changes machines__find to always return the machine for the host (pid == 0). This function is also used for VM lookups. Nope: /* Native host kernel uses -1 as pid index in machine */ #define HOST_KERNEL_ID (-1)