aboutsummaryrefslogtreecommitdiffstats
path: root/litmus/sched_trace_external.c
blob: cf8e1d78aa770a53124e7d8fbf4ca9aaf79b8e6f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#include <linux/module.h>

#include <litmus/trace.h>
#include <litmus/sched_trace.h>
#include <litmus/litmus.h>

void __sched_trace_tasklet_begin_external(struct task_struct* t)
{
	sched_trace_tasklet_begin(t);
}
EXPORT_SYMBOL(__sched_trace_tasklet_begin_external);

void __sched_trace_tasklet_end_external(struct task_struct* t, unsigned long flushed)
{
	sched_trace_tasklet_end(t, flushed);
}
EXPORT_SYMBOL(__sched_trace_tasklet_end_external);



void __sched_trace_work_begin_external(struct task_struct* t, struct task_struct* e)
{
	sched_trace_work_begin(t, e);
}
EXPORT_SYMBOL(__sched_trace_work_begin_external);

void __sched_trace_work_end_external(struct task_struct* t, struct task_struct* e, unsigned long f)
{
	sched_trace_work_end(t, e, f);
}
EXPORT_SYMBOL(__sched_trace_work_end_external);



void __sched_trace_nv_interrupt_begin_external(u32 device)
{
	//unsigned long _device = device;
	sched_trace_nv_interrupt_begin((unsigned long)device);
}
EXPORT_SYMBOL(__sched_trace_nv_interrupt_begin_external);

void __sched_trace_nv_interrupt_end_external(u32 device)
{
	//unsigned long _device = device;
	sched_trace_nv_interrupt_end((unsigned long)device);
}
EXPORT_SYMBOL(__sched_trace_nv_interrupt_end_external);


#ifdef CONFIG_LITMUS_NVIDIA

#define EXX_TS(evt) \
void __##evt(void) { evt; } \
EXPORT_SYMBOL(__##evt);

EXX_TS(TS_NV_TOPISR_START)
EXX_TS(TS_NV_TOPISR_END)
EXX_TS(TS_NV_BOTISR_START)
EXX_TS(TS_NV_BOTISR_END)
EXX_TS(TS_NV_RELEASE_BOTISR_START)
EXX_TS(TS_NV_RELEASE_BOTISR_END)

#endif