|
@@ -87,7 +87,15 @@ struct sf_raw_sample {
|
|
|
} __packed;
|
|
|
|
|
|
/* Perf hardware reserve and release functions */
|
|
|
+#ifdef CONFIG_PERF_EVENTS
|
|
|
int perf_reserve_sampling(void);
|
|
|
void perf_release_sampling(void);
|
|
|
+#else /* CONFIG_PERF_EVENTS */
|
|
|
+static inline int perf_reserve_sampling(void)
|
|
|
+{
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+static inline void perf_release_sampling(void) {}
|
|
|
+#endif /* CONFIG_PERF_EVENTS */
|
|
|
|
|
|
#endif /* _ASM_S390_PERF_EVENT_H */
|