Re: [PATCH] perf intel-pt: Fix 'CPU too large' error

2021-01-15 Thread Arnaldo Carvalho de Melo
Em Thu, Jan 07, 2021 at 03:46:03PM -0500, Liang, Kan escreveu: > > > On 1/7/2021 12:41 PM, Adrian Hunter wrote: > > In some cases, the number of cpus (nr_cpus_online) is confused with the > > maximum cpu number (nr_cpus_avail), which results in the error in the > > example below: > > > >

Re: [PATCH] perf intel-pt: Fix 'CPU too large' error

2021-01-07 Thread Liang, Kan
On 1/7/2021 12:41 PM, Adrian Hunter wrote: In some cases, the number of cpus (nr_cpus_online) is confused with the maximum cpu number (nr_cpus_avail), which results in the error in the example below: Example on system with 8 cpus: Before: # echo 0 > /sys/devices/system/cpu/cpu2/online

[PATCH] perf intel-pt: Fix 'CPU too large' error

2021-01-07 Thread Adrian Hunter
In some cases, the number of cpus (nr_cpus_online) is confused with the maximum cpu number (nr_cpus_avail), which results in the error in the example below: Example on system with 8 cpus: Before: # echo 0 > /sys/devices/system/cpu/cpu2/online # ./perf record --kcore -e intel_pt// taskset