mirror of
https://github.com/eunomia-bpf/bpf-developer-tutorial.git
synced 2026-04-08 21:30:29 +08:00
Deploying to gh-pages from @ eunomia-bpf/bpf-developer-tutorial@7cfa5dba3c 🚀
This commit is contained in:
14
25-signal/common.h
Normal file
14
25-signal/common.h
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
// SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
#ifndef BAD_BPF_COMMON_H
|
||||||
|
#define BAD_BPF_COMMON_H
|
||||||
|
|
||||||
|
// Simple message structure to get events from eBPF Programs
|
||||||
|
// in the kernel to user spcae
|
||||||
|
#define TASK_COMM_LEN 16
|
||||||
|
struct event {
|
||||||
|
int pid;
|
||||||
|
char comm[TASK_COMM_LEN];
|
||||||
|
bool success;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // BAD_BPF_COMMON_H
|
||||||
Reference in New Issue
Block a user