]> git.saurik.com Git - apple/xnu.git/blobdiff - tools/tests/perf_index/perfindex-syscall.c
xnu-2782.1.97.tar.gz
[apple/xnu.git] / tools / tests / perf_index / perfindex-syscall.c
diff --git a/tools/tests/perf_index/perfindex-syscall.c b/tools/tests/perf_index/perfindex-syscall.c
new file mode 100644 (file)
index 0000000..757c5c8
--- /dev/null
@@ -0,0 +1,11 @@
+#include "perf_index.h"
+#include "fail.h"
+#include <unistd.h>
+
+DECL_TEST {
+  long long i;
+  for(i=0; i<length; i++) {
+    getppid();
+  }
+  return PERFINDEX_SUCCESS;
+}