Lines Matching +full:module +full:- +full:instance
1 // SPDX-License-Identifier: GPL-2.0-only
2 #include <linux/module.h>
18 #include "sample-trace-array.h"
29 trace_array_set_clr_event(tr, "sample-subsystem", "sample_event", in trace_work_fn()
36 * timer is only for the purposes of the sample module to demonstrate access of
52 * Printing count value using trace_array_printk() - trace_printk() in simple_thread_func()
53 * equivalent for the instance buffers. in simple_thread_func()
72 trace_array_set_clr_event(tr, "sample-subsystem", "sample_event", true); in simple_thread()
75 * Adding timer - mytimer. This timer will disable tracing after in simple_thread()
90 * the trace array - "tr". We are done using the trace array, hence in simple_thread()
102 * Return a pointer to the trace array with name "sample-instance" if it in sample_trace_array_init()
106 * associated with the trace array - "tr". in sample_trace_array_init()
108 tr = trace_array_get_by_name("sample-instance", "sched,timer,kprobes"); in sample_trace_array_init()
111 return -1; in sample_trace_array_init()
113 * If context specific per-cpu buffers havent already been allocated. in sample_trace_array_init()
117 simple_tsk = kthread_run(simple_thread, NULL, "sample-instance"); in sample_trace_array_init()
121 return -1; in sample_trace_array_init()
132 * We are unloading our module and no longer require the trace array. in sample_trace_array_exit()
142 MODULE_DESCRIPTION("Sample module for kernel access to Ftrace instances");