Module Name: src
Committed By: riastradh
Date: Fri Dec 31 14:30:20 UTC 2021
Modified Files:
src/sys/external/bsd/common/linux: linux_work.c
Log Message:
drm: Convert noisy flush_workqueue message to dtrace probe.
To generate a diff of this commit:
cvs rdiff -u -r1.59 -r1.60 src/sys/external/bsd/common/linux/linux_work.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/external/bsd/common/linux/linux_work.c
diff -u src/sys/external/bsd/common/linux/linux_work.c:1.59 src/sys/external/bsd/common/linux/linux_work.c:1.60
--- src/sys/external/bsd/common/linux/linux_work.c:1.59 Sun Dec 19 12:27:39 2021
+++ src/sys/external/bsd/common/linux/linux_work.c Fri Dec 31 14:30:20 2021
@@ -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 @@ SDT_PROBE_DEFINE1(sdt, linux, work, batc
"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 @@ flush_workqueue(struct workqueue_struct
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;
}