summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/bpf_skel/bperf.h
blob: 186a5551ddb9d43777260ef44b64b48f6aea6cf8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
// Copyright (c) 2021 Facebook

#ifndef __BPERF_STAT_H
#define __BPERF_STAT_H

typedef struct {
	__uint(type, BPF_MAP_TYPE_PERCPU_ARRAY);
	__uint(key_size, sizeof(__u32));
	__uint(value_size, sizeof(struct bpf_perf_event_value));
	__uint(max_entries, 1);
} reading_map;

#endif /* __BPERF_STAT_H */