Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 1 | cc_library( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 2 | name = "aos_sync", |
| 3 | srcs = [ |
| 4 | "aos_sync.cc", |
| 5 | ], |
| 6 | hdrs = [ |
| 7 | "aos_sync.h", |
| 8 | ], |
| 9 | linkopts = [ |
| 10 | "-lpthread", |
| 11 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 12 | target_compatible_with = ["@platforms//os:linux"], |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 13 | visibility = ["//visibility:public"], |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 14 | deps = [ |
Brian Silverman | 1ed5df5 | 2021-09-13 20:14:06 -0700 | [diff] [blame] | 15 | ":shm_observers", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 16 | "//aos:macros", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 17 | "//aos/util:compiler_memory_barrier", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 18 | "@com_github_google_glog//:glog", |
| 19 | "@com_google_absl//absl/base", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 20 | ], |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 21 | ) |
| 22 | |
| 23 | cc_library( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 24 | name = "core_lib", |
| 25 | srcs = [ |
| 26 | "core_lib.c", |
| 27 | ], |
| 28 | hdrs = [ |
| 29 | "core_lib.h", |
| 30 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 31 | target_compatible_with = ["@platforms//os:linux"], |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 32 | visibility = ["//visibility:public"], |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 33 | deps = [ |
| 34 | ":aos_sync", |
| 35 | ":shared_mem_types", |
| 36 | ], |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 37 | ) |
| 38 | |
| 39 | cc_library( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 40 | name = "shared_mem", |
| 41 | srcs = [ |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 42 | "shared_mem.cc", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 43 | ], |
| 44 | hdrs = [ |
| 45 | "shared_mem.h", |
| 46 | ], |
| 47 | linkopts = [ |
| 48 | "-lrt", |
| 49 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 50 | target_compatible_with = ["@platforms//os:linux"], |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 51 | visibility = ["//visibility:public"], |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 52 | deps = [ |
| 53 | ":aos_sync", |
| 54 | ":core_lib", |
| 55 | ":shared_mem_types", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 56 | "@com_github_google_glog//:glog", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 57 | ], |
Austin Schuh | 044e18b | 2015-10-21 20:17:09 -0700 | [diff] [blame] | 58 | ) |
| 59 | |
| 60 | cc_library( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 61 | # TODO(Brian): This should be shared_mem{,.h}, and the other one should be |
| 62 | # shared_mem_init{,.cc,.h}. |
| 63 | name = "shared_mem_types", |
| 64 | hdrs = [ |
| 65 | "shared_mem_types.h", |
| 66 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 67 | target_compatible_with = ["@platforms//os:linux"], |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 68 | deps = [ |
| 69 | ":aos_sync", |
| 70 | ], |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 71 | ) |
| 72 | |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 73 | cc_test( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 74 | name = "ipc_stress_test", |
| 75 | srcs = [ |
| 76 | "ipc_stress_test.cc", |
| 77 | ], |
| 78 | tags = [ |
| 79 | "manual", |
| 80 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 81 | target_compatible_with = ["@platforms//os:linux"], |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 82 | deps = [ |
| 83 | ":core_lib", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 84 | "//aos:die", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 85 | "//aos/libc:aos_strsignal", |
| 86 | "//aos/libc:dirname", |
| 87 | "//aos/logging", |
Brian Silverman | 16a923c | 2018-10-31 19:40:51 -0700 | [diff] [blame] | 88 | "//aos/mutex", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 89 | "//aos/testing:googletest", |
| 90 | "//aos/testing:test_shm", |
Brian Silverman | 16a923c | 2018-10-31 19:40:51 -0700 | [diff] [blame] | 91 | "//aos/time", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 92 | ], |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 93 | ) |
| 94 | |
Brian Silverman | e4d8b28 | 2015-12-24 13:44:48 -0800 | [diff] [blame] | 95 | cc_binary( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 96 | name = "ipc_comparison", |
| 97 | srcs = [ |
| 98 | "ipc_comparison.cc", |
| 99 | ], |
Brian Silverman | 687896e | 2020-10-01 15:05:38 -0700 | [diff] [blame] | 100 | linkopts = ["-lrt"], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 101 | target_compatible_with = ["@platforms//os:linux"], |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 102 | deps = [ |
Brian Silverman | 7b266d9 | 2021-02-17 21:24:02 -0800 | [diff] [blame] | 103 | ":event", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 104 | "//aos:condition", |
Brian Silverman | 16a923c | 2018-10-31 19:40:51 -0700 | [diff] [blame] | 105 | "//aos:init", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 106 | "//aos/logging", |
Brian Silverman | 16a923c | 2018-10-31 19:40:51 -0700 | [diff] [blame] | 107 | "//aos/mutex", |
| 108 | "@com_github_gflags_gflags//:gflags", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 109 | ], |
Brian Silverman | e4d8b28 | 2015-12-24 13:44:48 -0800 | [diff] [blame] | 110 | ) |
Austin Schuh | 6c590f8 | 2019-09-11 19:23:12 -0700 | [diff] [blame] | 111 | |
| 112 | cc_library( |
| 113 | name = "signalfd", |
| 114 | srcs = [ |
| 115 | "signalfd.cc", |
| 116 | ], |
| 117 | hdrs = [ |
| 118 | "signalfd.h", |
| 119 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 120 | target_compatible_with = ["@platforms//os:linux"], |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 121 | visibility = ["//visibility:public"], |
Austin Schuh | 6c590f8 | 2019-09-11 19:23:12 -0700 | [diff] [blame] | 122 | deps = [ |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 123 | "@com_github_google_glog//:glog", |
Austin Schuh | 6c590f8 | 2019-09-11 19:23:12 -0700 | [diff] [blame] | 124 | ], |
| 125 | ) |
Austin Schuh | 25356e2 | 2019-09-11 19:27:07 -0700 | [diff] [blame] | 126 | |
Brian Silverman | 407cc53 | 2019-11-03 11:40:56 -0800 | [diff] [blame] | 127 | cc_test( |
| 128 | name = "signalfd_test", |
| 129 | srcs = [ |
| 130 | "signalfd_test.cc", |
| 131 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 132 | target_compatible_with = ["@platforms//os:linux"], |
Brian Silverman | 407cc53 | 2019-11-03 11:40:56 -0800 | [diff] [blame] | 133 | deps = [ |
| 134 | ":signalfd", |
| 135 | "//aos/testing:googletest", |
| 136 | "//aos/testing:test_logging", |
| 137 | "@com_github_google_glog//:glog", |
| 138 | ], |
| 139 | ) |
| 140 | |
Austin Schuh | 25356e2 | 2019-09-11 19:27:07 -0700 | [diff] [blame] | 141 | cc_library( |
Austin Schuh | 83cbb1e | 2023-06-23 12:59:02 -0700 | [diff] [blame] | 142 | name = "index32", |
| 143 | srcs = ["index.cc"], |
| 144 | hdrs = ["index.h"], |
| 145 | defines = [ |
| 146 | "AOS_QUEUE_ATOMIC_SIZE=32", |
| 147 | ], |
| 148 | target_compatible_with = ["@platforms//os:linux"], |
| 149 | visibility = ["//visibility:public"], |
| 150 | deps = [ |
| 151 | ":shm_observers", |
| 152 | "@com_github_google_glog//:glog", |
| 153 | ], |
| 154 | ) |
| 155 | |
| 156 | cc_test( |
| 157 | name = "index32_test", |
| 158 | srcs = ["index_test.cc"], |
| 159 | target_compatible_with = ["@platforms//os:linux"], |
| 160 | deps = [ |
| 161 | ":index32", |
| 162 | "//aos/testing:googletest", |
| 163 | "@com_github_google_glog//:glog", |
| 164 | ], |
| 165 | ) |
| 166 | |
| 167 | cc_library( |
Austin Schuh | 25356e2 | 2019-09-11 19:27:07 -0700 | [diff] [blame] | 168 | name = "index", |
Austin Schuh | 20b2b08 | 2019-09-11 20:42:56 -0700 | [diff] [blame] | 169 | srcs = ["index.cc"], |
Austin Schuh | 25356e2 | 2019-09-11 19:27:07 -0700 | [diff] [blame] | 170 | hdrs = ["index.h"], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 171 | target_compatible_with = ["@platforms//os:linux"], |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 172 | visibility = ["//visibility:public"], |
Brian Silverman | 177567e | 2020-08-12 19:51:33 -0700 | [diff] [blame] | 173 | deps = [ |
Brian Silverman | 1ed5df5 | 2021-09-13 20:14:06 -0700 | [diff] [blame] | 174 | ":shm_observers", |
Brian Silverman | 177567e | 2020-08-12 19:51:33 -0700 | [diff] [blame] | 175 | "@com_github_google_glog//:glog", |
| 176 | ], |
Austin Schuh | 25356e2 | 2019-09-11 19:27:07 -0700 | [diff] [blame] | 177 | ) |
| 178 | |
| 179 | cc_test( |
| 180 | name = "index_test", |
| 181 | srcs = ["index_test.cc"], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 182 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 25356e2 | 2019-09-11 19:27:07 -0700 | [diff] [blame] | 183 | deps = [ |
| 184 | ":index", |
| 185 | "//aos/testing:googletest", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 186 | "@com_github_google_glog//:glog", |
Austin Schuh | 25356e2 | 2019-09-11 19:27:07 -0700 | [diff] [blame] | 187 | ], |
| 188 | ) |
Austin Schuh | 20b2b08 | 2019-09-11 20:42:56 -0700 | [diff] [blame] | 189 | |
| 190 | cc_library( |
| 191 | name = "lockless_queue", |
| 192 | srcs = [ |
| 193 | "lockless_queue.cc", |
| 194 | "lockless_queue_memory.h", |
Austin Schuh | 4d275fc | 2022-09-16 15:42:45 -0700 | [diff] [blame] | 195 | "memory_mapped_queue.cc", |
Austin Schuh | 20b2b08 | 2019-09-11 20:42:56 -0700 | [diff] [blame] | 196 | ], |
Austin Schuh | 4d275fc | 2022-09-16 15:42:45 -0700 | [diff] [blame] | 197 | hdrs = [ |
| 198 | "lockless_queue.h", |
| 199 | "memory_mapped_queue.h", |
| 200 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 201 | target_compatible_with = ["@platforms//os:linux"], |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 202 | visibility = ["//visibility:public"], |
Austin Schuh | 20b2b08 | 2019-09-11 20:42:56 -0700 | [diff] [blame] | 203 | deps = [ |
| 204 | ":aos_sync", |
Brian Silverman | a1652f3 | 2020-01-29 20:41:44 -0800 | [diff] [blame] | 205 | ":data_alignment", |
Austin Schuh | 20b2b08 | 2019-09-11 20:42:56 -0700 | [diff] [blame] | 206 | ":index", |
Austin Schuh | 4d275fc | 2022-09-16 15:42:45 -0700 | [diff] [blame] | 207 | "//aos:configuration", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 208 | "//aos:realtime", |
Austin Schuh | 8902fa5 | 2021-03-14 22:39:24 -0700 | [diff] [blame] | 209 | "//aos:uuid", |
Austin Schuh | 82ea738 | 2023-07-14 15:17:34 -0700 | [diff] [blame] | 210 | "//aos/events:context", |
Austin Schuh | 20b2b08 | 2019-09-11 20:42:56 -0700 | [diff] [blame] | 211 | "//aos/time", |
| 212 | "//aos/util:compiler_memory_barrier", |
Austin Schuh | f257f3c | 2019-10-27 21:00:43 -0700 | [diff] [blame] | 213 | "@com_github_google_glog//:glog", |
Austin Schuh | be41674 | 2020-10-03 17:24:26 -0700 | [diff] [blame] | 214 | "@com_google_absl//absl/strings", |
Brian Silverman | 0eaa1da | 2020-08-12 20:03:52 -0700 | [diff] [blame] | 215 | "@com_google_absl//absl/types:span", |
Austin Schuh | 20b2b08 | 2019-09-11 20:42:56 -0700 | [diff] [blame] | 216 | ], |
| 217 | ) |
| 218 | |
| 219 | cc_library( |
| 220 | name = "queue_racer", |
| 221 | testonly = True, |
| 222 | srcs = [ |
| 223 | "queue_racer.cc", |
| 224 | ], |
| 225 | hdrs = [ |
| 226 | "queue_racer.h", |
| 227 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 228 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 20b2b08 | 2019-09-11 20:42:56 -0700 | [diff] [blame] | 229 | deps = [ |
Brian Silverman | 7b266d9 | 2021-02-17 21:24:02 -0800 | [diff] [blame] | 230 | ":event", |
Austin Schuh | 20b2b08 | 2019-09-11 20:42:56 -0700 | [diff] [blame] | 231 | ":lockless_queue", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 232 | "//aos/testing:googletest", |
Austin Schuh | 20b2b08 | 2019-09-11 20:42:56 -0700 | [diff] [blame] | 233 | ], |
| 234 | ) |
| 235 | |
Austin Schuh | faec51a | 2023-09-08 17:43:32 -0700 | [diff] [blame] | 236 | cc_library( |
| 237 | name = "lockless_queue_stepping", |
| 238 | testonly = True, |
| 239 | srcs = [ |
| 240 | "lockless_queue_stepping.cc", |
| 241 | ], |
| 242 | hdrs = ["lockless_queue_stepping.h"], |
| 243 | deps = [ |
| 244 | ":lockless_queue", |
| 245 | ":shm_observers", |
| 246 | "//aos/libc:aos_strsignal", |
| 247 | "//aos/testing:prevent_exit", |
| 248 | "@com_google_googletest//:gtest", |
| 249 | ], |
| 250 | ) |
| 251 | |
Austin Schuh | 20b2b08 | 2019-09-11 20:42:56 -0700 | [diff] [blame] | 252 | cc_test( |
| 253 | name = "lockless_queue_test", |
| 254 | timeout = "eternal", |
| 255 | srcs = ["lockless_queue_test.cc"], |
Austin Schuh | be975a6 | 2023-07-08 17:13:18 -0700 | [diff] [blame] | 256 | shard_count = 10, |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 257 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 20b2b08 | 2019-09-11 20:42:56 -0700 | [diff] [blame] | 258 | deps = [ |
Brian Silverman | 7b266d9 | 2021-02-17 21:24:02 -0800 | [diff] [blame] | 259 | ":event", |
Austin Schuh | 20b2b08 | 2019-09-11 20:42:56 -0700 | [diff] [blame] | 260 | ":lockless_queue", |
Austin Schuh | faec51a | 2023-09-08 17:43:32 -0700 | [diff] [blame] | 261 | ":lockless_queue_stepping", |
Austin Schuh | 20b2b08 | 2019-09-11 20:42:56 -0700 | [diff] [blame] | 262 | ":queue_racer", |
| 263 | ":signalfd", |
Austin Schuh | 20b2b08 | 2019-09-11 20:42:56 -0700 | [diff] [blame] | 264 | "//aos/events:epoll", |
Austin Schuh | 20b2b08 | 2019-09-11 20:42:56 -0700 | [diff] [blame] | 265 | "//aos/testing:googletest", |
Eric Schmiedeberg | ef44b8a | 2022-02-28 17:30:38 -0700 | [diff] [blame] | 266 | "//aos/util:phased_loop", |
Austin Schuh | 20b2b08 | 2019-09-11 20:42:56 -0700 | [diff] [blame] | 267 | ], |
| 268 | ) |
| 269 | |
| 270 | cc_test( |
| 271 | name = "lockless_queue_death_test", |
| 272 | srcs = ["lockless_queue_death_test.cc"], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 273 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 20b2b08 | 2019-09-11 20:42:56 -0700 | [diff] [blame] | 274 | deps = [ |
Brian Silverman | 7b266d9 | 2021-02-17 21:24:02 -0800 | [diff] [blame] | 275 | ":event", |
Austin Schuh | 20b2b08 | 2019-09-11 20:42:56 -0700 | [diff] [blame] | 276 | ":lockless_queue", |
Austin Schuh | faec51a | 2023-09-08 17:43:32 -0700 | [diff] [blame] | 277 | ":lockless_queue_stepping", |
Austin Schuh | 20b2b08 | 2019-09-11 20:42:56 -0700 | [diff] [blame] | 278 | ":queue_racer", |
Brian Silverman | 1ed5df5 | 2021-09-13 20:14:06 -0700 | [diff] [blame] | 279 | ":shm_observers", |
Austin Schuh | 20b2b08 | 2019-09-11 20:42:56 -0700 | [diff] [blame] | 280 | ":signalfd", |
Austin Schuh | 20b2b08 | 2019-09-11 20:42:56 -0700 | [diff] [blame] | 281 | "//aos/events:epoll", |
| 282 | "//aos/libc:aos_strsignal", |
| 283 | "//aos/testing:googletest", |
| 284 | "//aos/testing:prevent_exit", |
| 285 | "//aos/testing:test_logging", |
| 286 | ], |
| 287 | ) |
Brian Silverman | a1652f3 | 2020-01-29 20:41:44 -0800 | [diff] [blame] | 288 | |
| 289 | cc_library( |
| 290 | name = "data_alignment", |
| 291 | hdrs = [ |
| 292 | "data_alignment.h", |
| 293 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 294 | target_compatible_with = ["@platforms//os:linux"], |
Brian Silverman | a1652f3 | 2020-01-29 20:41:44 -0800 | [diff] [blame] | 295 | visibility = ["//visibility:public"], |
| 296 | deps = [ |
| 297 | "@com_github_google_glog//:glog", |
| 298 | ], |
| 299 | ) |
Austin Schuh | 5af45eb | 2019-09-16 20:54:18 -0700 | [diff] [blame] | 300 | |
| 301 | cc_library( |
| 302 | name = "latency_lib", |
| 303 | srcs = ["latency_lib.cc"], |
| 304 | hdrs = ["latency_lib.h"], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 305 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 5af45eb | 2019-09-16 20:54:18 -0700 | [diff] [blame] | 306 | deps = [ |
| 307 | "//aos:realtime", |
| 308 | "//aos/logging", |
| 309 | "//aos/time", |
| 310 | "@com_github_google_glog//:glog", |
| 311 | ], |
| 312 | ) |
| 313 | |
| 314 | cc_binary( |
| 315 | name = "signal_stress", |
| 316 | srcs = [ |
| 317 | "signal_stress.cc", |
| 318 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 319 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 5af45eb | 2019-09-16 20:54:18 -0700 | [diff] [blame] | 320 | deps = [ |
| 321 | ":latency_lib", |
| 322 | "//aos:init", |
| 323 | "//aos/events:epoll", |
| 324 | "@com_github_gflags_gflags//:gflags", |
| 325 | ], |
| 326 | ) |
| 327 | |
| 328 | cc_binary( |
| 329 | name = "futex_latency", |
| 330 | srcs = [ |
| 331 | "futex_latency.cc", |
| 332 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 333 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 5af45eb | 2019-09-16 20:54:18 -0700 | [diff] [blame] | 334 | deps = [ |
| 335 | ":latency_lib", |
| 336 | "//aos:condition", |
| 337 | "//aos:init", |
| 338 | "//aos/mutex", |
| 339 | "@com_github_gflags_gflags//:gflags", |
| 340 | ], |
| 341 | ) |
| 342 | |
| 343 | cc_binary( |
| 344 | name = "named_pipe_latency", |
| 345 | srcs = [ |
| 346 | "named_pipe_latency.cc", |
| 347 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 348 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 5af45eb | 2019-09-16 20:54:18 -0700 | [diff] [blame] | 349 | deps = [ |
| 350 | ":latency_lib", |
| 351 | "//aos:init", |
| 352 | "//aos/events:epoll", |
| 353 | "@com_github_gflags_gflags//:gflags", |
| 354 | ], |
| 355 | ) |
| 356 | |
| 357 | cc_binary( |
| 358 | name = "eventfd_latency", |
| 359 | srcs = [ |
| 360 | "eventfd_latency.cc", |
| 361 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 362 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 5af45eb | 2019-09-16 20:54:18 -0700 | [diff] [blame] | 363 | deps = [ |
| 364 | ":latency_lib", |
| 365 | "//aos:init", |
| 366 | "//aos/events:epoll", |
| 367 | "@com_github_gflags_gflags//:gflags", |
| 368 | ], |
| 369 | ) |
Brian Silverman | 001f24d | 2020-08-12 19:33:20 -0700 | [diff] [blame] | 370 | |
| 371 | cc_binary( |
| 372 | name = "print_lockless_queue_memory", |
Brian Silverman | 001f24d | 2020-08-12 19:33:20 -0700 | [diff] [blame] | 373 | srcs = [ |
| 374 | "print_lockless_queue_memory.cc", |
| 375 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 376 | target_compatible_with = ["@platforms//os:linux"], |
Brian Silverman | 4d6207a | 2020-09-18 15:26:52 -0700 | [diff] [blame] | 377 | visibility = ["//visibility:public"], |
Brian Silverman | 001f24d | 2020-08-12 19:33:20 -0700 | [diff] [blame] | 378 | deps = [ |
| 379 | ":lockless_queue", |
| 380 | ], |
| 381 | ) |
Brian Silverman | 7b266d9 | 2021-02-17 21:24:02 -0800 | [diff] [blame] | 382 | |
| 383 | cc_library( |
| 384 | name = "event", |
| 385 | srcs = [ |
| 386 | "event.cc", |
| 387 | ], |
| 388 | hdrs = [ |
| 389 | "event.h", |
| 390 | ], |
| 391 | target_compatible_with = ["@platforms//os:linux"], |
| 392 | visibility = ["//visibility:public"], |
| 393 | deps = [ |
| 394 | "//aos/ipc_lib:aos_sync", |
| 395 | "//aos/time", |
| 396 | "//aos/type_traits", |
| 397 | "@com_github_google_glog//:glog", |
| 398 | ], |
| 399 | ) |
| 400 | |
| 401 | cc_test( |
| 402 | name = "event_test", |
| 403 | srcs = [ |
| 404 | "event_test.cc", |
| 405 | ], |
| 406 | target_compatible_with = ["@platforms//os:linux"], |
| 407 | deps = [ |
| 408 | ":event", |
| 409 | "//aos/testing:googletest", |
| 410 | "//aos/testing:test_logging", |
| 411 | "//aos/time", |
| 412 | ], |
| 413 | ) |
Brian Silverman | 1ed5df5 | 2021-09-13 20:14:06 -0700 | [diff] [blame] | 414 | |
| 415 | cc_library( |
| 416 | name = "shm_observers", |
| 417 | srcs = [ |
| 418 | "shm_observers.cc", |
| 419 | ], |
| 420 | hdrs = [ |
| 421 | "shm_observers.h", |
| 422 | ], |
| 423 | ) |
Adam Snaider | c8b7e75 | 2023-09-14 14:27:53 -0700 | [diff] [blame] | 424 | |
| 425 | cc_library( |
| 426 | name = "shm_base", |
| 427 | srcs = ["shm_base.cc"], |
| 428 | hdrs = ["shm_base.h"], |
| 429 | target_compatible_with = ["@platforms//os:linux"], |
| 430 | visibility = ["//visibility:public"], |
| 431 | deps = [ |
| 432 | "@com_github_gflags_gflags//:gflags", |
| 433 | ], |
| 434 | ) |