diff options
author | Wang Nan <[email protected]> | 2015-11-16 12:10:05 +0000 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2015-11-18 17:51:03 -0300 |
commit | 361f2b1d1d7231b8685d990b886f599378a4d5a5 (patch) | |
tree | 00a5bce805e0470aaa27300b4cb72f6f0dfa1f29 /tools/perf/scripts/python/netdev-times.py | |
parent | 30433a3a52b951faab95944e0f8b9d33a1e322ce (diff) |
perf bpf: Allow BPF program attach to uprobe events
This patch adds a new syntax to the BPF object section name to support
probing at uprobe event. Now we can use BPF program like this:
SEC(
"exec=/lib64/libc.so.6;"
"libcwrite=__write"
)
int libcwrite(void *ctx)
{
return 1;
}
Where, in section name of a program, before the main config string, we
can use 'key=value' style options. Now the only option key is "exec",
for uprobes.
Signed-off-by: Wang Nan <[email protected]>
Cc: Alexei Starovoitov <[email protected]>
Cc: Masami Hiramatsu <[email protected]>
Cc: Zefan Li <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
[ Changed the separator from \n to ; ]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions