Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/include/linux Define FENCE_TRACE. Nee...



details:   https://anonhg.NetBSD.org/src/rev/0e2c029c5723
branches:  trunk
changeset: 364553:0e2c029c5723
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 07:47:21 2018 +0000

description:
Define FENCE_TRACE.  Need some way to limit it...

diffstat:

 sys/external/bsd/drm2/include/linux/fence.h |  13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r 1a043be309c1 -r 0e2c029c5723 sys/external/bsd/drm2/include/linux/fence.h
--- a/sys/external/bsd/drm2/include/linux/fence.h       Mon Aug 27 07:47:11 2018 +0000
+++ b/sys/external/bsd/drm2/include/linux/fence.h       Mon Aug 27 07:47:21 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fence.h,v 1.7 2018/08/27 07:34:32 riastradh Exp $      */
+/*     $NetBSD: fence.h,v 1.8 2018/08/27 07:47:21 riastradh Exp $      */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -97,4 +97,15 @@
 long   fence_wait(struct fence *, bool);
 long   fence_wait_timeout(struct fence *, bool, int);
 
+static inline void
+FENCE_TRACE(struct fence *f, const char *fmt, ...)
+{
+       va_list va;
+
+       va_start(va, fmt);
+       printf("fence %u@%u: ", f->context, f->seqno);
+       vprintf(fmt, va);
+       va_end(va);
+}
+
 #endif /* _LINUX_FENCE_H_ */



Home | Main Index | Thread Index | Old Index