Skip to content

Commit

Permalink
Use $params for SyscallCounter
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Pine committed Feb 16, 2025
1 parent 3d9deb8 commit 42dfd38
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public abstract class SyscallCounter extends BPFProgram {
final GlobalVariable<Long> syscallCounter = new GlobalVariable<>(0L);

@BPFFunction(
headerTemplate = "int BPF_PROG($name, struct pt_regs *regs, unsigned long number)",
headerTemplate = "int BPF_PROG($name, $params)",
lastStatement = "return 0;",
section = "raw_tracepoint/sys_enter",
autoAttach = true
Expand Down

0 comments on commit 42dfd38

Please sign in to comment.