xref: /linux/tools/bpf/bpftool/skeleton/pid_iter.h (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
1d53dee3fSAndrii Nakryiko /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
2d53dee3fSAndrii Nakryiko /* Copyright (c) 2020 Facebook */
3d53dee3fSAndrii Nakryiko #ifndef __PID_ITER_H
4d53dee3fSAndrii Nakryiko #define __PID_ITER_H
5d53dee3fSAndrii Nakryiko 
6d53dee3fSAndrii Nakryiko struct pid_iter_entry {
7d53dee3fSAndrii Nakryiko 	__u32 id;
8d53dee3fSAndrii Nakryiko 	int pid;
9*cbdaf71fSDmitrii Dolgov 	__u64 bpf_cookie;
10*cbdaf71fSDmitrii Dolgov 	bool has_bpf_cookie;
11d53dee3fSAndrii Nakryiko 	char comm[16];
12d53dee3fSAndrii Nakryiko };
13d53dee3fSAndrii Nakryiko 
14d53dee3fSAndrii Nakryiko #endif
15