Skip to content

Commit

Permalink
tetragon: Fix generated_syscalls list
Browse files Browse the repository at this point in the history
Currently we do not inlcude sys prefix in generated syscall list,
so the list fails validation and the spec like this one fails:

  spec:
    lists:
    - name: "all-syscalls"
      type: "generated_syscalls"
    kprobes:
    - call: "list:all-syscalls"

Adding missing "sys_" prefix.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
  • Loading branch information
olsajiri committed Feb 13, 2025
1 parent c713bf1 commit 8309741
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/btf/validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ func GetSyscallsList() ([]string, error) {
}
for _, value := range names {
var fn *btf.Func
sym, err := arch.AddSyscallPrefix(value)
sym, err := arch.AddSyscallPrefix(fmt.Sprint("sys_", value))
if err != nil {
return []string{}, err
}
Expand Down

0 comments on commit 8309741

Please sign in to comment.