1edc41a10SNamhyung Kim #ifndef PERF_UTIL_OFF_CPU_H 2edc41a10SNamhyung Kim #define PERF_UTIL_OFF_CPU_H 3edc41a10SNamhyung Kim 4edc41a10SNamhyung Kim struct evlist; 5*10742d0cSNamhyung Kim struct target; 6edc41a10SNamhyung Kim struct perf_session; 7edc41a10SNamhyung Kim 8edc41a10SNamhyung Kim #define OFFCPU_EVENT "offcpu-time" 9edc41a10SNamhyung Kim 10edc41a10SNamhyung Kim #ifdef HAVE_BPF_SKEL 11*10742d0cSNamhyung Kim int off_cpu_prepare(struct evlist *evlist, struct target *target); 12edc41a10SNamhyung Kim int off_cpu_write(struct perf_session *session); 13edc41a10SNamhyung Kim #else 14*10742d0cSNamhyung Kim static inline int off_cpu_prepare(struct evlist *evlist __maybe_unused, 15*10742d0cSNamhyung Kim struct target *target __maybe_unused) 16edc41a10SNamhyung Kim { 17edc41a10SNamhyung Kim return -1; 18edc41a10SNamhyung Kim } 19edc41a10SNamhyung Kim 20edc41a10SNamhyung Kim static inline int off_cpu_write(struct perf_session *session __maybe_unused) 21edc41a10SNamhyung Kim { 22edc41a10SNamhyung Kim return -1; 23edc41a10SNamhyung Kim } 24edc41a10SNamhyung Kim #endif 25edc41a10SNamhyung Kim 26edc41a10SNamhyung Kim #endif /* PERF_UTIL_OFF_CPU_H */ 27