kretprobe_example.c (60a2f25de7b8b785baee2932db932ae9a5b8c86d) | kretprobe_example.c (1b3c86eeea7594eeeb49b8d1c1db0a40f0ce7920) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * kretprobe_example.c 4 * 5 * Here's a sample kernel module showing the use of return probes to 6 * report the return value and total time taken for probed function 7 * to run. 8 * --- 90 unchanged lines hidden (view full) --- 99 100 /* nmissed > 0 suggests that maxactive was set too low. */ 101 pr_info("Missed probing %d instances of %s\n", 102 my_kretprobe.nmissed, my_kretprobe.kp.symbol_name); 103} 104 105module_init(kretprobe_init) 106module_exit(kretprobe_exit) | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * kretprobe_example.c 4 * 5 * Here's a sample kernel module showing the use of return probes to 6 * report the return value and total time taken for probed function 7 * to run. 8 * --- 90 unchanged lines hidden (view full) --- 99 100 /* nmissed > 0 suggests that maxactive was set too low. */ 101 pr_info("Missed probing %d instances of %s\n", 102 my_kretprobe.nmissed, my_kretprobe.kp.symbol_name); 103} 104 105module_init(kretprobe_init) 106module_exit(kretprobe_exit) |
107MODULE_DESCRIPTION("sample kernel module showing the use of return probes"); |
|
107MODULE_LICENSE("GPL"); | 108MODULE_LICENSE("GPL"); |