On Thu, Mar 7, 2019 at 4:03 AM Peter Zijlstra <pet...@infradead.org> wrote: > > Take for instance this one (.config attached); it has both > CONFIG_PROFILE_ALL_BRANCHES=y and CONFIG_TRACE_BRANCH_PROFILING=y > and it compiles:
How about just turning off SMAP checking for the really odd cases? At some point it's not worth worrying about excessive debug infrastructure, I think. Just give up and say "ok. we'll save/restore in preempt_schedule()". Or just make preempt_schedule() check AC and not schedule. It already does that for IF. Linus