treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / tools / perf / include / bpf / unistd.h
blobd1a35b6c649dc7b860ccb661f3e71ba0b595ce69
1 // SPDX-License-Identifier: LGPL-2.1
3 #include <bpf/bpf.h>
5 static int (*bpf_get_current_pid_tgid)(void) = (void *)BPF_FUNC_get_current_pid_tgid;
7 static pid_t getpid(void)
9 return bpf_get_current_pid_tgid();