diff options
Diffstat (limited to 'litmus/sched_trace_external.c')
-rw-r--r-- | litmus/sched_trace_external.c | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/litmus/sched_trace_external.c b/litmus/sched_trace_external.c new file mode 100644 index 000000000000..d7d7d8bae298 --- /dev/null +++ b/litmus/sched_trace_external.c | |||
@@ -0,0 +1,45 @@ | |||
1 | #include <linux/module.h> | ||
2 | |||
3 | #include <litmus/sched_trace.h> | ||
4 | #include <litmus/litmus.h> | ||
5 | |||
6 | void __sched_trace_tasklet_begin_external(struct task_struct* t) | ||
7 | { | ||
8 | sched_trace_tasklet_begin(t); | ||
9 | } | ||
10 | EXPORT_SYMBOL(__sched_trace_tasklet_begin_external); | ||
11 | |||
12 | void __sched_trace_tasklet_end_external(struct task_struct* t, unsigned long flushed) | ||
13 | { | ||
14 | sched_trace_tasklet_end(t, flushed); | ||
15 | } | ||
16 | EXPORT_SYMBOL(__sched_trace_tasklet_end_external); | ||
17 | |||
18 | |||
19 | |||
20 | void __sched_trace_work_begin_external(struct task_struct* t, struct task_struct* e) | ||
21 | { | ||
22 | sched_trace_work_begin(t, e); | ||
23 | } | ||
24 | EXPORT_SYMBOL(__sched_trace_work_begin_external); | ||
25 | |||
26 | void __sched_trace_work_end_external(struct task_struct* t, struct task_struct* e, unsigned long f) | ||
27 | { | ||
28 | sched_trace_work_end(t, e, f); | ||
29 | } | ||
30 | EXPORT_SYMBOL(__sched_trace_work_end_external); | ||
31 | |||
32 | |||
33 | |||
34 | void __sched_trace_nv_interrupt_begin_external(u32 device) | ||
35 | { | ||
36 | unsigned long _device = device; | ||
37 | sched_trace_nv_interrupt_begin(_device); | ||
38 | } | ||
39 | EXPORT_SYMBOL(__sched_trace_nv_interrupt_begin_external); | ||
40 | |||
41 | void __sched_trace_nv_interrupt_end_external(void) | ||
42 | { | ||
43 | sched_trace_nv_interrupt_end(); | ||
44 | } | ||
45 | EXPORT_SYMBOL(__sched_trace_nv_interrupt_end_external); | ||