From aac3ed25e8dc7355b5f28fae2878f644df14ef7d Mon Sep 17 00:00:00 2001 From: trz Date: Tue, 21 Jun 2005 14:13:01 +0000 Subject: Added merging/sorting of per-cpu data, transport config/selection by probe, etc --- runtime/runtime.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'runtime/runtime.h') 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_ */ -- cgit