blob: f9c609266d834533180949b3f71262525614a856 [file] [log] [blame]
Pekka Paalanen8b7d89d2008-05-12 21:20:56 +02001/*
2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License as published by
4 * the Free Software Foundation; either version 2 of the License, or
5 * (at your option) any later version.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 *
12 * You should have received a copy of the GNU General Public License
13 * along with this program; if not, write to the Free Software
14 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
15 *
16 * Copyright (C) IBM Corporation, 2005
17 * Jeff Muizelaar, 2006, 2007
18 * Pekka Paalanen, 2008 <pq@iki.fi>
19 *
20 * Derived from the read-mod example from relay-examples by Tom Zanussi.
21 */
22#include <linux/module.h>
23#include <linux/relay.h>
24#include <linux/debugfs.h>
25#include <linux/proc_fs.h>
26#include <asm/io.h>
27#include <linux/version.h>
28#include <linux/kallsyms.h>
29#include <asm/pgtable.h>
30#include <linux/mmiotrace.h>
31#include <asm/e820.h> /* for ISA_START_ADDRESS */
Pekka Paalanenfe1ffaf2008-05-12 21:20:56 +020032#include <asm/atomic.h>
Pekka Paalanenf5136382008-05-12 21:20:57 +020033#include <linux/percpu.h>
Pekka Paalanen8b7d89d2008-05-12 21:20:56 +020034
35#include "kmmio.h"
36#include "pf_in.h"
37
38/* This app's relay channel files will appear in /debug/mmio-trace */
39#define APP_DIR "mmio-trace"
40/* the marker injection file in /proc */
41#define MARKER_FILE "mmio-marker"
42
43#define MODULE_NAME "mmiotrace"
44
45struct trap_reason {
46 unsigned long addr;
47 unsigned long ip;
48 enum reason_type type;
49 int active_traces;
50};
51
Pekka Paalanenfe1ffaf2008-05-12 21:20:56 +020052/* Accessed per-cpu. */
Pekka Paalanenf5136382008-05-12 21:20:57 +020053static DEFINE_PER_CPU(struct trap_reason, pf_reason);
54static DEFINE_PER_CPU(struct mm_io_header_rw, cpu_trace);
Pekka Paalanen8b7d89d2008-05-12 21:20:56 +020055
Pekka Paalanenfe1ffaf2008-05-12 21:20:56 +020056/* Access to this is not per-cpu. */
Pekka Paalanenf5136382008-05-12 21:20:57 +020057static DEFINE_PER_CPU(atomic_t, dropped);
Pekka Paalanenfe1ffaf2008-05-12 21:20:56 +020058
Pekka Paalanen8b7d89d2008-05-12 21:20:56 +020059static struct file_operations mmio_fops = {
60 .owner = THIS_MODULE,
61};
62
63static const size_t subbuf_size = 256*1024;
64static struct rchan *chan;
65static struct dentry *dir;
Pekka Paalanen8b7d89d2008-05-12 21:20:56 +020066static struct proc_dir_entry *proc_marker_file;
67
68/* module parameters */
69static unsigned int n_subbufs = 32*4;
70static unsigned long filter_offset;
71static int nommiotrace;
72static int ISA_trace;
73static int trace_pc;
74
75module_param(n_subbufs, uint, 0);
76module_param(filter_offset, ulong, 0);
77module_param(nommiotrace, bool, 0);
78module_param(ISA_trace, bool, 0);
79module_param(trace_pc, bool, 0);
80
81MODULE_PARM_DESC(n_subbufs, "Number of 256kB buffers, default 128.");
82MODULE_PARM_DESC(filter_offset, "Start address of traced mappings.");
83MODULE_PARM_DESC(nommiotrace, "Disable actual MMIO tracing.");
84MODULE_PARM_DESC(ISA_trace, "Do not exclude the low ISA range.");
85MODULE_PARM_DESC(trace_pc, "Record address of faulting instructions.");
86
87static void record_timestamp(struct mm_io_header *header)
88{
89 struct timespec now;
90
91 getnstimeofday(&now);
92 header->sec = now.tv_sec;
93 header->nsec = now.tv_nsec;
94}
95
96/*
97 * Write callback for the /proc entry:
98 * Read a marker and write it to the mmio trace log
99 */
100static int write_marker(struct file *file, const char __user *buffer,
101 unsigned long count, void *data)
102{
103 char *event = NULL;
104 struct mm_io_header *headp;
105 int len = (count > 65535) ? 65535 : count;
106
107 event = kzalloc(sizeof(*headp) + len, GFP_KERNEL);
108 if (!event)
109 return -ENOMEM;
110
111 headp = (struct mm_io_header *)event;
112 headp->type = MMIO_MAGIC | (MMIO_MARKER << MMIO_OPCODE_SHIFT);
113 headp->data_len = len;
114 record_timestamp(headp);
115
116 if (copy_from_user(event + sizeof(*headp), buffer, len)) {
117 kfree(event);
118 return -EFAULT;
119 }
120
121 relay_write(chan, event, sizeof(*headp) + len);
122 kfree(event);
123 return len;
124}
125
126static void print_pte(unsigned long address)
127{
Pekka Paalanen75bb8832008-05-12 21:20:56 +0200128 int level;
129 pte_t *pte = lookup_address(address, &level);
130
131 if (!pte) {
132 printk(KERN_ERR "Error in %s: no pte for page 0x%08lx\n",
133 __FUNCTION__, address);
134 return;
135 }
136
137 if (level == PG_LEVEL_2M) {
Pekka Paalanen8b7d89d2008-05-12 21:20:56 +0200138 printk(KERN_EMERG MODULE_NAME ": 4MB pages are not "
139 "currently supported: %lx\n",
140 address);
141 BUG();
142 }
143 printk(KERN_DEBUG MODULE_NAME ": pte for 0x%lx: 0x%lx 0x%lx\n",
Pekka Paalanen75bb8832008-05-12 21:20:56 +0200144 address, pte_val(*pte),
145 pte_val(*pte) & _PAGE_PRESENT);
Pekka Paalanen8b7d89d2008-05-12 21:20:56 +0200146}
147
148/*
149 * For some reason the pre/post pairs have been called in an
150 * unmatched order. Report and die.
151 */
152static void die_kmmio_nesting_error(struct pt_regs *regs, unsigned long addr)
153{
Pekka Paalanenf5136382008-05-12 21:20:57 +0200154 const struct trap_reason *my_reason = &get_cpu_var(pf_reason);
Pekka Paalanen8b7d89d2008-05-12 21:20:56 +0200155 printk(KERN_EMERG MODULE_NAME ": unexpected fault for address: %lx, "
156 "last fault for address: %lx\n",
Pekka Paalanenf5136382008-05-12 21:20:57 +0200157 addr, my_reason->addr);
Pekka Paalanen8b7d89d2008-05-12 21:20:56 +0200158 print_pte(addr);
159#ifdef __i386__
160 print_symbol(KERN_EMERG "faulting EIP is at %s\n", regs->ip);
161 print_symbol(KERN_EMERG "last faulting EIP was at %s\n",
Pekka Paalanenf5136382008-05-12 21:20:57 +0200162 my_reason->ip);
Pekka Paalanen8b7d89d2008-05-12 21:20:56 +0200163 printk(KERN_EMERG
164 "eax: %08lx ebx: %08lx ecx: %08lx edx: %08lx\n",
165 regs->ax, regs->bx, regs->cx, regs->dx);
166 printk(KERN_EMERG
167 "esi: %08lx edi: %08lx ebp: %08lx esp: %08lx\n",
168 regs->si, regs->di, regs->bp, regs->sp);
169#else
170 print_symbol(KERN_EMERG "faulting RIP is at %s\n", regs->ip);
171 print_symbol(KERN_EMERG "last faulting RIP was at %s\n",
Pekka Paalanenf5136382008-05-12 21:20:57 +0200172 my_reason->ip);
Pekka Paalanen8b7d89d2008-05-12 21:20:56 +0200173 printk(KERN_EMERG "rax: %016lx rcx: %016lx rdx: %016lx\n",
174 regs->ax, regs->cx, regs->dx);
175 printk(KERN_EMERG "rsi: %016lx rdi: %016lx "
176 "rbp: %016lx rsp: %016lx\n",
177 regs->si, regs->di, regs->bp, regs->sp);
178#endif
Pekka Paalanenf5136382008-05-12 21:20:57 +0200179 put_cpu_var(pf_reason);
Pekka Paalanen8b7d89d2008-05-12 21:20:56 +0200180 BUG();
181}
182
183static void pre(struct kmmio_probe *p, struct pt_regs *regs,
184 unsigned long addr)
185{
Pekka Paalanenf5136382008-05-12 21:20:57 +0200186 struct trap_reason *my_reason = &get_cpu_var(pf_reason);
187 struct mm_io_header_rw *my_trace = &get_cpu_var(cpu_trace);
Pekka Paalanen8b7d89d2008-05-12 21:20:56 +0200188 const unsigned long instptr = instruction_pointer(regs);
189 const enum reason_type type = get_ins_type(instptr);
190
191 /* it doesn't make sense to have more than one active trace per cpu */
Pekka Paalanenf5136382008-05-12 21:20:57 +0200192 if (my_reason->active_traces)
Pekka Paalanen8b7d89d2008-05-12 21:20:56 +0200193 die_kmmio_nesting_error(regs, addr);
194 else
Pekka Paalanenf5136382008-05-12 21:20:57 +0200195 my_reason->active_traces++;
Pekka Paalanen8b7d89d2008-05-12 21:20:56 +0200196
Pekka Paalanenf5136382008-05-12 21:20:57 +0200197 my_reason->type = type;
198 my_reason->addr = addr;
199 my_reason->ip = instptr;
Pekka Paalanen8b7d89d2008-05-12 21:20:56 +0200200
Pekka Paalanenf5136382008-05-12 21:20:57 +0200201 my_trace->header.type = MMIO_MAGIC;
202 my_trace->header.pid = 0;
203 my_trace->header.data_len = sizeof(struct mm_io_rw);
204 my_trace->rw.address = addr;
Pekka Paalanen8b7d89d2008-05-12 21:20:56 +0200205
206 /*
207 * Only record the program counter when requested.
208 * It may taint clean-room reverse engineering.
209 */
210 if (trace_pc)
Pekka Paalanenf5136382008-05-12 21:20:57 +0200211 my_trace->rw.pc = instptr;
Pekka Paalanen8b7d89d2008-05-12 21:20:56 +0200212 else
Pekka Paalanenf5136382008-05-12 21:20:57 +0200213 my_trace->rw.pc = 0;
Pekka Paalanen8b7d89d2008-05-12 21:20:56 +0200214
Pekka Paalanenf5136382008-05-12 21:20:57 +0200215 record_timestamp(&my_trace->header);
Pekka Paalanen8b7d89d2008-05-12 21:20:56 +0200216
217 switch (type) {
218 case REG_READ:
Pekka Paalanenf5136382008-05-12 21:20:57 +0200219 my_trace->header.type |=
Pekka Paalanen8b7d89d2008-05-12 21:20:56 +0200220 (MMIO_READ << MMIO_OPCODE_SHIFT) |
221 (get_ins_mem_width(instptr) << MMIO_WIDTH_SHIFT);
222 break;
223 case REG_WRITE:
Pekka Paalanenf5136382008-05-12 21:20:57 +0200224 my_trace->header.type |=
Pekka Paalanen8b7d89d2008-05-12 21:20:56 +0200225 (MMIO_WRITE << MMIO_OPCODE_SHIFT) |
226 (get_ins_mem_width(instptr) << MMIO_WIDTH_SHIFT);
Pekka Paalanenf5136382008-05-12 21:20:57 +0200227 my_trace->rw.value = get_ins_reg_val(instptr, regs);
Pekka Paalanen8b7d89d2008-05-12 21:20:56 +0200228 break;
229 case IMM_WRITE:
Pekka Paalanenf5136382008-05-12 21:20:57 +0200230 my_trace->header.type |=
Pekka Paalanen8b7d89d2008-05-12 21:20:56 +0200231 (MMIO_WRITE << MMIO_OPCODE_SHIFT) |
232 (get_ins_mem_width(instptr) << MMIO_WIDTH_SHIFT);
Pekka Paalanenf5136382008-05-12 21:20:57 +0200233 my_trace->rw.value = get_ins_imm_val(instptr);
Pekka Paalanen8b7d89d2008-05-12 21:20:56 +0200234 break;
235 default:
236 {
237 unsigned char *ip = (unsigned char *)instptr;
Pekka Paalanenf5136382008-05-12 21:20:57 +0200238 my_trace->header.type |=
Pekka Paalanen8b7d89d2008-05-12 21:20:56 +0200239 (MMIO_UNKNOWN_OP << MMIO_OPCODE_SHIFT);
Pekka Paalanenf5136382008-05-12 21:20:57 +0200240 my_trace->rw.value = (*ip) << 16 | *(ip + 1) << 8 |
241 *(ip + 2);
Pekka Paalanen8b7d89d2008-05-12 21:20:56 +0200242 }
243 }
Pekka Paalanenf5136382008-05-12 21:20:57 +0200244 put_cpu_var(cpu_trace);
245 put_cpu_var(pf_reason);
Pekka Paalanen8b7d89d2008-05-12 21:20:56 +0200246}
247
248static void post(struct kmmio_probe *p, unsigned long condition,
249 struct pt_regs *regs)
250{
Pekka Paalanenf5136382008-05-12 21:20:57 +0200251 struct trap_reason *my_reason = &get_cpu_var(pf_reason);
252 struct mm_io_header_rw *my_trace = &get_cpu_var(cpu_trace);
Pekka Paalanen8b7d89d2008-05-12 21:20:56 +0200253
254 /* this should always return the active_trace count to 0 */
Pekka Paalanenf5136382008-05-12 21:20:57 +0200255 my_reason->active_traces--;
256 if (my_reason->active_traces) {
Pekka Paalanen8b7d89d2008-05-12 21:20:56 +0200257 printk(KERN_EMERG MODULE_NAME ": unexpected post handler");
258 BUG();
259 }
260
Pekka Paalanenf5136382008-05-12 21:20:57 +0200261 switch (my_reason->type) {
Pekka Paalanen8b7d89d2008-05-12 21:20:56 +0200262 case REG_READ:
Pekka Paalanenf5136382008-05-12 21:20:57 +0200263 my_trace->rw.value = get_ins_reg_val(my_reason->ip, regs);
Pekka Paalanen8b7d89d2008-05-12 21:20:56 +0200264 break;
265 default:
266 break;
267 }
Pekka Paalanenf5136382008-05-12 21:20:57 +0200268 relay_write(chan, my_trace, sizeof(*my_trace));
269 put_cpu_var(cpu_trace);
270 put_cpu_var(pf_reason);
Pekka Paalanen8b7d89d2008-05-12 21:20:56 +0200271}
272
273/*
274 * subbuf_start() relay callback.
275 *
276 * Defined so that we know when events are dropped due to the buffer-full
277 * condition.
278 */
279static int subbuf_start_handler(struct rchan_buf *buf, void *subbuf,
280 void *prev_subbuf, size_t prev_padding)
281{
Pekka Paalanenfe1ffaf2008-05-12 21:20:56 +0200282 unsigned int cpu = buf->cpu;
Pekka Paalanenf5136382008-05-12 21:20:57 +0200283 atomic_t *drop = &per_cpu(dropped, cpu);
Pekka Paalanenfe1ffaf2008-05-12 21:20:56 +0200284 int count;
Pekka Paalanen8b7d89d2008-05-12 21:20:56 +0200285 if (relay_buf_full(buf)) {
Pekka Paalanenfe1ffaf2008-05-12 21:20:56 +0200286 if (atomic_inc_return(drop) == 1) {
287 printk(KERN_ERR MODULE_NAME ": cpu %d buffer full!\n",
288 cpu);
Pekka Paalanen8b7d89d2008-05-12 21:20:56 +0200289 }
290 return 0;
Pekka Paalanenfe1ffaf2008-05-12 21:20:56 +0200291 } else if ((count = atomic_read(drop))) {
Pekka Paalanen8b7d89d2008-05-12 21:20:56 +0200292 printk(KERN_ERR MODULE_NAME
Pekka Paalanenfe1ffaf2008-05-12 21:20:56 +0200293 ": cpu %d buffer no longer full, "
294 "missed %d events.\n",
295 cpu, count);
296 atomic_sub(count, drop);
Pekka Paalanen8b7d89d2008-05-12 21:20:56 +0200297 }
298
299 return 1;
300}
301
302/* file_create() callback. Creates relay file in debugfs. */
303static struct dentry *create_buf_file_handler(const char *filename,
304 struct dentry *parent,
305 int mode,
306 struct rchan_buf *buf,
307 int *is_global)
308{
309 struct dentry *buf_file;
310
311 mmio_fops.read = relay_file_operations.read;
312 mmio_fops.open = relay_file_operations.open;
313 mmio_fops.poll = relay_file_operations.poll;
314 mmio_fops.mmap = relay_file_operations.mmap;
315 mmio_fops.release = relay_file_operations.release;
316 mmio_fops.splice_read = relay_file_operations.splice_read;
317
318 buf_file = debugfs_create_file(filename, mode, parent, buf,
319 &mmio_fops);
320
321 return buf_file;
322}
323
324/* file_remove() default callback. Removes relay file in debugfs. */
325static int remove_buf_file_handler(struct dentry *dentry)
326{
327 debugfs_remove(dentry);
328 return 0;
329}
330
331static struct rchan_callbacks relay_callbacks = {
332 .subbuf_start = subbuf_start_handler,
333 .create_buf_file = create_buf_file_handler,
334 .remove_buf_file = remove_buf_file_handler,
335};
336
337/*
338 * create_channel - creates channel /debug/APP_DIR/cpuXXX
339 * Returns channel on success, NULL otherwise
340 */
341static struct rchan *create_channel(unsigned size, unsigned n)
342{
343 return relay_open("cpu", dir, size, n, &relay_callbacks, NULL);
344}
345
346/* destroy_channel - destroys channel /debug/APP_DIR/cpuXXX */
347static void destroy_channel(void)
348{
349 if (chan) {
350 relay_close(chan);
351 chan = NULL;
352 }
353}
354
355struct remap_trace {
356 struct list_head list;
357 struct kmmio_probe probe;
358};
359static LIST_HEAD(trace_list);
360static DEFINE_SPINLOCK(trace_list_lock);
361
362static void do_ioremap_trace_core(unsigned long offset, unsigned long size,
363 void __iomem *addr)
364{
365 struct remap_trace *trace = kmalloc(sizeof(*trace), GFP_KERNEL);
366 struct mm_io_header_map event = {
367 .header = {
368 .type = MMIO_MAGIC |
369 (MMIO_PROBE << MMIO_OPCODE_SHIFT),
370 .sec = 0,
371 .nsec = 0,
372 .pid = 0,
373 .data_len = sizeof(struct mm_io_map)
374 },
375 .map = {
376 .phys = offset,
377 .addr = (unsigned long)addr,
378 .len = size,
379 .pc = 0
380 }
381 };
382 record_timestamp(&event.header);
383
384 *trace = (struct remap_trace) {
385 .probe = {
386 .addr = (unsigned long)addr,
387 .len = size,
388 .pre_handler = pre,
389 .post_handler = post,
390 }
391 };
392
393 relay_write(chan, &event, sizeof(event));
394 spin_lock(&trace_list_lock);
395 list_add_tail(&trace->list, &trace_list);
396 spin_unlock(&trace_list_lock);
397 if (!nommiotrace)
398 register_kmmio_probe(&trace->probe);
399}
400
401static void ioremap_trace_core(unsigned long offset, unsigned long size,
402 void __iomem *addr)
403{
404 if ((filter_offset) && (offset != filter_offset))
405 return;
406
407 /* Don't trace the low PCI/ISA area, it's always mapped.. */
408 if (!ISA_trace && (offset < ISA_END_ADDRESS) &&
409 (offset + size > ISA_START_ADDRESS)) {
410 printk(KERN_NOTICE MODULE_NAME ": Ignoring map of low "
411 "PCI/ISA area (0x%lx-0x%lx)\n",
412 offset, offset + size);
413 return;
414 }
415 do_ioremap_trace_core(offset, size, addr);
416}
417
418void __iomem *ioremap_cache_trace(unsigned long offset, unsigned long size)
419{
420 void __iomem *p = ioremap_cache(offset, size);
421 printk(KERN_DEBUG MODULE_NAME ": ioremap_cache(0x%lx, 0x%lx) = %p\n",
422 offset, size, p);
423 ioremap_trace_core(offset, size, p);
424 return p;
425}
426EXPORT_SYMBOL(ioremap_cache_trace);
427
428void __iomem *ioremap_nocache_trace(unsigned long offset, unsigned long size)
429{
430 void __iomem *p = ioremap_nocache(offset, size);
431 printk(KERN_DEBUG MODULE_NAME ": ioremap_nocache(0x%lx, 0x%lx) = %p\n",
432 offset, size, p);
433 ioremap_trace_core(offset, size, p);
434 return p;
435}
436EXPORT_SYMBOL(ioremap_nocache_trace);
437
438void iounmap_trace(volatile void __iomem *addr)
439{
440 struct mm_io_header_map event = {
441 .header = {
442 .type = MMIO_MAGIC |
443 (MMIO_UNPROBE << MMIO_OPCODE_SHIFT),
444 .sec = 0,
445 .nsec = 0,
446 .pid = 0,
447 .data_len = sizeof(struct mm_io_map)
448 },
449 .map = {
450 .phys = 0,
451 .addr = (unsigned long)addr,
452 .len = 0,
453 .pc = 0
454 }
455 };
456 struct remap_trace *trace;
457 struct remap_trace *tmp;
458 printk(KERN_DEBUG MODULE_NAME ": Unmapping %p.\n", addr);
459 record_timestamp(&event.header);
460
461 spin_lock(&trace_list_lock);
462 list_for_each_entry_safe(trace, tmp, &trace_list, list) {
463 if ((unsigned long)addr == trace->probe.addr) {
464 if (!nommiotrace)
465 unregister_kmmio_probe(&trace->probe);
466 list_del(&trace->list);
467 kfree(trace);
468 break;
469 }
470 }
471 spin_unlock(&trace_list_lock);
472 relay_write(chan, &event, sizeof(event));
473 iounmap(addr);
474}
475EXPORT_SYMBOL(iounmap_trace);
476
477static void clear_trace_list(void)
478{
479 struct remap_trace *trace;
480 struct remap_trace *tmp;
481
482 spin_lock(&trace_list_lock);
483 list_for_each_entry_safe(trace, tmp, &trace_list, list) {
484 printk(KERN_WARNING MODULE_NAME ": purging non-iounmapped "
485 "trace @0x%08lx, size 0x%lx.\n",
486 trace->probe.addr, trace->probe.len);
487 if (!nommiotrace)
488 unregister_kmmio_probe(&trace->probe);
489 list_del(&trace->list);
490 kfree(trace);
491 break;
492 }
493 spin_unlock(&trace_list_lock);
494}
495
496static int __init init(void)
497{
498 if (n_subbufs < 2)
499 return -EINVAL;
500
501 dir = debugfs_create_dir(APP_DIR, NULL);
502 if (!dir) {
503 printk(KERN_ERR MODULE_NAME
504 ": Couldn't create relay app directory.\n");
505 return -ENOMEM;
506 }
507
508 chan = create_channel(subbuf_size, n_subbufs);
509 if (!chan) {
510 debugfs_remove(dir);
511 printk(KERN_ERR MODULE_NAME
512 ": relay app channel creation failed\n");
513 return -ENOMEM;
514 }
515
516 init_kmmio();
517
518 proc_marker_file = create_proc_entry(MARKER_FILE, 0, NULL);
519 if (proc_marker_file)
520 proc_marker_file->write_proc = write_marker;
521
522 printk(KERN_DEBUG MODULE_NAME ": loaded.\n");
523 if (nommiotrace)
524 printk(KERN_DEBUG MODULE_NAME ": MMIO tracing disabled.\n");
525 if (ISA_trace)
526 printk(KERN_WARNING MODULE_NAME
527 ": Warning! low ISA range will be traced.\n");
528 return 0;
529}
530
531static void __exit cleanup(void)
532{
533 printk(KERN_DEBUG MODULE_NAME ": unload...\n");
534 clear_trace_list();
535 cleanup_kmmio();
536 remove_proc_entry(MARKER_FILE, NULL);
537 destroy_channel();
538 if (dir)
539 debugfs_remove(dir);
540}
541
542module_init(init);
543module_exit(cleanup);
544MODULE_LICENSE("GPL");