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