summaryrefslogtreecommitdiffstats
path: root/runtime/runtime.h
diff options
context:
space:
mode:
authortrz <trz>2005-06-21 14:13:01 +0000
committertrz <trz>2005-06-21 14:13:01 +0000
commitaac3ed25e8dc7355b5f28fae2878f644df14ef7d (patch)
treec2d284ccffb7dd9a82b000bd9c7152e5abbf160f /runtime/runtime.h
parentbd2b1e6816b486d5c85a4693f0b3579df4376ed5 (diff)
downloadsystemtap-steved-aac3ed25e8dc7355b5f28fae2878f644df14ef7d.tar.gz
systemtap-steved-aac3ed25e8dc7355b5f28fae2878f644df14ef7d.tar.xz
systemtap-steved-aac3ed25e8dc7355b5f28fae2878f644df14ef7d.zip
Added merging/sorting of per-cpu data, transport config/selection by probe, etc
Diffstat (limited to 'runtime/runtime.h')
-rw-r--r--runtime/runtime.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/runtime/runtime.h b/runtime/runtime.h
index 5937ec5b..1a70da3f 100644
--- a/runtime/runtime.h
+++ b/runtime/runtime.h
@@ -25,12 +25,16 @@
/* atomic globals */
static atomic_t _stp_transport_failures = ATOMIC_INIT (0);
-/* some relayfs defaults that don't belong here */
-static unsigned n_subbufs = 4;
-static unsigned subbuf_size = 65536;
+#ifndef STP_NETLINK_ONLY
+static struct
+{
+ atomic_t ____cacheline_aligned_in_smp seq;
+} _stp_seq = { ATOMIC_INIT (0) };
+
+#define _stp_seq_inc() (atomic_inc_return(&_stp_seq.seq))
+#endif
#include "print.c"
#include "string.c"
-
#endif /* _RUNTIME_H_ */