Re: perf eBPF patch ordering. was: Re: perf test LLVM was: Re: [GIT PULL 00/39] perf tools: filtering events using eBPF programs

2015-08-06 Thread Arnaldo Carvalho de Melo
Em Thu, Aug 06, 2015 at 11:46:52AM -0300, Arnaldo Carvalho de Melo escreveu: > Em Thu, Aug 06, 2015 at 09:44:33AM +0800, Wangnan (F) escreveu: > > Have you tried 'perf test BPF'? Is that okay on your environment? > Freshly checked out from your github repo, 'ebpf' branch, looks good, see >

Re: perf eBPF patch ordering. was: Re: perf test LLVM was: Re: [GIT PULL 00/39] perf tools: filtering events using eBPF programs

2015-08-06 Thread Arnaldo Carvalho de Melo
Em Thu, Aug 06, 2015 at 09:44:33AM +0800, Wangnan (F) escreveu: > Hi Arnaldo, > > Have you tried 'perf test BPF'? Is that okay on your environment? Freshly checked out from your github repo, 'ebpf' branch, looks good, see output below, back to reading patches... 37: Test thread map

Re: perf eBPF patch ordering. was: Re: perf test LLVM was: Re: [GIT PULL 00/39] perf tools: filtering events using eBPF programs

2015-08-06 Thread Arnaldo Carvalho de Melo
Em Thu, Aug 06, 2015 at 11:46:52AM -0300, Arnaldo Carvalho de Melo escreveu: Em Thu, Aug 06, 2015 at 09:44:33AM +0800, Wangnan (F) escreveu: Have you tried 'perf test BPF'? Is that okay on your environment? Freshly checked out from your github repo, 'ebpf' branch, looks good, see output

Re: perf eBPF patch ordering. was: Re: perf test LLVM was: Re: [GIT PULL 00/39] perf tools: filtering events using eBPF programs

2015-08-06 Thread Arnaldo Carvalho de Melo
Em Thu, Aug 06, 2015 at 09:44:33AM +0800, Wangnan (F) escreveu: Hi Arnaldo, Have you tried 'perf test BPF'? Is that okay on your environment? Freshly checked out from your github repo, 'ebpf' branch, looks good, see output below, back to reading patches... 37: Test thread map

Re: perf eBPF patch ordering. was: Re: perf test LLVM was: Re: [GIT PULL 00/39] perf tools: filtering events using eBPF programs

2015-08-05 Thread Wangnan (F)
Hi Arnaldo, Have you tried 'perf test BPF'? Is that okay on your environment? Thank you. On 2015/8/5 0:11, Arnaldo Carvalho de Melo wrote: Em Tue, Aug 04, 2015 at 12:55:57PM -0300, Arnaldo Carvalho de Melo escreveu: Em Tue, Aug 04, 2015 at 06:39:39PM +0800, Wangnan (F) escreveu:

Re: perf eBPF patch ordering. was: Re: perf test LLVM was: Re: [GIT PULL 00/39] perf tools: filtering events using eBPF programs

2015-08-05 Thread Wangnan (F)
Hi Arnaldo, Have you tried 'perf test BPF'? Is that okay on your environment? Thank you. On 2015/8/5 0:11, Arnaldo Carvalho de Melo wrote: Em Tue, Aug 04, 2015 at 12:55:57PM -0300, Arnaldo Carvalho de Melo escreveu: Em Tue, Aug 04, 2015 at 06:39:39PM +0800, Wangnan (F) escreveu:

Re: perf eBPF patch ordering. was: Re: perf test LLVM was: Re: [GIT PULL 00/39] perf tools: filtering events using eBPF programs

2015-08-04 Thread pi3orama
发自我的 iPhone > 在 2015年8月5日,上午12:11,Arnaldo Carvalho de Melo 写道: > > Em Tue, Aug 04, 2015 at 12:55:57PM -0300, Arnaldo Carvalho de Melo escreveu: >> Em Tue, Aug 04, 2015 at 06:39:39PM +0800, Wangnan (F) escreveu: > >>> https://github.com/WangNan0/linux.git ebpf > >> Ok, but I am checking

Re: perf eBPF patch ordering. was: Re: perf test LLVM was: Re: [GIT PULL 00/39] perf tools: filtering events using eBPF programs

2015-08-04 Thread Arnaldo Carvalho de Melo
Em Tue, Aug 04, 2015 at 12:55:57PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Tue, Aug 04, 2015 at 06:39:39PM +0800, Wangnan (F) escreveu: > > https://github.com/WangNan0/linux.git ebpf > Ok, but I am checking patch by patch to see if the changes I made are > kept, and for the first one,

