X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Flinux%2Ftracepoint.h;h=41d17562fa327befa3d47df21ac44ed9059fc5d1;hb=3eee55582f4b23d2579286c5ba61d82828bd655f;hp=df0a779c1bbdb7d04bed9f9acdde80d16abaf2ce;hpb=aa1b052a34d7ec85b23f4fba564df24b9477201b;p=pandora-kernel.git diff --git a/include/linux/tracepoint.h b/include/linux/tracepoint.h index df0a779c1bbd..41d17562fa32 100644 --- a/include/linux/tracepoint.h +++ b/include/linux/tracepoint.h @@ -14,8 +14,10 @@ * See the file COPYING for more details. */ +#include #include #include +#include #include #include @@ -60,6 +62,12 @@ struct tp_module { unsigned int num_tracepoints; struct tracepoint * const *tracepoints_ptrs; }; +bool trace_module_has_bad_taint(struct module *mod); +#else +static inline bool trace_module_has_bad_taint(struct module *mod) +{ + return false; +} #endif /* CONFIG_MODULES */ struct tracepoint_iter { @@ -120,6 +128,9 @@ static inline void tracepoint_synchronize_unregister(void) void *it_func; \ void *__data; \ \ + if (!cpu_online(raw_smp_processor_id())) \ + return; \ + \ if (!(cond)) \ return; \ rcu_read_lock_sched_notrace(); \