xref: /linux/include/uapi/linux/bpf_perf_event.h (revision c13aca79ff3c4af5fd31a5b2743a90eba6e36a26)
1e2be04c7SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
20515e599SAlexei Starovoitov /* Copyright (c) 2016 Facebook
30515e599SAlexei Starovoitov  *
40515e599SAlexei Starovoitov  * This program is free software; you can redistribute it and/or
50515e599SAlexei Starovoitov  * modify it under the terms of version 2 of the GNU General Public
60515e599SAlexei Starovoitov  * License as published by the Free Software Foundation.
70515e599SAlexei Starovoitov  */
80515e599SAlexei Starovoitov #ifndef _UAPI__LINUX_BPF_PERF_EVENT_H__
90515e599SAlexei Starovoitov #define _UAPI__LINUX_BPF_PERF_EVENT_H__
100515e599SAlexei Starovoitov 
11c895f6f7SHendrik Brueckner #include <asm/bpf_perf_event.h>
120515e599SAlexei Starovoitov 
130515e599SAlexei Starovoitov struct bpf_perf_event_data {
14c895f6f7SHendrik Brueckner 	bpf_user_pt_regs_t regs;
150515e599SAlexei Starovoitov 	__u64 sample_period;
16*95da0cdbSTeng Qin 	__u64 addr;
170515e599SAlexei Starovoitov };
180515e599SAlexei Starovoitov 
190515e599SAlexei Starovoitov #endif /* _UAPI__LINUX_BPF_PERF_EVENT_H__ */
20