https://github.com/cilium/cilium
Raw File
Tip revision: aa42034f09a5ac1218a8c6dfe0ee0b9bcf6d4801 authored by Chris Tarazi on 23 July 2020, 22:02:39 UTC
Prepare for release v1.8.2
Tip revision: aa42034
events.h
/* SPDX-License-Identifier: GPL-2.0 */
/* Copyright (C) 2016-2020 Authors of Cilium */

#ifndef __LIB_EVENTS_H_
#define __LIB_EVENTS_H_

#include <bpf/api.h>

struct bpf_elf_map __section_maps EVENTS_MAP = {
	.type		= BPF_MAP_TYPE_PERF_EVENT_ARRAY,
	.size_key	= sizeof(__u32),
	.size_value	= sizeof(__u32),
	.pinning	= PIN_GLOBAL_NS,
	.max_elem	= __NR_CPUS__,
};

#endif /* __LIB_EVENTS_H_ */
back to top