File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 22#include <bpf/bpf_tracing.h>
33
44#if defined(__TARGET_ARCH_x86 )
5- #define FENTRY_SEC () SEC("fentry/__x64_sys_getpid ")
5+ #define FENTRY_SEC () SEC("fentry/__do_sys_getpid ")
66#elif defined(__TARGET_ARCH_arm64 )
77#define FENTRY_SEC () SEC("fentry/__arm64_sys_getpid")
88#else
99#error Unknown target for this architecture
1010#endif
1111
1212#if defined(__TARGET_ARCH_x86 )
13- #define KPROBE_SEC () SEC("kprobe/__x64_sys_getpid ")
13+ #define KPROBE_SEC () SEC("kprobe/__do_sys_getpid ")
1414#elif defined(__TARGET_ARCH_arm64 )
1515#define KPROBE_SEC () SEC("kprobe/__arm64_sys_getpid")
1616#else
Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ func (m *fanotifyMonitor) Resolve(id int) string {
188188}
189189
190190// The following kernel patch is required to take advantage of this (included in v6.6-rc1):
191- // * https://github.com /torvalds/linux/commit/ 0ce7c12e88cf
191+ // * https://git.kernel.org /torvalds/c/ 0ce7c12e88cf ("kernfs: attach uuid for every kernfs and report it in fsid")
192192func attachFanotify (path string ) (io.Reader , error ) {
193193 fd , err := unix .FanotifyInit (unix .FAN_CLASS_NOTIF | unix .FAN_REPORT_DFID_NAME , uint (0 ))
194194 if err != nil {
You can’t perform that action at this time.
0 commit comments