summaryrefslogtreecommitdiffstats
path: root/include/trace/events
diff options
context:
space:
mode:
authorThomas Fleury <tfleury@nvidia.com>2016-03-15 22:06:43 -0400
committerKen Adams <kadams@nvidia.com>2016-05-05 12:25:02 -0400
commit93678f571c323861458992de16d552ea7313e831 (patch)
tree7a1faae97be3a9be5f180b011d66075ab8a1541c /include/trace/events
parent8beea96fad15724bc1fb7302668077617c9dbcee (diff)
gpu: nvgpu: Add trace and debugfs for sched params
JIRA EVLR-244 JIRA EVLR-318 Change-Id: Ie95f42212dadcf2d0c1737eeb28812afb03b712f Signed-off-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-on: http://git-master/r/1120603 GVS: Gerrit_Virtual_Submit Reviewed-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-by: Ken Adams <kadams@nvidia.com>
Diffstat (limited to 'include/trace/events')
-rw-r--r--include/trace/events/gk20a.h66
1 files changed, 65 insertions, 1 deletions
diff --git a/include/trace/events/gk20a.h b/include/trace/events/gk20a.h
index c382099a..fc5cb872 100644
--- a/include/trace/events/gk20a.h
+++ b/include/trace/events/gk20a.h
@@ -1,7 +1,7 @@
1/* 1/*
2 * gk20a event logging to ftrace. 2 * gk20a event logging to ftrace.
3 * 3 *
4 * Copyright (c) 2014-2015, NVIDIA CORPORATION. All rights reserved. 4 * Copyright (c) 2014-2016, NVIDIA CORPORATION. All rights reserved.
5 * 5 *
6 * This program is free software; you can redistribute it and/or modify it 6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License, 7 * under the terms and conditions of the GNU General Public License,
@@ -190,6 +190,70 @@ DEFINE_EVENT(gk20a_channel_getput, gk20a_channel_put_nofree,
190 TP_ARGS(channel, caller) 190 TP_ARGS(channel, caller)
191); 191);
192 192
193DECLARE_EVENT_CLASS(gk20a_channel_sched_params,
194 TP_PROTO(int chid, int tsgid, pid_t pid, u32 timeslice,
195 u32 timeout, const char *interleave, const char *preempt_mode),
196 TP_ARGS(chid, tsgid, pid, timeslice, timeout,
197 interleave, preempt_mode),
198 TP_STRUCT__entry(
199 __field(int, chid)
200 __field(int, tsgid)
201 __field(pid_t, pid)
202 __field(u32, timeslice)
203 __field(u32, timeout)
204 __field(const char *, interleave) /* no need to copy */
205 __field(const char *, preempt_mode) /* no need to copy */
206 ),
207 TP_fast_assign(
208 __entry->chid = chid;
209 __entry->tsgid = tsgid;
210 __entry->pid = pid;
211 __entry->timeslice = timeslice;
212 __entry->timeout = timeout;
213 __entry->interleave = interleave;
214 __entry->preempt_mode = preempt_mode;
215 ),
216 TP_printk("chid=%d tsgid=%d pid=%d timeslice=%u timeout=%u interleave=%s preempt=%s",
217 __entry->chid, __entry->tsgid, __entry->pid,
218 __entry->timeslice, __entry->timeout,
219 __entry->interleave, __entry->preempt_mode)
220);
221
222DEFINE_EVENT(gk20a_channel_sched_params, gk20a_channel_sched_defaults,
223 TP_PROTO(int chid, int tsgid, pid_t pid, u32 timeslice,
224 u32 timeout, const char *interleave, const char *preempt_mode),
225 TP_ARGS(chid, tsgid, pid, timeslice, timeout,
226 interleave, preempt_mode)
227);
228
229DEFINE_EVENT(gk20a_channel_sched_params, gk20a_channel_set_priority,
230 TP_PROTO(int chid, int tsgid, pid_t pid, u32 timeslice,
231 u32 timeout, const char *interleave, const char *preempt_mode),
232 TP_ARGS(chid, tsgid, pid, timeslice, timeout,
233 interleave, preempt_mode)
234);
235
236DEFINE_EVENT(gk20a_channel_sched_params, gk20a_channel_set_runlist_interleave,
237 TP_PROTO(int chid, int tsgid, pid_t pid, u32 timeslice,
238 u32 timeout, const char *interleave, const char *preempt_mode),
239 TP_ARGS(chid, tsgid, pid, timeslice, timeout,
240 interleave, preempt_mode)
241);
242
243DEFINE_EVENT(gk20a_channel_sched_params, gk20a_channel_set_timeslice,
244 TP_PROTO(int chid, int tsgid, pid_t pid, u32 timeslice,
245 u32 timeout, const char *interleave, const char *preempt_mode),
246 TP_ARGS(chid, tsgid, pid, timeslice, timeout,
247 interleave, preempt_mode)
248);
249
250DEFINE_EVENT(gk20a_channel_sched_params, gk20a_channel_set_timeout,
251 TP_PROTO(int chid, int tsgid, pid_t pid, u32 timeslice,
252 u32 timeout, const char *interleave, const char *preempt_mode),
253 TP_ARGS(chid, tsgid, pid, timeslice, timeout,
254 interleave, preempt_mode)
255);
256
193TRACE_EVENT(gk20a_push_cmdbuf, 257TRACE_EVENT(gk20a_push_cmdbuf,
194 TP_PROTO(const char *name, u32 mem_id, 258 TP_PROTO(const char *name, u32 mem_id,
195 u32 words, u32 offset, void *cmdbuf), 259 u32 words, u32 offset, void *cmdbuf),