Re: [patch 4/8] x86/entry: Move irq tracing on syscall entry to C-code

From: Thomas Gleixner
Date: Sun Mar 01 2020 - 10:22:00 EST


Andy Lutomirski <luto@xxxxxxxxxxxxxx> writes:
>> On Mar 1, 2020, at 2:16 AM, Thomas Gleixner <tglx@xxxxxxxxxxxxx> wrote:
>> Ok, but for the time being anything before/after CONTEXT_KERNEL is unsafe
>> except trace_hardirq_off/on() as those trace functions do not allow to
>> attach anything AFAICT.
>
> Can you point to whatever makes those particular functions special? I
> failed to follow the macro maze.

Those are not tracepoints and not going through the macro maze. See
kernel/trace/trace_preemptirq.c

Thanks,

tglx