blob: 862060bfda14589ae4d394b786cdef8d16bdfdc7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#ifndef PERF_UTIL_BPF_SKEL_SAMPLE_FILTER_H
#define PERF_UTIL_BPF_SKEL_SAMPLE_FILTER_H
#define MAX_FILTERS 32
/* supported filter operations */
enum perf_bpf_filter_op {
PBF_OP_EQ,
PBF_OP_NEQ,
PBF_OP_GT,
PBF_OP_GE,
PBF_OP_LT,
PBF_OP_LE,
PBF_OP_AND
};
/* BPF map entry for filtering */
struct perf_bpf_filter_entry {
enum perf_bpf_filter_op op;
__u64 flags;
__u64 value;
};
#endif /* PERF_UTIL_BPF_SKEL_SAMPLE_FILTER_H */
|