Go to the documentation of this file.
29 #include <linux/module.h>
30 #include <linux/kernel.h>
34 #include <linux/perf_event.h>
35 #include <linux/hw_breakpoint.h>
41 MODULE_PARM_DESC(ksym,
"Kernel symbol to monitor; this module will report any"
42 " write operations on the kernel symbol");
44 static void sample_hbp_handler(
struct perf_event *bp,
45 struct perf_sample_data *
data,
53 static int __init hw_break_module_init(
void)
58 hw_breakpoint_init(&
attr);
79 static void __exit hw_break_module_exit(
void)
82 printk(
KERN_INFO "HW Breakpoint for %s write uninstalled\n", ksym_name);