Re: perf eBPF patch ordering. was: Re: perf test LLVM was: Re: [GIT PULL 00/39] perf tools: filtering events using eBPF programs

2015-08-04 Thread Arnaldo Carvalho de Melo
Em Tue, Aug 04, 2015 at 06:39:39PM +0800, Wangnan (F) escreveu: > Just realized that 'tempnam' is not safe. Switch to mkdtemp. Please see the > new version: > > https://github.com/WangNan0/linux/commit/bd02aed760c4a35fec4483d24c158799f05f6f9e > > and pull request update: > > The following

Re: perf eBPF patch ordering. was: Re: perf test LLVM was: Re: [GIT PULL 00/39] perf tools: filtering events using eBPF programs

2015-08-04 Thread Wangnan (F)
On 2015/8/4 13:28, Wangnan (F) wrote: Hi Arnaldo, The following changes since commit 922cc21746202956acb41c89a6190bb50805fa31: perf tools: Introduce llvm config options (2015-07-31 12:17:50 -0300) are available in the git repository at: https://github.com/WangNan0/linux.git ebpf for

Re: perf eBPF patch ordering. was: Re: perf test LLVM was: Re: [GIT PULL 00/39] perf tools: filtering events using eBPF programs

2015-08-04 Thread Wangnan (F)
On 2015/8/4 13:28, Wangnan (F) wrote: Hi Arnaldo, The following changes since commit 922cc21746202956acb41c89a6190bb50805fa31: perf tools: Introduce llvm config options (2015-07-31 12:17:50 -0300) are available in the git repository at: https://github.com/WangNan0/linux.git ebpf for

Re: perf eBPF patch ordering. was: Re: perf test LLVM was: Re: [GIT PULL 00/39] perf tools: filtering events using eBPF programs

2015-08-04 Thread Arnaldo Carvalho de Melo
Em Tue, Aug 04, 2015 at 12:55:57PM -0300, Arnaldo Carvalho de Melo escreveu: Em Tue, Aug 04, 2015 at 06:39:39PM +0800, Wangnan (F) escreveu: https://github.com/WangNan0/linux.git ebpf Ok, but I am checking patch by patch to see if the changes I made are kept, and for the first one, it

Re: perf eBPF patch ordering. was: Re: perf test LLVM was: Re: [GIT PULL 00/39] perf tools: filtering events using eBPF programs

2015-08-04 Thread pi3orama
发自我的 iPhone 在 2015年8月5日,上午12:11,Arnaldo Carvalho de Melo a...@kernel.org 写道: Em Tue, Aug 04, 2015 at 12:55:57PM -0300, Arnaldo Carvalho de Melo escreveu: Em Tue, Aug 04, 2015 at 06:39:39PM +0800, Wangnan (F) escreveu: https://github.com/WangNan0/linux.git ebpf Ok, but I am checking

Re: perf eBPF patch ordering. was: Re: perf test LLVM was: Re: [GIT PULL 00/39] perf tools: filtering events using eBPF programs

2015-08-04 Thread Arnaldo Carvalho de Melo
Em Tue, Aug 04, 2015 at 06:39:39PM +0800, Wangnan (F) escreveu: Just realized that 'tempnam' is not safe. Switch to mkdtemp. Please see the new version: https://github.com/WangNan0/linux/commit/bd02aed760c4a35fec4483d24c158799f05f6f9e and pull request update: The following changes since

Re: perf eBPF patch ordering. was: Re: perf test LLVM was: Re: [GIT PULL 00/39] perf tools: filtering events using eBPF programs

2015-08-03 Thread Wangnan (F)
Hi Arnaldo, The following changes since commit 922cc21746202956acb41c89a6190bb50805fa31: perf tools: Introduce llvm config options (2015-07-31 12:17:50 -0300) are available in the git repository at: https://github.com/WangNan0/linux.git ebpf for you to fetch changes up to

Re: perf eBPF patch ordering. was: Re: perf test LLVM was: Re: [GIT PULL 00/39] perf tools: filtering events using eBPF programs

2015-08-03 Thread Arnaldo Carvalho de Melo
Em Mon, Aug 03, 2015 at 01:11:16PM -0300, Arnaldo Carvalho de Melo escreveu: > > > ERROR:unable to compile ./foo.c > > > Hint:Check error message shown above. > > > LLVM 3.7 or newer is required. Which can be found from > > > http://llvm.org > > > You may want to try git

