Re: [PATCH 1/4] perf tools: Pass available CPU number to clang compiler

From: Wangnan (F)
Date: Wed Nov 04 2015 - 20:42:04 EST




On 2015/11/5 6:09, Arnaldo Carvalho de Melo wrote:
Em Wed, Nov 04, 2015 at 11:20:04AM +0000, Wang Nan escreveu:
This patch introduces a new macro "__NR_CPUS__" to perf's embedded
clang compiler, which represent the available CPU counters in this
available "CPU counters"? ENOPARSE :-)

Your changing is better.

This patch is for support Alexei's BPF output and Xia Kaixu's BPF
pmu reading. In these cases we need to create an array with
same number of slots with system CPUs.

Thank you.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/