[DTrace-devel] [PATCH] demo: remove demo script depending on non-Linux OS features
Kris Van Hees
kris.van.hees at oracle.com
Thu Jul 24 15:50:13 UTC 2025
Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>
---
test/demo/struct/kstat.d | 29 -----------------------------
test/demo/struct/kstat.t | 1 -
2 files changed, 30 deletions(-)
delete mode 100644 test/demo/struct/kstat.d
delete mode 120000 test/demo/struct/kstat.t
diff --git a/test/demo/struct/kstat.d b/test/demo/struct/kstat.d
deleted file mode 100644
index 1ccc3bb4..00000000
--- a/test/demo/struct/kstat.d
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Oracle Linux DTrace.
- * Copyright (c) 2005, 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.
- */
-
-/* @@runtest-opts: -q $_pid */
-/* @@xfail: userspace tracing not implemented */
-/* @@skip: solaris-specific, not yet converted */
-
-pid$1:libkstat:kstat_data_lookup:entry
-{
- self->ksname = arg1;
-}
-
-pid$1:libkstat:kstat_data_lookup:return
-/self->ksname != NULL && arg1 != NULL/
-{
- this->ksp = (kstat_named_t *)copyin(arg1, sizeof(kstat_named_t));
- printf("%s has ui64 value %u\n",
- copyinstr(self->ksname), this->ksp->value.ui64);
-}
-
-pid$1:libkstat:kstat_data_lookup:return
-/self->ksname != NULL && arg1 == NULL/
-{
- self->ksname = NULL;
-}
diff --git a/test/demo/struct/kstat.t b/test/demo/struct/kstat.t
deleted file mode 120000
index e9f7e5b7..00000000
--- a/test/demo/struct/kstat.t
+++ /dev/null
@@ -1 +0,0 @@
-/usr/bin/mpstat
\ No newline at end of file
--
2.45.2
More information about the DTrace-devel
mailing list