Source-Changes-HG archive

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

[.joined/src/trunk]: .joined/src/sys/external/bsd/common/linux drm: Convert n...



details:   https://anonhg.NetBSD.org/.joined/src/rev/b539d6c8810a
branches:  trunk
changeset: 359351:b539d6c8810a
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Fri Dec 31 14:30:20 2021 +0000

description:
drm: Convert noisy flush_workqueue message to dtrace probe.

diffstat:

 sys/external/bsd/common/linux/linux_work.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (37 lines):

diff -r 18b18c8019b3 -r b539d6c8810a sys/external/bsd/common/linux/linux_work.c
--- a/sys/external/bsd/common/linux/linux_work.c        Fri Dec 31 14:30:04 2021 +0000
+++ b/sys/external/bsd/common/linux/linux_work.c        Fri Dec 31 14:30:20 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_work.c,v 1.59 2021/12/19 12:27:39 riastradh Exp $        */
+/*     $NetBSD: linux_work.c,v 1.60 2021/12/31 14:30:20 riastradh Exp $        */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_work.c,v 1.59 2021/12/19 12:27:39 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_work.c,v 1.60 2021/12/31 14:30:20 riastradh Exp $");
 
 #include <sys/types.h>
 #include <sys/atomic.h>
@@ -113,6 +113,8 @@
     "struct workqueue_struct *"/*wq*/);
 SDT_PROBE_DEFINE1(sdt, linux, work, batch__done,
     "struct workqueue_struct *"/*wq*/);
+SDT_PROBE_DEFINE1(sdt, linux, work, flush__self,
+    "struct workqueue_struct *"/*wq*/);
 SDT_PROBE_DEFINE1(sdt, linux, work, flush__start,
     "struct workqueue_struct *"/*wq*/);
 SDT_PROBE_DEFINE1(sdt, linux, work, flush__done,
@@ -1458,8 +1460,7 @@
        struct flush_work fw;
 
        if (lwp_getspecific(workqueue_key) == wq) {
-               aprint_debug("%s: running from workqueue %s\n", __func__,
-                   wq->wq_name);
+               SDT_PROBE1(sdt, linux, work, flush__self,  wq);
                return;
        }
 



Home | Main Index | Thread Index | Old Index