1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2022 Changbin Du <changbin.du@gmail.com>
6 #include <linux/irqflags.h>
7 #include <linux/kprobes.h>
11 * trace_hardirqs_on/off require the caller to setup frame pointer properly.
12 * Otherwise, CALLER_ADDR1 might trigger an pagging exception in kernel.
13 * Here we add one extra level so they can be safely called by low
14 * level entry code which $fp is used for other purpose.
17 void __trace_hardirqs_on(void)
21 NOKPROBE_SYMBOL(__trace_hardirqs_on);
23 void __trace_hardirqs_off(void)
27 NOKPROBE_SYMBOL(__trace_hardirqs_off);