[DTrace-devel] [PATCH 13/47] Disable the printing of aggregations

Kris Van Hees kris.van.hees at oracle.com
Sun May 3 20:17:04 PDT 2020


Since aggregations are not supported yet in DTrace v2, and now that it
is possible to use the exit() action to end tracing, the auto-printing
of aggregations when tracing ends is commented out pending a working
implementation of aggregations.

Orabug: 31220520
Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>
Reviewed-by: Kris Van Hees <kris.van.hees at oracle.com>
Reviewed-by: Eugene Loh <eugene.loh at oracle.com>
---
 cmd/dtrace.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/cmd/dtrace.c b/cmd/dtrace.c
index 20448ae4..546931e3 100644
--- a/cmd/dtrace.c
+++ b/cmd/dtrace.c
@@ -1,6 +1,6 @@
 /*
  * Oracle Linux DTrace.
- * Copyright (c) 2006, 2019, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2006, 2020, Oracle and/or its affiliates. All rights reserved.
  * Licensed under the Universal Permissive License v 1.0 as shown at
  * http://oss.oracle.com/licenses/upl.
  */
@@ -1541,11 +1541,13 @@ main(int argc, char *argv[])
 
 	oprintf("\n");
 
+#if 0
 	if (!g_impatient) {
 		if (dtrace_aggregate_print(g_dtp, g_ofp, NULL) == -1 &&
 		    dtrace_errno(g_dtp) != EINTR)
 			dfatal("failed to print aggregations");
 	}
+#endif
 
 	for (i = 0; i < g_psc; i++)
 		dtrace_proc_release(g_dtp, g_psv[i]);
-- 
2.26.0




More information about the DTrace-devel mailing list