summaryrefslogtreecommitdiffstats
path: root/runtime/sduprobes.c
diff options
context:
space:
mode:
authorStan Cox <scox@redhat.com>2008-11-17 11:34:50 -0500
committerStan Cox <scox@redhat.com>2008-11-17 11:34:50 -0500
commitf28a8c28ce2ceed97bc4f4a19ffe8880bceb0682 (patch)
treee3c2b9bd0a8e10d6145f1e31f09242cb3735ca8c /runtime/sduprobes.c
parenta6ce170764b0ec75d3ddbca20823b2a951a225d2 (diff)
downloadsystemtap-steved-f28a8c28ce2ceed97bc4f4a19ffe8880bceb0682.tar.gz
systemtap-steved-f28a8c28ce2ceed97bc4f4a19ffe8880bceb0682.tar.xz
systemtap-steved-f28a8c28ce2ceed97bc4f4a19ffe8880bceb0682.zip
Add static uprobe support (static library variant)
Diffstat (limited to 'runtime/sduprobes.c')
-rw-r--r--runtime/sduprobes.c69
1 files changed, 69 insertions, 0 deletions
diff --git a/runtime/sduprobes.c b/runtime/sduprobes.c
new file mode 100644
index 00000000..4bee3bd7
--- /dev/null
+++ b/runtime/sduprobes.c
@@ -0,0 +1,69 @@
+// Copyright (C) 2005-2008 Red Hat Inc.
+// Copyright (C) 2006 Intel Corporation.
+//
+// This file is part of systemtap, and is free software. You can
+// redistribute it and/or modify it under the terms of the GNU General
+// Public License (GPL); either version 2, or (at your option) any
+// later version.
+
+#include <stddef.h>
+#define unused __attribute__ ((unused))
+
+int _stap_probe_sentinel = 0;
+
+void
+_stap_probe_start()
+{
+ _stap_probe_sentinel = 1;
+}
+
+int
+_stap_probe_0 (char* probe unused)
+{
+ return 1;
+}
+
+int
+_stap_probe_1 (char* probe unused,
+ size_t arg1 unused)
+{
+ return 1;
+}
+
+int
+_stap_probe_2 (char* probe unused ,
+ size_t arg1 unused,
+ size_t arg2 unused)
+{
+ return 1;
+}
+
+int
+_stap_probe_3 (char* probe unused,
+ size_t arg1 unused,
+ size_t arg2 unused,
+ size_t arg3 unused)
+{
+ return 1;
+}
+
+int
+_stap_probe_4 (char* probe unused,
+ size_t arg1 unused,
+ size_t arg2 unused,
+ size_t arg3 unused,
+ size_t arg4 unused)
+{
+ return 1;
+}
+
+int
+_stap_probe_5 (char* probe unused,
+ size_t arg1 unused,
+ size_t arg2 unused,
+ size_t arg3 unused,
+ size_t arg4 unused,
+ size_t arg5 unused)
+{
+ return 1;
+}