Commit | Line | Data |
---|---|---|
ebabbf58 | 1 | /* |
c0c0989a | 2 | * SPDX-License-Identifier: LGPL-2.1-only |
ebabbf58 MD |
3 | * |
4 | * Copyright (C) 2011-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> | |
ebabbf58 MD |
5 | */ |
6 | ||
c0c0989a MJ |
7 | #ifndef _LIBCOUNTER_SHM_INTERNAL_H |
8 | #define _LIBCOUNTER_SHM_INTERNAL_H | |
9 | ||
ebabbf58 MD |
10 | struct lttng_counter_shm_ref { |
11 | volatile ssize_t index; /* within the object table */ | |
12 | volatile ssize_t offset; /* within the object */ | |
13 | }; | |
14 | ||
15 | #define DECLARE_LTTNG_COUNTER_SHMP(type, name) \ | |
16 | union { \ | |
17 | struct lttng_counter_shm_ref _ref; \ | |
18 | type *_type; \ | |
19 | } name | |
20 | ||
21 | #endif /* _LIBCOUNTER_SHM_INTERNAL_H */ |