Re: perf eBPF patch ordering. was: Re: perf test LLVM was: Re: [GIT PULL 00/39] perf tools: filtering events using eBPF programs

2015-08-03 Thread Arnaldo Carvalho de Melo
Em Mon, Aug 03, 2015 at 11:53:05PM +0800, pi3orama escreveu: > > > 发自我的 iPhone > > > 在 2015年8月3日,下午11:19,Arnaldo Carvalho de Melo 写道: > > > > Em Mon, Aug 03, 2015 at 12:07:28PM -0300, Arnaldo Carvalho de Melo escreveu: > >> Em Mon, Aug 03, 2015 at 10:37:59AM +0800, Wangnan (F) escreveu: > >>>

Re: perf eBPF patch ordering. was: Re: perf test LLVM was: Re: [GIT PULL 00/39] perf tools: filtering events using eBPF programs

2015-08-03 Thread pi3orama
发自我的 iPhone > 在 2015年8月3日,下午11:19,Arnaldo Carvalho de Melo 写道: > > Em Mon, Aug 03, 2015 at 12:07:28PM -0300, Arnaldo Carvalho de Melo escreveu: >> Em Mon, Aug 03, 2015 at 10:37:59AM +0800, Wangnan (F) escreveu: >>> On 2015/8/1 4:31, Arnaldo Carvalho de Melo wrote: Somehow it is not

Re: perf eBPF patch ordering. was: Re: perf test LLVM was: Re: [GIT PULL 00/39] perf tools: filtering events using eBPF programs

2015-08-03 Thread Arnaldo Carvalho de Melo
Em Mon, Aug 03, 2015 at 12:07:28PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Mon, Aug 03, 2015 at 10:37:59AM +0800, Wangnan (F) escreveu: > > On 2015/8/1 4:31, Arnaldo Carvalho de Melo wrote: > > >Somehow it is not calling what the changeset says it would call when > > >passing > > >"-e

Re: perf eBPF patch ordering. was: Re: perf test LLVM was: Re: [GIT PULL 00/39] perf tools: filtering events using eBPF programs

2015-08-03 Thread Arnaldo Carvalho de Melo
Em Mon, Aug 03, 2015 at 10:37:59AM +0800, Wangnan (F) escreveu: > On 2015/8/1 4:31, Arnaldo Carvalho de Melo wrote: > >Somehow it is not calling what the changeset says it would call when passing > >"-e foo.o", investigating... > Have you tried > /root/bin/perf record -e ./foo.o sleep 1 > The

Re: perf eBPF patch ordering. was: Re: perf test LLVM was: Re: [GIT PULL 00/39] perf tools: filtering events using eBPF programs

2015-08-03 Thread pi3orama
发自我的 iPhone 在 2015年8月3日,下午11:19,Arnaldo Carvalho de Melo a...@kernel.org 写道: Em Mon, Aug 03, 2015 at 12:07:28PM -0300, Arnaldo Carvalho de Melo escreveu: Em Mon, Aug 03, 2015 at 10:37:59AM +0800, Wangnan (F) escreveu: On 2015/8/1 4:31, Arnaldo Carvalho de Melo wrote: Somehow it is not

Re: perf eBPF patch ordering. was: Re: perf test LLVM was: Re: [GIT PULL 00/39] perf tools: filtering events using eBPF programs

2015-08-03 Thread Arnaldo Carvalho de Melo
Em Mon, Aug 03, 2015 at 11:53:05PM +0800, pi3orama escreveu: 发自我的 iPhone 在 2015年8月3日,下午11:19,Arnaldo Carvalho de Melo a...@kernel.org 写道: Em Mon, Aug 03, 2015 at 12:07:28PM -0300, Arnaldo Carvalho de Melo escreveu: Em Mon, Aug 03, 2015 at 10:37:59AM +0800, Wangnan (F) escreveu:

Re: perf eBPF patch ordering. was: Re: perf test LLVM was: Re: [GIT PULL 00/39] perf tools: filtering events using eBPF programs

2015-08-03 Thread Wangnan (F)
Hi Arnaldo, The following changes since commit 922cc21746202956acb41c89a6190bb50805fa31: perf tools: Introduce llvm config options (2015-07-31 12:17:50 -0300) are available in the git repository at: https://github.com/WangNan0/linux.git ebpf for you to fetch changes up to

Re: perf eBPF patch ordering. was: Re: perf test LLVM was: Re: [GIT PULL 00/39] perf tools: filtering events using eBPF programs

