Greg Kroah-Hartman | e2be04c | 2017-11-01 15:09:13 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ |
Alexei Starovoitov | 0515e59 | 2016-09-01 18:37:22 -0700 | [diff] [blame] | 2 | /* Copyright (c) 2016 Facebook |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or |
| 5 | * modify it under the terms of version 2 of the GNU General Public |
| 6 | * License as published by the Free Software Foundation. |
| 7 | */ |
| 8 | #ifndef _UAPI__LINUX_BPF_PERF_EVENT_H__ |
| 9 | #define _UAPI__LINUX_BPF_PERF_EVENT_H__ |
| 10 | |
Hendrik Brueckner | c895f6f | 2017-12-04 10:56:44 +0100 | [diff] [blame] | 11 | #include <asm/bpf_perf_event.h> |
Alexei Starovoitov | 0515e59 | 2016-09-01 18:37:22 -0700 | [diff] [blame] | 12 | |
| 13 | struct bpf_perf_event_data { |
Hendrik Brueckner | c895f6f | 2017-12-04 10:56:44 +0100 | [diff] [blame] | 14 | bpf_user_pt_regs_t regs; |
Alexei Starovoitov | 0515e59 | 2016-09-01 18:37:22 -0700 | [diff] [blame] | 15 | __u64 sample_period; |
| 16 | }; |
| 17 | |
| 18 | #endif /* _UAPI__LINUX_BPF_PERF_EVENT_H__ */ |