]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - samples/tracepoints/tracepoint-sample.c
netdev: Use __netdev_alloc_skb() instead of __dev_alloc_skb().
[linux-2.6-omap-h63xx.git] / samples / tracepoints / tracepoint-sample.c
index 4ae4b7fcc04327766145a0483d00720dadc2928a..68d5dc0310e420a889dd60a04d0da5dfc3df4507 100644 (file)
@@ -13,6 +13,9 @@
 #include <linux/proc_fs.h>
 #include "tp-samples-trace.h"
 
+DEFINE_TRACE(subsys_event);
+DEFINE_TRACE(subsys_eventb);
+
 struct proc_dir_entry *pentry_example;
 
 static int my_open(struct inode *inode, struct file *file)
@@ -29,7 +32,7 @@ static struct file_operations mark_ops = {
        .open = my_open,
 };
 
-static int example_init(void)
+static int __init example_init(void)
 {
        printk(KERN_ALERT "example init\n");
        pentry_example = proc_create("tracepoint-example", 0444, NULL,
@@ -39,7 +42,7 @@ static int example_init(void)
        return 0;
 }
 
-static void example_exit(void)
+static void __exit example_exit(void)
 {
        printk(KERN_ALERT "example exit\n");
        remove_proc_entry("tracepoint-example", NULL);