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 | |
| 236 | cc_test( |
| 237 | name = "lockless_queue_test", |
| 238 | timeout = "eternal", |
| 239 | srcs = ["lockless_queue_test.cc"], |
Austin Schuh | be975a6 | 2023-07-08 17:13:18 -0700 | [diff] [blame] | 240 | shard_count = 10, |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 241 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 20b2b08 | 2019-09-11 20:42:56 -0700 | [diff] [blame] | 242 | deps = [ |
Brian Silverman | 7b266d9 | 2021-02-17 21:24:02 -0800 | [diff] [blame] | 243 | ":event", |
Austin Schuh | 20b2b08 | 2019-09-11 20:42:56 -0700 | [diff] [blame] | 244 | ":lockless_queue", |
| 245 | ":queue_racer", |
| 246 | ":signalfd", |
Austin Schuh | 20b2b08 | 2019-09-11 20:42:56 -0700 | [diff] [blame] | 247 | "//aos/events:epoll", |
Austin Schuh | 20b2b08 | 2019-09-11 20:42:56 -0700 | [diff] [blame] | 248 | "//aos/testing:googletest", |
| 249 | "//aos/testing:prevent_exit", |
Eric Schmiedeberg | ef44b8a | 2022-02-28 17:30:38 -0700 | [diff] [blame] | 250 | "//aos/util:phased_loop", |
Austin Schuh | 20b2b08 | 2019-09-11 20:42:56 -0700 | [diff] [blame] | 251 | ], |
| 252 | ) |
| 253 | |
| 254 | cc_test( |
| 255 | name = "lockless_queue_death_test", |
| 256 | srcs = ["lockless_queue_death_test.cc"], |
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", |
| 261 | ":queue_racer", |
Brian Silverman | 1ed5df5 | 2021-09-13 20:14:06 -0700 | [diff] [blame] | 262 | ":shm_observers", |
Austin Schuh | 20b2b08 | 2019-09-11 20:42:56 -0700 | [diff] [blame] | 263 | ":signalfd", |
Austin Schuh | 20b2b08 | 2019-09-11 20:42:56 -0700 | [diff] [blame] | 264 | "//aos/events:epoll", |
| 265 | "//aos/libc:aos_strsignal", |
| 266 | "//aos/testing:googletest", |
| 267 | "//aos/testing:prevent_exit", |
| 268 | "//aos/testing:test_logging", |
| 269 | ], |
| 270 | ) |
Brian Silverman | a1652f3 | 2020-01-29 20:41:44 -0800 | [diff] [blame] | 271 | |
| 272 | cc_library( |
| 273 | name = "data_alignment", |
| 274 | hdrs = [ |
| 275 | "data_alignment.h", |
| 276 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 277 | target_compatible_with = ["@platforms//os:linux"], |
Brian Silverman | a1652f3 | 2020-01-29 20:41:44 -0800 | [diff] [blame] | 278 | visibility = ["//visibility:public"], |
| 279 | deps = [ |
| 280 | "@com_github_google_glog//:glog", |
| 281 | ], |
| 282 | ) |
Austin Schuh | 5af45eb | 2019-09-16 20:54:18 -0700 | [diff] [blame] | 283 | |
| 284 | cc_library( |
| 285 | name = "latency_lib", |
| 286 | srcs = ["latency_lib.cc"], |
| 287 | hdrs = ["latency_lib.h"], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 288 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 5af45eb | 2019-09-16 20:54:18 -0700 | [diff] [blame] | 289 | deps = [ |
| 290 | "//aos:realtime", |
| 291 | "//aos/logging", |
| 292 | "//aos/time", |
| 293 | "@com_github_google_glog//:glog", |
| 294 | ], |
| 295 | ) |
| 296 | |
| 297 | cc_binary( |
| 298 | name = "signal_stress", |
| 299 | srcs = [ |
| 300 | "signal_stress.cc", |
| 301 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 302 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 5af45eb | 2019-09-16 20:54:18 -0700 | [diff] [blame] | 303 | deps = [ |
| 304 | ":latency_lib", |
| 305 | "//aos:init", |
| 306 | "//aos/events:epoll", |
| 307 | "@com_github_gflags_gflags//:gflags", |
| 308 | ], |
| 309 | ) |
| 310 | |
| 311 | cc_binary( |
| 312 | name = "futex_latency", |
| 313 | srcs = [ |
| 314 | "futex_latency.cc", |
| 315 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 316 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 5af45eb | 2019-09-16 20:54:18 -0700 | [diff] [blame] | 317 | deps = [ |
| 318 | ":latency_lib", |
| 319 | "//aos:condition", |
| 320 | "//aos:init", |
| 321 | "//aos/mutex", |
| 322 | "@com_github_gflags_gflags//:gflags", |
| 323 | ], |
| 324 | ) |
| 325 | |
| 326 | cc_binary( |
| 327 | name = "named_pipe_latency", |
| 328 | srcs = [ |
| 329 | "named_pipe_latency.cc", |
| 330 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 331 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 5af45eb | 2019-09-16 20:54:18 -0700 | [diff] [blame] | 332 | deps = [ |
| 333 | ":latency_lib", |
| 334 | "//aos:init", |
| 335 | "//aos/events:epoll", |
| 336 | "@com_github_gflags_gflags//:gflags", |
| 337 | ], |
| 338 | ) |
| 339 | |
| 340 | cc_binary( |
| 341 | name = "eventfd_latency", |
| 342 | srcs = [ |
| 343 | "eventfd_latency.cc", |
| 344 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 345 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 5af45eb | 2019-09-16 20:54:18 -0700 | [diff] [blame] | 346 | deps = [ |
| 347 | ":latency_lib", |
| 348 | "//aos:init", |
| 349 | "//aos/events:epoll", |
| 350 | "@com_github_gflags_gflags//:gflags", |
| 351 | ], |
| 352 | ) |
Brian Silverman | 001f24d | 2020-08-12 19:33:20 -0700 | [diff] [blame] | 353 | |
| 354 | cc_binary( |
| 355 | name = "print_lockless_queue_memory", |
Brian Silverman | 001f24d | 2020-08-12 19:33:20 -0700 | [diff] [blame] | 356 | srcs = [ |
| 357 | "print_lockless_queue_memory.cc", |
| 358 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 359 | target_compatible_with = ["@platforms//os:linux"], |
Brian Silverman | 4d6207a | 2020-09-18 15:26:52 -0700 | [diff] [blame] | 360 | visibility = ["//visibility:public"], |
Brian Silverman | 001f24d | 2020-08-12 19:33:20 -0700 | [diff] [blame] | 361 | deps = [ |
| 362 | ":lockless_queue", |
| 363 | ], |
| 364 | ) |
Brian Silverman | 7b266d9 | 2021-02-17 21:24:02 -0800 | [diff] [blame] | 365 | |
| 366 | cc_library( |
| 367 | name = "event", |
| 368 | srcs = [ |
| 369 | "event.cc", |
| 370 | ], |
| 371 | hdrs = [ |
| 372 | "event.h", |
| 373 | ], |
| 374 | target_compatible_with = ["@platforms//os:linux"], |
| 375 | visibility = ["//visibility:public"], |
| 376 | deps = [ |
| 377 | "//aos/ipc_lib:aos_sync", |
| 378 | "//aos/time", |
| 379 | "//aos/type_traits", |
| 380 | "@com_github_google_glog//:glog", |
| 381 | ], |
| 382 | ) |
| 383 | |
| 384 | cc_test( |
| 385 | name = "event_test", |
| 386 | srcs = [ |
| 387 | "event_test.cc", |
| 388 | ], |
| 389 | target_compatible_with = ["@platforms//os:linux"], |
| 390 | deps = [ |
| 391 | ":event", |
| 392 | "//aos/testing:googletest", |
| 393 | "//aos/testing:test_logging", |
| 394 | "//aos/time", |
| 395 | ], |
| 396 | ) |
Brian Silverman | 1ed5df5 | 2021-09-13 20:14:06 -0700 | [diff] [blame] | 397 | |
| 398 | cc_library( |
| 399 | name = "shm_observers", |
| 400 | srcs = [ |
| 401 | "shm_observers.cc", |
| 402 | ], |
| 403 | hdrs = [ |
| 404 | "shm_observers.h", |
| 405 | ], |
| 406 | ) |
Adam Snaider | c8b7e75 | 2023-09-14 14:27:53 -0700 | [diff] [blame^] | 407 | |
| 408 | cc_library( |
| 409 | name = "shm_base", |
| 410 | srcs = ["shm_base.cc"], |
| 411 | hdrs = ["shm_base.h"], |
| 412 | target_compatible_with = ["@platforms//os:linux"], |
| 413 | visibility = ["//visibility:public"], |
| 414 | deps = [ |
| 415 | "@com_github_gflags_gflags//:gflags", |
| 416 | ], |
| 417 | ) |