~lttng/urcu/trunk

« back to all changes in this revision

Viewing changes to include/urcu/map/urcu-signal.h

  • Committer: Mathieu Desnoyers
  • Date: 2023-08-21 19:22:27 UTC
  • Revision ID: git-v1:aad674a9a583e09e854145f18c5d8854269dce8c
Complete removal of urcu-signal flavor

This commit completes removal of the urcu-signal flavor.

Users can migrate to liburcu-memb with a kernel implementing the
membarrier(2) system call to have similar read-side performance without
requiring use of a reserved signal, and with improved grace period
performance.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I75b9171e705b9b2ef4c8eeabe6164e5587816fb4

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// SPDX-FileCopyrightText: 2009 Paul E. McKenney, IBM Corporation.
2
 
// SPDX-FileCopyrightText: 2009 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
3
 
//
4
 
// SPDX-License-Identifier: LGPL-2.1-or-later
5
 
 
6
 
/*
7
 
 * Userspace RCU header -- name mapping to allow multiple flavors to be
8
 
 * used in the same executable.
9
 
 *
10
 
 * LGPL-compatible code should include this header with :
11
 
 *
12
 
 * #define _LGPL_SOURCE
13
 
 * #include <urcu.h>
14
 
 *
15
 
 * IBM's contributions to this file may be relicensed under LGPLv2 or later.
16
 
 */
17
 
 
18
 
#define rcu_read_lock                   urcu_signal_read_lock
19
 
#define _rcu_read_lock                  _urcu_signal_read_lock
20
 
#define rcu_read_unlock                 urcu_signal_read_unlock
21
 
#define _rcu_read_unlock                _urcu_signal_read_unlock
22
 
#define rcu_read_ongoing                urcu_signal_read_ongoing
23
 
#define _rcu_read_ongoing               _urcu_signal_read_ongoing
24
 
#define rcu_quiescent_state             urcu_signal_quiescent_state
25
 
#define _rcu_quiescent_state            _urcu_signal_quiescent_state
26
 
#define rcu_thread_offline              urcu_signal_thread_offline
27
 
#define rcu_thread_online               urcu_signal_thread_online
28
 
#define rcu_register_thread             urcu_signal_register_thread
29
 
#define rcu_unregister_thread           urcu_signal_unregister_thread
30
 
#define rcu_init                        urcu_signal_init
31
 
#define rcu_exit                        urcu_signal_exit
32
 
#define synchronize_rcu                 urcu_signal_synchronize_rcu
33
 
#define rcu_reader                      urcu_signal_reader
34
 
#define rcu_gp                          urcu_signal_gp
35
 
 
36
 
#define get_cpu_call_rcu_data           urcu_signal_get_cpu_call_rcu_data
37
 
#define get_call_rcu_thread             urcu_signal_get_call_rcu_thread
38
 
#define create_call_rcu_data            urcu_signal_create_call_rcu_data
39
 
#define set_cpu_call_rcu_data           urcu_signal_set_cpu_call_rcu_data
40
 
#define get_default_call_rcu_data       urcu_signal_get_default_call_rcu_data
41
 
#define get_call_rcu_data               urcu_signal_get_call_rcu_data
42
 
#define get_thread_call_rcu_data        urcu_signal_get_thread_call_rcu_data
43
 
#define set_thread_call_rcu_data        urcu_signal_set_thread_call_rcu_data
44
 
#define create_all_cpu_call_rcu_data    urcu_signal_create_all_cpu_call_rcu_data
45
 
#define free_all_cpu_call_rcu_data      urcu_signal_free_all_cpu_call_rcu_data
46
 
#define call_rcu                        urcu_signal_call_rcu
47
 
#define call_rcu_data_free              urcu_signal_call_rcu_data_free
48
 
#define call_rcu_before_fork            urcu_signal_call_rcu_before_fork
49
 
#define call_rcu_after_fork_parent      urcu_signal_call_rcu_after_fork_parent
50
 
#define call_rcu_after_fork_child       urcu_signal_call_rcu_after_fork_child
51
 
#define rcu_barrier                     urcu_signal_barrier
52
 
 
53
 
#define defer_rcu                       urcu_signal_defer_rcu
54
 
#define rcu_defer_register_thread       urcu_signal_defer_register_thread
55
 
#define rcu_defer_unregister_thread     urcu_signal_defer_unregister_thread
56
 
#define rcu_defer_barrier               urcu_signal_defer_barrier
57
 
#define rcu_defer_barrier_thread        urcu_signal_defer_barrier_thread
58
 
#define rcu_defer_exit                  urcu_signal_defer_exit
59
 
 
60
 
#define rcu_flavor                      urcu_signal_flavor
61
 
 
62
 
#define urcu_register_rculfhash_atfork          \
63
 
                urcu_signal_register_rculfhash_atfork
64
 
