1 // SPDX-License-Identifier: GPL-2.0
3 * Code for supporting irq vector tracepoints.
5 * Copyright (C) 2013 Seiji Aguchi <seiji.aguchi@hds.com>
8 #include <linux/jump_label.h>
9 #include <linux/atomic.h>
11 #include <asm/hw_irq.h>
13 #include <asm/trace/exceptions.h>
14 #include <asm/trace/irq_vectors.h>
16 DEFINE_STATIC_KEY_FALSE(trace_pagefault_key
);
18 int trace_pagefault_reg(void)
20 static_branch_inc(&trace_pagefault_key
);
24 void trace_pagefault_unreg(void)
26 static_branch_dec(&trace_pagefault_key
);
31 DEFINE_STATIC_KEY_FALSE(trace_resched_ipi_key
);
33 int trace_resched_ipi_reg(void)
35 static_branch_inc(&trace_resched_ipi_key
);
39 void trace_resched_ipi_unreg(void)
41 static_branch_dec(&trace_resched_ipi_key
);