projects
/
releases.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
GNU Linux-libre 5.10.219-gnu1
[releases.git]
/
tools
/
perf
/
include
/
bpf
/
unistd.h
1
// SPDX-License-Identifier: LGPL-2.1
2
3
#include <bpf.h>
4
5
static int (*bpf_get_current_pid_tgid)(void) = (void *)BPF_FUNC_get_current_pid_tgid;
6
7
static pid_t getpid(void)
8
{
9
return bpf_get_current_pid_tgid();
10
}