2015-08-03 Thread Arnaldo Carvalho de Melo
Em Mon, Aug 03, 2015 at 10:37:59AM +0800, Wangnan (F) escreveu: On 2015/8/1 4:31, Arnaldo Carvalho de Melo wrote: Somehow it is not calling what the changeset says it would call when passing -e foo.o, investigating... Have you tried /root/bin/perf record -e ./foo.o sleep 1 The key is

Re: perf eBPF patch ordering. was: Re: perf test LLVM was: Re: [GIT PULL 00/39] perf tools: filtering events using eBPF programs

2015-08-03 Thread Arnaldo Carvalho de Melo
Em Mon, Aug 03, 2015 at 12:07:28PM -0300, Arnaldo Carvalho de Melo escreveu: Em Mon, Aug 03, 2015 at 10:37:59AM +0800, Wangnan (F) escreveu: On 2015/8/1 4:31, Arnaldo Carvalho de Melo wrote: Somehow it is not calling what the changeset says it would call when passing -e foo.o,

Re: perf eBPF patch ordering. was: Re: perf test LLVM was: Re: [GIT PULL 00/39] perf tools: filtering events using eBPF programs

2015-08-03 Thread Arnaldo Carvalho de Melo
Em Mon, Aug 03, 2015 at 01:11:16PM -0300, Arnaldo Carvalho de Melo escreveu: ERROR:unable to compile ./foo.c Hint:Check error message shown above. LLVM 3.7 or newer is required. Which can be found from http://llvm.org You may want to try git trunk:

Re: perf eBPF patch ordering. was: Re: perf test LLVM was: Re: [GIT PULL 00/39] perf tools: filtering events using eBPF programs

2015-08-02 Thread Wangnan (F)
On 2015/8/1 4:31, Arnaldo Carvalho de Melo wrote: Em Fri, Jul 31, 2015 at 12:35:22PM -0300, Arnaldo Carvalho de Melo escreveu: But point here is, when I see "enable passing bpf object file to --event" I apply the patch and expect to be able to go straight away and do: perf record -e

Re: perf eBPF patch ordering. was: Re: perf test LLVM was: Re: [GIT PULL 00/39] perf tools: filtering events using eBPF programs

2015-08-02 Thread Wangnan (F)
On 2015/8/1 4:31, Arnaldo Carvalho de Melo wrote: Em Fri, Jul 31, 2015 at 12:35:22PM -0300, Arnaldo Carvalho de Melo escreveu: But point here is, when I see enable passing bpf object file to --event I apply the patch and expect to be able to go straight away and do: perf record -e

Re: perf eBPF patch ordering. was: Re: perf test LLVM was: Re: [GIT PULL 00/39] perf tools: filtering events using eBPF programs

2015-07-31 Thread Arnaldo Carvalho de Melo
Em Fri, Jul 31, 2015 at 12:35:22PM -0300, Arnaldo Carvalho de Melo escreveu: > But point here is, when I see "enable passing > bpf object file to --event" I apply the patch and expect to be able to > go straight away and do: > perf record -e foo.o sleep 1 > And get some informative message

perf eBPF patch ordering. was: Re: perf test LLVM was: Re: [GIT PULL 00/39] perf tools: filtering events using eBPF programs

2015-07-31 Thread Arnaldo Carvalho de Melo
Em Wed, Jul 22, 2015 at 12:40:05PM +0800, Wangnan (F) escreveu: > I noticed that you have rebase your perf/ebpf branch to 4.2-rc3. I have also > done it in my tree. Please see: > > https://github.com/WangNan0/linux.git ebpf > > Also, please recollect patch "perf tests: Add LLVM test for eBPF

perf eBPF patch ordering. was: Re: perf test LLVM was: Re: [GIT PULL 00/39] perf tools: filtering events using eBPF programs

2015-07-31 Thread Arnaldo Carvalho de Melo
Em Wed, Jul 22, 2015 at 12:40:05PM +0800, Wangnan (F) escreveu: I noticed that you have rebase your perf/ebpf branch to 4.2-rc3. I have also done it in my tree. Please see: https://github.com/WangNan0/linux.git ebpf Also, please recollect patch perf tests: Add LLVM test for eBPF

Re: perf eBPF patch ordering. was: Re: perf test LLVM was: Re: [GIT PULL 00/39] perf tools: filtering events using eBPF programs

2015-07-31 Thread Arnaldo Carvalho de Melo
Em Fri, Jul 31, 2015 at 12:35:22PM -0300, Arnaldo Carvalho de Melo escreveu: But point here is, when I see enable passing bpf object file to --event I apply the patch and expect to be able to go straight away and do: perf record -e foo.o sleep 1 And get some informative message as to