Skip to content

Commit

Permalink
bpf: add missing kprobes.h
Browse files Browse the repository at this point in the history
Signed-off-by: Djalal Harouni <[email protected]>
  • Loading branch information
tixxdz committed Jan 5, 2024
1 parent 73e74a2 commit 3868b4d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions bpf/process/types/kprobes.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
/* Copyright Authors of Tetragon */

#ifndef __LINUX_KPROBES_H__
#define __LINUX_KPROBES_H__

#ifndef KSYM_NAME_LEN
#define KSYM_NAME_LEN 128U
#endif

struct msg_kprobe {
u64 addr;
u32 offset;
u32 pad;
char symbol[KSYM_NAME_LEN];
} __attribute__((packed));

#endif

0 comments on commit 3868b4d

Please sign in to comment.