diff --git a/loader/bpfloader.rs b/loader/bpfloader.rs index 6c73606..8cc64c7 100644 --- a/loader/bpfloader.rs +++ b/loader/bpfloader.rs @@ -215,8 +215,8 @@ const GID_MEDIA_RW: u32 = AID_MEDIA_RW; const FILE_ARR: &[BpfFileDesc] = &[ BpfFileDesc { filename: "timeInState.bpf", - dir: "/etc/bpf/", - prefix: "", + dir: "/etc/bpf/cputimeinstate/", + prefix: "cputimeinstate/", critical: false, skip_on_user: false, maps: &[ diff --git a/progs/include/bpf_timeinstate.h b/progs/include/bpf_timeinstate.h index 1065b6e..7840619 100644 --- a/progs/include/bpf_timeinstate.h +++ b/progs/include/bpf_timeinstate.h @@ -17,7 +17,7 @@ #include #include -#define BPF_FS_PATH "/sys/fs/bpf/" +#define BPF_TIMEINSTATE_PATH "/sys/fs/bpf/cputimeinstate/" // Number of frequencies tracked in the array with total time. If some CPUs have // more than 64 freqs