#define urcu_unregister_rculfhash_atfork        \
65
 
                urcu_signal_unregister_rculfhash_atfork
66
 
 
67
 
#define start_poll_synchronize_rcu      urcu_signal_start_poll_synchronize_rcu
68
 
#define poll_state_synchronize_rcu      urcu_signal_poll_state_synchronize_rcu
69
 
 
70
 
 
71
 
/* Compat identifiers for prior undocumented multiflavor usage */
72
 
#ifndef URCU_NO_COMPAT_IDENTIFIERS
73
 
 
74
 
#define rcu_dereference_sig             urcu_signal_dereference
75
 
#define rcu_cmpxchg_pointer_sig         urcu_signal_cmpxchg_pointer
76
 
#define rcu_xchg_pointer_sig            urcu_signal_xchg_pointer
77
 
#define rcu_set_pointer_sig             urcu_signal_set_pointer
78
 
 
79
 
#define rcu_sig_before_fork             urcu_signal_before_fork
80
 
#define rcu_sig_after_fork_parent       urcu_signal_after_fork_parent
81
 
#define rcu_sig_after_fork_child        urcu_signal_after_fork_child
82
 
 
83
 
#define rcu_read_lock_sig               urcu_signal_read_lock
84
 
#define _rcu_read_lock_sig              _urcu_signal_read_lock
85
 
#define rcu_read_unlock_sig             urcu_signal_read_unlock
86
 
#define _rcu_read_unlock_sig            _urcu_signal_read_unlock
87
 
#define rcu_read_ongoing_sig            urcu_signal_read_ongoing
88
 
#define _rcu_read_ongoing_sig           _urcu_signal_read_ongoing
89
 
#define rcu_register_thread_sig         urcu_signal_register_thread
90
 
#define rcu_unregister_thread_sig       urcu_signal_unregister_thread
91
 
#define rcu_init_sig                    urcu_signal_init
92
 
#define rcu_exit_sig                    urcu_signal_exit
93
 
#define synchronize_rcu_sig             urcu_signal_synchronize_rcu
94
 
#define rcu_reader_sig                  urcu_signal_reader
95
 
#define rcu_gp_sig                      urcu_signal_gp
96
 
 
97
 
#define get_cpu_call_rcu_data_sig       urcu_signal_get_cpu_call_rcu_data
98
 
#define get_call_rcu_thread_sig         urcu_signal_get_call_rcu_thread
99
 
#define create_call_rcu_data_sig        urcu_signal_create_call_rcu_data
100
 
#define set_cpu_call_rcu_data_sig       urcu_signal_set_cpu_call_rcu_data
101
 
#define get_default_call_rcu_data_sig   urcu_signal_get_default_call_rcu_data
102
 
#define get_call_rcu_data_sig           urcu_signal_get_call_rcu_data
103
 
#define get_thread_call_rcu_data_sig    urcu_signal_get_thread_call_rcu_data
104
 
#define set_thread_call_rcu_data_sig    urcu_signal_set_thread_call_rcu_data
105
 
#define create_all_cpu_call_rcu_data_sig        \
106
 
                urcu_signal_create_all_cpu_call_rcu_data
107
 
#define free_all_cpu_call_rcu_data_sig  urcu_signal_free_all_cpu_call_rcu_data
108
 
#define call_rcu_sig                    urcu_signal_call_rcu
109
 
#define call_rcu_data_free_sig          urcu_signal_call_rcu_data_free
110
 
#define call_rcu_before_fork_sig                \
111
 
                urcu_signal_call_rcu_before_fork
112
 
#define call_rcu_after_fork_parent_sig  urcu_signal_call_rcu_after_fork_parent
113
 
#define call_rcu_after_fork_child_sig   urcu_signal_call_rcu_after_fork_child
114
 
#define rcu_barrier_sig                 urcu_signal_barrier
115
 
 
116
 
#define defer_rcu_sig                   urcu_signal_defer_rcu
117
 
#define rcu_defer_register_thread_sig   urcu_signal_defer_register_thread
118
 
#define rcu_defer_unregister_thread_sig urcu_signal_defer_unregister_thread
119
 
#define rcu_defer_barrier_sig           urcu_signal_defer_barrier
120
 
#define rcu_defer_barrier_thread_sig    urcu_signal_defer_barrier_thread
121
 
#define rcu_defer_exit_sig              urcu_signal_defer_exit
122
 
 
123
 
#define rcu_flavor_sig                  urcu_signal_flavor
124
 
 
125
 
#define urcu_register_rculfhash_atfork_sig      \
126
 
                urcu_signal_register_rculfhash_atfork
127
 
#define urcu_unregister_rculfhash_atfork_sig    \
128
 
                urcu_signal_unregister_rculfhash_atfork
129
 
 
130
 
#endif /* URCU_NO_COMPAT_IDENTIFIERS */