X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Flinux%2Fperf_event.h;h=9dcb00ca2ec1ffd9c3672a3f7110669c76795e89;hb=c3b4c5336b6eff35ff6f0a44761fd37a4243fbb4;hp=a288010667dcf561f1019a6d28ade8ead8673787;hpb=3ba1692e7239293d7bc5a596ca9b0707f5bc07d5;p=firefly-linux-kernel-4.4.55.git diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index a288010667dc..9dcb00ca2ec1 100644 --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h @@ -999,6 +999,11 @@ extern int perf_cpu_time_max_percent_handler(struct ctl_table *table, int write, loff_t *ppos); +static inline bool perf_paranoid_any(void) +{ + return sysctl_perf_event_paranoid > 2; +} + static inline bool perf_paranoid_tracepoint_raw(void) { return sysctl_perf_event_paranoid > -1;