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

From: Wangnan (F)
Date: Tue Aug 04 2015 - 06:43:39 EST




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 you to fetch changes up to d85bf4b6470b8d860bbae25418e5ae3ccd9711e8:

perf tools: Support attach BPF program on uprobe events (2015-08-04 04:59:20 +0000)

----------------------------------------------------------------

The new cset has following improvements:

1. Improve error message: now don't dump LLVM environment setting messages
if clang is found. Also, describe how to pre-compile .c file into .o.

See: perf tools: Call clang to compile C source to object code
https://github.com/WangNan0/linux/commit/264676a5b922aaf1e9be3800fe06d5b67b06cd12

2. Reorder patches, so when 'perf record' is able to accept '--event file.c', the BPF filter
should work. Also, an example BPF script file is provided, and the compilation
method is described in commit message.

See:
perf tools: Infrastructure for compiling scriptlets when passing '.c' to --event
https://github.com/WangNan0/linux/commit/eca622f4a88e1a791fc2405c398256ad572eba54

3. Introduce 'perf test BPF', which uses previous introduced scriptlet, fork a
'perf record' to utilise it and uses 'perf report' to check the result.

See: perf tests: Enforce LLVM test for BPF test
https://github.com/WangNan0/linux/commit/a7cdab453863c580446dc2c3a3f3a86f21b770ce

perf test: Enable 'perf test' run as test targets
https://github.com/WangNan0/linux/commit/b14f2627e95d348be5ec19bd24a5117e8c2ffe46
and
perf test: Add 'perf test BPF'
https://github.com/WangNan0/linux/commit/8414217dbfa57df4dbb55642dc26205e1c7cbdf1

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 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 47ef1d2a64bd0e7931835e1c40caed21f793c8b8:

perf tools: Support attach BPF program on uprobe events (2015-08-04 10:30:50 +0000)

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/