static int __init lttng_test_init(void) { int ret = 0; (void) wrapper_lttng_fixup_sig(THIS_MODULE); wrapper_vmalloc_sync_all(); lttng_test_filter_event_dentry = proc_create_data(LTTNG_TEST_FILTER_EVENT_FILE, S_IRUGO | S_IWUGO, NULL, <tng_test_filter_event_operations, NULL); if (!lttng_test_filter_event_dentry) { printk(KERN_ERR "Error creating LTTng test filter file\n"); ret = -ENOMEM; goto error; } ret = __lttng_events_init__lttng_test(); if (ret) goto error_events; return ret; error_events: remove_proc_entry(LTTNG_TEST_FILTER_EVENT_FILE, NULL); error: return ret; }
static int __init lttng_addons_elv_init(void) { int ret; (void) wrapper_lttng_fixup_sig(THIS_MODULE); ret = register_jprobe(&elv_jprobe); if (ret < 0) { printk("register_jprobe failed, returned %d\n", ret); goto out; } printk("lttng-elv loaded\n"); out: return ret; }
static int __init lttng_addons_packet_init(void) { int ret; (void) wrapper_lttng_fixup_sig(THIS_MODULE); ret = nfhook_init(); if (ret < 0) { printk(KERN_INFO "Error loading nfhook %d\n", ret); goto error; } printk("lttng_addons_packet loaded\n"); return 0; error: nfhook_exit(); return ret; }