#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/suspend.h>
+#include <linux/sdt.h>
#include <linux/writeback.h>
#include <linux/swap.h>
#include <linux/spinlock.h>
pr_info("SysRq : ");
op_p = __sysrq_get_key_op(key);
+ DTRACE_PROBE3(__handle_sysrq,
+ int, key, int, check_mask,
+ int, orig_log_level);
if (op_p) {
/*
* Should we check for enabled operations (/proc/sysrq-trigger
char name[MODULE_NAME_LEN];
int ret, forced = 0;
+ DTRACE_PROBE2(delete_module,
+ const char __user *, name_user,
+ unsigned int, flags);
+
if (!capable(CAP_SYS_MODULE) || modules_disabled)
return -EPERM;
int err;
struct load_info info = { };
+ DTRACE_PROBE3(init_module,
+ void __user *, umod,
+ unsigned long, len, const char __user *, uargs);
+
err = may_init_module();
if (err)
return err;
#define CREATE_TRACE_POINTS
#include <trace/events/signal.h>
+#include <linux/sdt.h>
#include <asm/param.h>
#include <asm/uaccess.h>
if (print_fatal_signals)
print_fatal_signal(ksig->info.si_signo);
proc_coredump_connector(current);
+ DTRACE_PROBE4(get_signal_to_deliver,
+ int, ksig->info.si_signo,
+ struct pt_regs *, regs,
+ char *, current->comm,
+ int, task_pid_nr(current));
/*
* If it was able to dump core, this kills all
* other threads in the group and synchronizes with