Re: [PATCH 2/4] perf tools: Pass LINUX_VERSION_CODE to BPF program when compiling

2015-11-04 Thread Arnaldo Carvalho de Melo
Em Wed, Nov 04, 2015 at 11:20:05AM +, Wang Nan escreveu: > Arnaldo suggests to make LINUX_VERSION_CODE works like __func__ and > __FILE__ so user don't need to care setting right linux version > too much. In this patch, perf llvm transfers LINUX_VERSION_CODE macro > through clang cmdline. > >

[PATCH 2/4] perf tools: Pass LINUX_VERSION_CODE to BPF program when compiling

2015-11-04 Thread Wang Nan
Arnaldo suggests to make LINUX_VERSION_CODE works like __func__ and __FILE__ so user don't need to care setting right linux version too much. In this patch, perf llvm transfers LINUX_VERSION_CODE macro through clang cmdline. [1] http://lkml.kernel.org/r/20151029223744.gk2...@kernel.org

Re: [PATCH 2/4] perf tools: Pass LINUX_VERSION_CODE to BPF program when compiling

2015-11-04 Thread Arnaldo Carvalho de Melo
Em Wed, Nov 04, 2015 at 11:20:05AM +, Wang Nan escreveu: > Arnaldo suggests to make LINUX_VERSION_CODE works like __func__ and > __FILE__ so user don't need to care setting right linux version > too much. In this patch, perf llvm transfers LINUX_VERSION_CODE macro > through clang cmdline. > >

[PATCH 2/4] perf tools: Pass LINUX_VERSION_CODE to BPF program when compiling

2015-11-04 Thread Wang Nan
Arnaldo suggests to make LINUX_VERSION_CODE works like __func__ and __FILE__ so user don't need to care setting right linux version too much. In this patch, perf llvm transfers LINUX_VERSION_CODE macro through clang cmdline. [1] http://lkml.kernel.org/r/20151029223744.gk2...@kernel.org