Re: [RFC PATCH 3/3] perf tools: Support attach BPF program on uprobe events

2015-06-26 Thread Wangnan (F)
On 2015/6/26 16:47, Alexei Starovoitov wrote: On 6/25/15 3:37 AM, Wang Nan wrote: This patch append new syntax to BPF object section name to support probing at uprobe event. Now we can use BPF program like this: SEC( "target:/lib64/libc.so.6\n" "libcwrite=__write" ) int libcwrite(vo

Re: [RFC PATCH 3/3] perf tools: Support attach BPF program on uprobe events

2015-06-26 Thread Alexei Starovoitov
On 6/25/15 3:37 AM, Wang Nan wrote: This patch append new syntax to BPF object section name to support probing at uprobe event. Now we can use BPF program like this: SEC( "target:/lib64/libc.so.6\n" "libcwrite=__write" ) int libcwrite(void *ctx) { return 1; } Where, in secti

[RFC PATCH 3/3] perf tools: Support attach BPF program on uprobe events

2015-06-25 Thread Wang Nan
This patch append new syntax to BPF object section name to support probing at uprobe event. Now we can use BPF program like this: SEC( "target:/lib64/libc.so.6\n" "libcwrite=__write" ) int libcwrite(void *ctx) { return 1; } Where, in section name of a program, before the main config s