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