Skip to content

Commit 4145b41

Browse files
authored
Merge pull request #276 from netoptimizer/reading03
Minor adjustsments
2 parents ad32af4 + 5246b36 commit 4145b41

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

benchmark/probes/benchmark.bpf.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
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

cgroup/fanotify.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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")
192192
func 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 {

0 commit comments

Comments
 (0)