[DTrace-devel] [PATCH] reorder providers
    eugene.loh at oracle.com 
    eugene.loh at oracle.com
       
    Fri Mar 27 10:39:16 PDT 2020
    
    
  
From: Eugene Loh <eugene.loh at oracle.com>
This is a minor usability point, but the legacy ordering of providers
-- e.g., the order in which probes were seen in "dtrace -l" output --
was:
  - dtrace
  - profile
  - syscall
  - sdt-based; e.g.,
        fc io ip iscsi lockstat nfsv3 nfsv4 perf
        proc sched smb srp sysevent tcp udp xpv
  - fbt
Change the order in the new implementation to conform to that legacy
order because that legacy order:
*)  has some familiarity.
*)  has some merit.  Providers with fewer probes,
    and arguably more common probes, appear earlier.
Signed-off-by: Eugene Loh <eugene.loh at oracle.com>
---
 libdtrace/dt_open.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libdtrace/dt_open.c b/libdtrace/dt_open.c
index 6b0ba71d..aa1e97f1 100644
--- a/libdtrace/dt_open.c
+++ b/libdtrace/dt_open.c
@@ -63,9 +63,9 @@ const dt_version_t _dtrace_versions[] = {
  */
 static const dt_provimpl_t *dt_providers[] = {
 	&dt_dtrace,
-	&dt_fbt,
-	&dt_sdt,
 	&dt_syscall,
+	&dt_sdt,
+	&dt_fbt,
 };
 
 /*
-- 
2.18.2
    
    
More information about the DTrace-devel
mailing list