ANDROID: sched: Gate sched_stat tracepoint exports on CONFIG_SCHEDSTATS
When CONFIG_SCHEDSTATS is not set, the build breaks because DEFINE_EVENT_SCHEDSTAT evaluates to DEFINE_EVENT_NOP, which only defines trace_<name>, not __tracepoint_<name>, __traceiter_<name>, and _SCK__tp_func_<name> like DEFINE_EVENT. Gate these exports on CONFIG_SCHEDSTATS so all of the exported symbols are defined. Change-Id: I38056ee1446e6c149686ce1905c2ba6e4ea5e59e Fixes: a6bb1af3 ("ANDROID: vendor_hooks: Export the tracepoints sched_stat_iowait, sched_stat_blocked, sched_stat_wait to let modules probe them") Link: https://github.com/ClangBuiltLinux/continuous-integration2/runs/2724257445?check_suite_focus=true Signed-off-by:Nathan Chancellor <nathan@kernel.org>
Loading
Please sign in to comment