1 /* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only)
5 * Linux Trace Toolkit Next Generation Kernel State Dump
7 * Copyright 2005 Jean-Hugues Deschenes <jean-hugues.deschenes@polymtl.ca>
8 * Copyright 2006-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 * Eric Clement: Add listing of network IP interface
12 * 2006, 2007 Mathieu Desnoyers Fix kernel threads
16 #include <linux/init.h>
17 #include <linux/module.h>
18 #include <linux/netlink.h>
19 #include <linux/inet.h>
21 #include <linux/kthread.h>
22 #include <linux/proc_fs.h>
23 #include <linux/file.h>
24 #include <linux/interrupt.h>
25 #include <linux/irqnr.h>
26 #include <linux/netdevice.h>
27 #include <linux/inetdevice.h>
29 #include <linux/swap.h>
30 #include <linux/wait.h>
31 #include <linux/mutex.h>
32 #include <linux/device.h>
34 #include <linux/blkdev.h>
36 #include <lttng/events.h>
37 #include <lttng/tracer.h>
38 #include <wrapper/cpu.h>
39 #include <wrapper/irqdesc.h>
40 #include <wrapper/fdtable.h>
41 #include <wrapper/namespace.h>
42 #include <wrapper/irq.h>
43 #include <wrapper/tracepoint.h>
44 #include <wrapper/blkdev.h>
45 #include <wrapper/fdtable.h>
46 #include <wrapper/sched.h>
48 #ifdef CONFIG_LTTNG_HAS_LIST_IRQ
49 #include <linux/irq.h>
52 /* Define the tracepoints, but do not build the probes */
53 #define CREATE_TRACE_POINTS
54 #define TRACE_INCLUDE_PATH instrumentation/events
55 #define TRACE_INCLUDE_FILE lttng-statedump
56 #define LTTNG_INSTRUMENTATION
57 #include <instrumentation/events/lttng-statedump.h>
59 LTTNG_DEFINE_TRACE(lttng_statedump_block_device
,
60 TP_PROTO(struct lttng_kernel_session
*session
,
61 dev_t dev
, const char *diskname
),
62 TP_ARGS(session
, dev
, diskname
));
64 LTTNG_DEFINE_TRACE(lttng_statedump_end
,
65 TP_PROTO(struct lttng_kernel_session
*session
),
68 LTTNG_DEFINE_TRACE(lttng_statedump_interrupt
,
69 TP_PROTO(struct lttng_kernel_session
*session
,
70 unsigned int irq
, const char *chip_name
,
71 struct irqaction
*action
),
72 TP_ARGS(session
, irq
, chip_name
, action
));
74 LTTNG_DEFINE_TRACE(lttng_statedump_file_descriptor
,
75 TP_PROTO(struct lttng_kernel_session
*session
,
76 struct files_struct
*files
,
77 int fd
, const char *filename
,
78 unsigned int flags
, fmode_t fmode
),
79 TP_ARGS(session
, files
, fd
, filename
, flags
, fmode
));
81 LTTNG_DEFINE_TRACE(lttng_statedump_start
,
82 TP_PROTO(struct lttng_kernel_session
*session
),
85 LTTNG_DEFINE_TRACE(lttng_statedump_process_state
,
86 TP_PROTO(struct lttng_kernel_session
*session
,
87 struct task_struct
*p
,
88 int type
, int mode
, int submode
, int status
,
89 struct files_struct
*files
),
90 TP_ARGS(session
, p
, type
, mode
, submode
, status
, files
));
92 LTTNG_DEFINE_TRACE(lttng_statedump_process_pid_ns
,
93 TP_PROTO(struct lttng_kernel_session
*session
,
94 struct task_struct
*p
,
95 struct pid_namespace
*pid_ns
),
96 TP_ARGS(session
, p
, pid_ns
));
98 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,6,0))
99 LTTNG_DEFINE_TRACE(lttng_statedump_process_cgroup_ns
,
100 TP_PROTO(struct lttng_kernel_session
*session
,
101 struct task_struct
*p
,
102 struct cgroup_namespace
*cgroup_ns
),
103 TP_ARGS(session
, p
, cgroup_ns
));
106 LTTNG_DEFINE_TRACE(lttng_statedump_process_ipc_ns
,
107 TP_PROTO(struct lttng_kernel_session
*session
,
108 struct task_struct
*p
,
109 struct ipc_namespace
*ipc_ns
),
110 TP_ARGS(session
, p
, ipc_ns
));
112 #ifndef LTTNG_MNT_NS_MISSING_HEADER
113 LTTNG_DEFINE_TRACE(lttng_statedump_process_mnt_ns
,
114 TP_PROTO(struct lttng_kernel_session
*session
,
115 struct task_struct
*p
,
116 struct mnt_namespace
*mnt_ns
),
117 TP_ARGS(session
, p
, mnt_ns
));
120 LTTNG_DEFINE_TRACE(lttng_statedump_process_net_ns
,
121 TP_PROTO(struct lttng_kernel_session
*session
,
122 struct task_struct
*p
,
124 TP_ARGS(session
, p
, net_ns
));
126 LTTNG_DEFINE_TRACE(lttng_statedump_process_user_ns
,
127 TP_PROTO(struct lttng_kernel_session
*session
,
128 struct task_struct
*p
,
129 struct user_namespace
*user_ns
),
130 TP_ARGS(session
, p
, user_ns
));
132 LTTNG_DEFINE_TRACE(lttng_statedump_process_uts_ns
,
133 TP_PROTO(struct lttng_kernel_session
*session
,
134 struct task_struct
*p
,
135 struct uts_namespace
*uts_ns
),
136 TP_ARGS(session
, p
, uts_ns
));
138 LTTNG_DEFINE_TRACE(lttng_statedump_process_time_ns
,
139 TP_PROTO(struct lttng_kernel_session
*session
,
140 struct task_struct
*p
,
141 struct time_namespace
*time_ns
),
142 TP_ARGS(session
, p
, time_ns
));
144 LTTNG_DEFINE_TRACE(lttng_statedump_network_interface
,
145 TP_PROTO(struct lttng_kernel_session
*session
,
146 struct net_device
*dev
, struct in_ifaddr
*ifa
),
147 TP_ARGS(session
, dev
, ifa
));
149 #ifdef LTTNG_HAVE_STATEDUMP_CPU_TOPOLOGY
150 LTTNG_DEFINE_TRACE(lttng_statedump_cpu_topology
,
151 TP_PROTO(struct lttng_kernel_session
*session
, struct cpuinfo_x86
*c
),
152 TP_ARGS(session
, c
));
155 struct lttng_fd_ctx
{
157 struct lttng_kernel_session
*session
;
158 struct files_struct
*files
;
162 * Protected by the trace lock.
164 static struct delayed_work cpu_work
[NR_CPUS
];
165 static DECLARE_WAIT_QUEUE_HEAD(statedump_wq
);
166 static atomic_t kernel_threads_to_run
;
168 enum lttng_thread_type
{
169 LTTNG_USER_THREAD
= 0,
170 LTTNG_KERNEL_THREAD
= 1,
173 enum lttng_execution_mode
{
179 LTTNG_MODE_UNKNOWN
= 5,
182 enum lttng_execution_submode
{
187 enum lttng_process_status
{
199 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(6,0,0))
201 #define LTTNG_PART_STRUCT_TYPE struct block_device
204 int lttng_get_part_name(struct gendisk
*disk
, struct block_device
*part
, char *name_buf
)
208 ret
= snprintf(name_buf
, BDEVNAME_SIZE
, "%pg", part
);
209 if (ret
< 0 || ret
>= BDEVNAME_SIZE
)
216 dev_t
lttng_get_part_devt(struct block_device
*part
)
221 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,11,0))
223 #define LTTNG_PART_STRUCT_TYPE struct block_device
226 int lttng_get_part_name(struct gendisk
*disk
, struct block_device
*part
, char *name_buf
)
230 p
= bdevname(part
, name_buf
);
238 dev_t
lttng_get_part_devt(struct block_device
*part
)
245 #define LTTNG_PART_STRUCT_TYPE struct hd_struct
248 int lttng_get_part_name(struct gendisk
*disk
, struct hd_struct
*part
, char *name_buf
)
251 struct block_device bdev
;
254 * Create a partial 'struct blockdevice' to use
255 * 'bdevname()' which is a simple wrapper over
256 * 'disk_name()' but has the honor to be EXPORT_SYMBOL.
261 p
= bdevname(&bdev
, name_buf
);
269 dev_t
lttng_get_part_devt(struct hd_struct
*part
)
271 return part_devt(part
);
275 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,12,0))
277 int lttng_statedump_each_block_device(struct lttng_kernel_session
*session
, struct gendisk
*disk
)
279 struct block_device
*part
;
283 /* Include partition 0 */
287 xa_for_each(&disk
->part_tbl
, idx
, part
) {
288 char name_buf
[BDEVNAME_SIZE
];
290 /* Exclude non-partitions bdev and empty partitions. */
291 if (bdev_is_partition(part
) && !bdev_nr_sectors(part
))
294 if (lttng_get_part_name(disk
, part
, name_buf
) == -ENOSYS
) {
298 trace_lttng_statedump_block_device(session
, lttng_get_part_devt(part
),
307 int lttng_statedump_each_block_device(struct lttng_kernel_session
*session
, struct gendisk
*disk
)
309 struct disk_part_iter piter
;
310 LTTNG_PART_STRUCT_TYPE
*part
;
312 disk_part_iter_init(&piter
, disk
, DISK_PITER_INCL_PART0
);
314 while ((part
= disk_part_iter_next(&piter
))) {
315 char name_buf
[BDEVNAME_SIZE
];
317 if (lttng_get_part_name(disk
, part
, name_buf
) == -ENOSYS
) {
318 disk_part_iter_exit(&piter
);
321 trace_lttng_statedump_block_device(session
, lttng_get_part_devt(part
),
324 disk_part_iter_exit(&piter
);
331 int lttng_enumerate_block_devices(struct lttng_kernel_session
*session
)
333 struct class *ptr_block_class
;
334 struct device_type
*ptr_disk_type
;
335 struct class_dev_iter iter
;
339 ptr_block_class
= wrapper_get_block_class();
340 if (!ptr_block_class
) {
344 ptr_disk_type
= wrapper_get_disk_type();
345 if (!ptr_disk_type
) {
349 class_dev_iter_init(&iter
, ptr_block_class
, NULL
, ptr_disk_type
);
350 while ((dev
= class_dev_iter_next(&iter
))) {
351 struct gendisk
*disk
= dev_to_disk(dev
);
354 * Don't show empty devices or things that have been
357 if (get_capacity(disk
) == 0 ||
358 (disk
->flags
& LTTNG_GENHD_FL_HIDDEN
))
361 ret
= lttng_statedump_each_block_device(session
, disk
);
363 class_dev_iter_exit(&iter
);
371 void lttng_enumerate_device(struct lttng_kernel_session
*session
,
372 struct net_device
*dev
)
374 struct in_device
*in_dev
;
375 struct in_ifaddr
*ifa
;
377 if (dev
->flags
& IFF_UP
) {
378 in_dev
= in_dev_get(dev
);
380 for (ifa
= in_dev
->ifa_list
; ifa
!= NULL
;
381 ifa
= ifa
->ifa_next
) {
382 trace_lttng_statedump_network_interface(
388 trace_lttng_statedump_network_interface(
394 int lttng_enumerate_network_ip_interface(struct lttng_kernel_session
*session
)
396 struct net_device
*dev
;
398 read_lock(&dev_base_lock
);
399 for_each_netdev(&init_net
, dev
)
400 lttng_enumerate_device(session
, dev
);
401 read_unlock(&dev_base_lock
);
405 #else /* CONFIG_INET */
407 int lttng_enumerate_network_ip_interface(struct lttng_kernel_session
*session
)
411 #endif /* CONFIG_INET */
414 int lttng_dump_one_fd(const void *p
, struct file
*file
, unsigned int fd
)
416 const struct lttng_fd_ctx
*ctx
= p
;
417 const char *s
= d_path(&file
->f_path
, ctx
->page
, PAGE_SIZE
);
418 unsigned int flags
= file
->f_flags
;
422 * We don't expose kernel internal flags, only userspace-visible
425 flags
&= ~FMODE_NONOTIFY
;
426 fdt
= files_fdtable(ctx
->files
);
428 * We need to check here again whether fd is within the fdt
429 * max_fds range, because we might be seeing a different
430 * files_fdtable() than iterate_fd(), assuming only RCU is
431 * protecting the read. In reality, iterate_fd() holds
432 * file_lock, which should ensure the fdt does not change while
433 * the lock is taken, but we are not aware whether this is
434 * guaranteed or not, so play safe.
436 if (fd
< fdt
->max_fds
&& lttng_close_on_exec(fd
, fdt
))
439 struct dentry
*dentry
= file
->f_path
.dentry
;
441 /* Make sure we give at least some info */
442 spin_lock(&dentry
->d_lock
);
443 trace_lttng_statedump_file_descriptor(ctx
->session
,
444 ctx
->files
, fd
, dentry
->d_name
.name
, flags
,
446 spin_unlock(&dentry
->d_lock
);
449 trace_lttng_statedump_file_descriptor(ctx
->session
,
450 ctx
->files
, fd
, s
, flags
, file
->f_mode
);
455 /* Called with task lock held. */
457 void lttng_enumerate_files(struct lttng_kernel_session
*session
,
458 struct files_struct
*files
,
461 struct lttng_fd_ctx ctx
= { .page
= tmp
, .session
= session
, .files
= files
, };
463 lttng_iterate_fd(files
, 0, lttng_dump_one_fd
, &ctx
);
466 #ifdef LTTNG_HAVE_STATEDUMP_CPU_TOPOLOGY
468 int lttng_enumerate_cpu_topology(struct lttng_kernel_session
*session
)
471 const cpumask_t
*cpumask
= cpu_possible_mask
;
473 for (cpu
= cpumask_first(cpumask
); cpu
< nr_cpu_ids
;
474 cpu
= cpumask_next(cpu
, cpumask
)) {
475 trace_lttng_statedump_cpu_topology(session
, &cpu_data(cpu
));
482 int lttng_enumerate_cpu_topology(struct lttng_kernel_session
*session
)
490 * FIXME: we cannot take a mmap_sem while in a RCU read-side critical section
491 * (scheduling in atomic). Normally, the tasklist lock protects this kind of
492 * iteration, but it is not exported to modules.
495 void lttng_enumerate_task_vm_maps(struct lttng_kernel_session
*session
,
496 struct task_struct
*p
)
498 struct mm_struct
*mm
;
499 struct vm_area_struct
*map
;
502 /* get_task_mm does a task_lock... */
509 down_read(&mm
->mmap_sem
);
512 ino
= map
->vm_file
->f_path
.dentry
->d_inode
->i_ino
;
515 trace_lttng_statedump_vm_map(session
, p
, map
, ino
);
518 up_read(&mm
->mmap_sem
);
524 int lttng_enumerate_vm_maps(struct lttng_kernel_session
*session
)
526 struct task_struct
*p
;
530 lttng_enumerate_task_vm_maps(session
, p
);
536 #ifdef CONFIG_LTTNG_HAS_LIST_IRQ
539 int lttng_list_interrupts(struct lttng_kernel_session
*session
)
542 unsigned long flags
= 0;
543 struct irq_desc
*desc
;
545 #define irq_to_desc wrapper_irq_to_desc
547 for_each_irq_desc(irq
, desc
) {
548 struct irqaction
*action
;
549 const char *irq_chip_name
=
550 irq_desc_get_chip(desc
)->name
? : "unnamed_irq_chip";
552 local_irq_save(flags
);
553 raw_spin_lock(&desc
->lock
);
554 for (action
= desc
->action
; action
; action
= action
->next
) {
555 trace_lttng_statedump_interrupt(session
,
556 irq
, irq_chip_name
, action
);
558 raw_spin_unlock(&desc
->lock
);
559 local_irq_restore(flags
);
566 int lttng_list_interrupts(struct lttng_kernel_session
*session
)
573 * Statedump the task's namespaces using the proc filesystem inode number as
574 * the unique identifier. The user and pid ns are nested and will be dumped
577 * Called with task lock held.
580 void lttng_statedump_process_ns(struct lttng_kernel_session
*session
,
581 struct task_struct
*p
,
582 enum lttng_thread_type type
,
583 enum lttng_execution_mode mode
,
584 enum lttng_execution_submode submode
,
585 enum lttng_process_status status
)
587 struct nsproxy
*proxy
;
588 struct pid_namespace
*pid_ns
;
589 struct user_namespace
*user_ns
;
592 * The pid and user namespaces are special, they are nested and
593 * accessed with specific functions instead of the nsproxy struct
594 * like the other namespaces.
596 pid_ns
= task_active_pid_ns(p
);
598 trace_lttng_statedump_process_pid_ns(session
, p
, pid_ns
);
599 pid_ns
= pid_ns
? pid_ns
->parent
: NULL
;
603 user_ns
= task_cred_xxx(p
, user_ns
);
605 trace_lttng_statedump_process_user_ns(session
, p
, user_ns
);
607 * trace_lttng_statedump_process_user_ns() internally
608 * checks whether user_ns is NULL. While this does not
609 * appear to be a possible return value for
610 * task_cred_xxx(), err on the safe side and check
611 * for NULL here as well to be consistent with the
612 * paranoid behavior of
613 * trace_lttng_statedump_process_user_ns().
615 user_ns
= user_ns
? user_ns
->lttng_user_ns_parent
: NULL
;
619 * Back and forth on locking strategy within Linux upstream for nsproxy.
620 * See Linux upstream commit 728dba3a39c66b3d8ac889ddbe38b5b1c264aec3
621 * "namespaces: Use task_lock and not rcu to protect nsproxy"
624 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,17,0) || \
625 LTTNG_UBUNTU_KERNEL_RANGE(3,13,11,36, 3,14,0,0) || \
626 LTTNG_UBUNTU_KERNEL_RANGE(3,16,1,11, 3,17,0,0) || \
627 LTTNG_RHEL_KERNEL_RANGE(3,10,0,229,13,0, 3,11,0,0,0,0))
631 proxy
= task_nsproxy(p
);
634 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,6,0))
635 trace_lttng_statedump_process_cgroup_ns(session
, p
, proxy
->cgroup_ns
);
637 trace_lttng_statedump_process_ipc_ns(session
, p
, proxy
->ipc_ns
);
638 #ifndef LTTNG_MNT_NS_MISSING_HEADER
639 trace_lttng_statedump_process_mnt_ns(session
, p
, proxy
->mnt_ns
);
641 trace_lttng_statedump_process_net_ns(session
, p
, proxy
->net_ns
);
642 trace_lttng_statedump_process_uts_ns(session
, p
, proxy
->uts_ns
);
643 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,6,0) || \
644 LTTNG_RHEL_KERNEL_RANGE(4,18,0,305,0,0, 4,19,0,0,0,0))
645 trace_lttng_statedump_process_time_ns(session
, p
, proxy
->time_ns
);
648 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,17,0) || \
649 LTTNG_UBUNTU_KERNEL_RANGE(3,13,11,36, 3,14,0,0) || \
650 LTTNG_UBUNTU_KERNEL_RANGE(3,16,1,11, 3,17,0,0) || \
651 LTTNG_RHEL_KERNEL_RANGE(3,10,0,229,13,0, 3,11,0,0,0,0))
659 int lttng_enumerate_process_states(struct lttng_kernel_session
*session
)
661 struct task_struct
*g
, *p
;
664 tmp
= (char *) __get_free_page(GFP_KERNEL
);
669 for_each_process(g
) {
670 struct files_struct
*prev_files
= NULL
;
674 enum lttng_execution_mode mode
=
676 enum lttng_execution_submode submode
=
678 enum lttng_process_status status
;
679 enum lttng_thread_type type
;
680 struct files_struct
*files
;
683 if (p
->exit_state
== EXIT_ZOMBIE
)
684 status
= LTTNG_ZOMBIE
;
685 else if (p
->exit_state
== EXIT_DEAD
)
687 else if (lttng_task_is_running(p
)) {
688 /* Is this a forked child that has not run yet? */
689 if (list_empty(&p
->rt
.run_list
))
690 status
= LTTNG_WAIT_FORK
;
693 * All tasks are considered as wait_cpu;
694 * the viewer will sort out if the task
695 * was really running at this time.
697 status
= LTTNG_WAIT_CPU
;
698 } else if (lttng_get_task_state(p
) &
699 (TASK_INTERRUPTIBLE
| TASK_UNINTERRUPTIBLE
)) {
700 /* Task is waiting for something to complete */
703 status
= LTTNG_UNNAMED
;
704 submode
= LTTNG_NONE
;
707 * Verification of t->mm is to filter out kernel
708 * threads; Viewer will further filter out if a
709 * user-space thread was in syscall mode or not.
712 type
= LTTNG_USER_THREAD
;
714 type
= LTTNG_KERNEL_THREAD
;
717 trace_lttng_statedump_process_state(session
,
718 p
, type
, mode
, submode
, status
, files
);
719 lttng_statedump_process_ns(session
,
720 p
, type
, mode
, submode
, status
);
722 * As an optimisation for the common case, do not
723 * repeat information for the same files_struct in
724 * two consecutive threads. This is the common case
725 * for threads sharing the same fd table. RCU guarantees
726 * that the same files_struct pointer is not re-used
727 * throughout processes/threads iteration.
729 if (files
&& files
!= prev_files
) {
730 lttng_enumerate_files(session
, files
, tmp
);
734 } while_each_thread(g
, p
);
738 free_page((unsigned long) tmp
);
744 void lttng_statedump_work_func(struct work_struct
*work
)
746 if (atomic_dec_and_test(&kernel_threads_to_run
))
747 /* If we are the last thread, wake up do_lttng_statedump */
748 wake_up(&statedump_wq
);
752 int do_lttng_statedump(struct lttng_kernel_session
*session
)
756 trace_lttng_statedump_start(session
);
757 ret
= lttng_enumerate_process_states(session
);
762 * ret = lttng_enumerate_vm_maps(session);
766 ret
= lttng_list_interrupts(session
);
769 ret
= lttng_enumerate_network_ip_interface(session
);
772 ret
= lttng_enumerate_block_devices(session
);
777 printk(KERN_WARNING
"LTTng: block device enumeration is not supported by kernel\n");
782 ret
= lttng_enumerate_cpu_topology(session
);
786 /* TODO lttng_dump_idt_table(session); */
787 /* TODO lttng_dump_softirq_vec(session); */
788 /* TODO lttng_list_modules(session); */
789 /* TODO lttng_dump_swap_files(session); */
792 * Fire off a work queue on each CPU. Their sole purpose in life
793 * is to guarantee that each CPU has been in a state where is was in
794 * syscall mode (i.e. not in a trap, an IRQ or a soft IRQ).
796 lttng_cpus_read_lock();
797 atomic_set(&kernel_threads_to_run
, num_online_cpus());
798 for_each_online_cpu(cpu
) {
799 INIT_DELAYED_WORK(&cpu_work
[cpu
], lttng_statedump_work_func
);
800 schedule_delayed_work_on(cpu
, &cpu_work
[cpu
], 0);
802 /* Wait for all threads to run */
803 __wait_event(statedump_wq
, (atomic_read(&kernel_threads_to_run
) == 0));
804 lttng_cpus_read_unlock();
805 /* Our work is done */
806 trace_lttng_statedump_end(session
);
811 * Called with session mutex held.
813 int lttng_statedump_start(struct lttng_kernel_session
*session
)
815 return do_lttng_statedump(session
);
817 EXPORT_SYMBOL_GPL(lttng_statedump_start
);
820 int __init
lttng_statedump_init(void)
823 * Allow module to load even if the fixup cannot be done. This
824 * will allow seemless transition when the underlying issue fix
825 * is merged into the Linux kernel, and when tracepoint.c
826 * "tracepoint_module_notify" is turned into a static function.
828 (void) wrapper_lttng_fixup_sig(THIS_MODULE
);
832 module_init(lttng_statedump_init
);
835 void __exit
lttng_statedump_exit(void)
839 module_exit(lttng_statedump_exit
);
841 MODULE_LICENSE("GPL and additional rights");
842 MODULE_AUTHOR("Jean-Hugues Deschenes");
843 MODULE_DESCRIPTION("LTTng statedump provider");
844 MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION
) "."
845 __stringify(LTTNG_MODULES_MINOR_VERSION
) "."
846 __stringify(LTTNG_MODULES_PATCHLEVEL_VERSION
)
847 LTTNG_MODULES_EXTRAVERSION
);