diff options
author | trz <trz> | 2005-06-21 14:13:01 +0000 |
---|---|---|
committer | trz <trz> | 2005-06-21 14:13:01 +0000 |
commit | aac3ed25e8dc7355b5f28fae2878f644df14ef7d (patch) | |
tree | c2d284ccffb7dd9a82b000bd9c7152e5abbf160f /runtime/runtime.h | |
parent | bd2b1e6816b486d5c85a4693f0b3579df4376ed5 (diff) | |
download | systemtap-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.h | 12 |
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_ */ |