1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2013 Seiji Aguchi <seiji.aguchi@hds.com>
5 #include <linux/jump_label.h>
6 #include <linux/atomic.h>
8 #include <asm/trace/exceptions.h>
10 DEFINE_STATIC_KEY_FALSE(trace_pagefault_key
);
12 int trace_pagefault_reg(void)
14 static_branch_inc(&trace_pagefault_key
);
18 void trace_pagefault_unreg(void)
20 static_branch_dec(&trace_pagefault_key
);