diff options
| author | Arnaldo Carvalho de Melo <[email protected]> | 2018-11-06 18:21:45 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2018-11-21 15:00:30 +0000 |
| commit | 1475d35c4a6174d4ec633b9af5713e9770b3ac0d (patch) | |
| tree | 668d9e968513443764e7f30d78d486b6884da7ca /tools/perf/builtin-script.c | |
| parent | Merge tag 'perf-urgent-for-mingo-4.20-20181121' of git://git.kernel.org/pub/s... (diff) | |
| download | kernel-1475d35c4a6174d4ec633b9af5713e9770b3ac0d.tar.gz kernel-1475d35c4a6174d4ec633b9af5713e9770b3ac0d.zip | |
perf bpf: Add unistd.h to the headers accessible to bpf proggies
Start with a getpid() function wrapping BPF_FUNC_get_current_pid_tgid,
idea is to mimic the system headers.
Cc: Adrian Hunter <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Wang Nan <[email protected]>
Link: https://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/builtin-script.c')
0 files changed, 0 insertions, 0 deletions
