summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'runtime')
-rw-r--r--runtime/staprun/relay.c11
-rw-r--r--runtime/staprun/staprun.h10
-rw-r--r--runtime/uprobes/uprobes.txt1
3 files changed, 12 insertions, 10 deletions
diff --git a/runtime/staprun/relay.c b/runtime/staprun/relay.c
index 0c009235..59d7ac9a 100644
--- a/runtime/staprun/relay.c
+++ b/runtime/staprun/relay.c
@@ -22,16 +22,9 @@ static time_t *time_backlog[NR_CPUS];
static int backlog_order=0;
#define BACKLOG_MASK ((1 << backlog_order) - 1)
-/*
- * ppoll exists in glibc >= 2.4
- */
-#if (__GLIBC__ < 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ < 4))
-#define NEED_PPOLL
-#endif
-
#ifdef NEED_PPOLL
-static int ppoll(struct pollfd *fds, nfds_t nfds,
- const struct timespec *timeout, const sigset_t *sigmask)
+int ppoll(struct pollfd *fds, nfds_t nfds,
+ const struct timespec *timeout, const sigset_t *sigmask)
{
sigset_t origmask;
int ready;
diff --git a/runtime/staprun/staprun.h b/runtime/staprun/staprun.h
index 1dcfabbe..f9f01003 100644
--- a/runtime/staprun/staprun.h
+++ b/runtime/staprun/staprun.h
@@ -186,3 +186,13 @@ extern int out_fd[NR_CPUS];
/* relay_old uses these. Set in ctl.c */
extern unsigned subbuf_size;
extern unsigned n_subbufs;
+
+/*
+ * ppoll exists in glibc >= 2.4
+ */
+#if (__GLIBC__ < 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ < 4))
+#define NEED_PPOLL
+
+extern int ppoll(struct pollfd *fds, nfds_t nfds,
+ const struct timespec *timeout, const sigset_t *sigmask);
+#endif
diff --git a/runtime/uprobes/uprobes.txt b/runtime/uprobes/uprobes.txt
index edd524be..98219eb9 100644
--- a/runtime/uprobes/uprobes.txt
+++ b/runtime/uprobes/uprobes.txt
@@ -143,7 +143,6 @@ architectures:
- i386
- x86_64 (AMD-64, EM64T)
- ppc64
-- ia64
- s390x
3. Configuring Uprobes