mirror of
https://github.com/eunomia-bpf/bpf-developer-tutorial.git
synced 2026-02-04 02:34:16 +08:00
18 lines
397 B
C
18 lines
397 B
C
// SPDX-License-Identifier: BSD-3-Clause
|
|
#ifndef BAD_BPF_COMMON_H
|
|
#define BAD_BPF_COMMON_H
|
|
|
|
// Used when replacing text
|
|
#define FILENAME_LEN_MAX 50
|
|
#define TEXT_LEN_MAX 20
|
|
|
|
// 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
|