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 linux: Define trace_*_en...



details:   https://anonhg.NetBSD.org/src/rev/7c999b2e6de8
branches:  trunk
changeset: 1028872:7c999b2e6de8
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 12:22:10 2021 +0000

description:
linux: Define trace_*_enabled too, to return false.

diffstat:

 sys/external/bsd/drm2/include/linux/tracepoint.h |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 0b4995231dae -r 7c999b2e6de8 sys/external/bsd/drm2/include/linux/tracepoint.h
--- a/sys/external/bsd/drm2/include/linux/tracepoint.h  Sun Dec 19 12:22:03 2021 +0000
+++ b/sys/external/bsd/drm2/include/linux/tracepoint.h  Sun Dec 19 12:22:10 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tracepoint.h,v 1.3 2021/12/19 10:58:17 riastradh Exp $ */
+/*     $NetBSD: tracepoint.h,v 1.4 2021/12/19 12:22:10 riastradh Exp $ */
 
 /*-
  * Copyright (c) 2020 The NetBSD Foundation, Inc.
@@ -40,6 +40,7 @@
        /* nothing */
 
 #define        DEFINE_EVENT(CLASS, NAME, PROTOTYPE, ARGS)                            \
-       static inline void trace_##NAME PROTOTYPE {}
+       static inline void trace_##NAME PROTOTYPE {}                          \
+       static inline bool trace_##NAME##_enabled(void) { return false; }
 
 #endif /* _LINUX_TRACEPOINT_H_ */



Home | Main Index | Thread Index | Old Index