Brian Silverman | cb5da1f | 2015-12-05 22:19:58 -0500 | [diff] [blame] | 1 | # The primary client logging interface. |
| 2 | cc_library( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 3 | name = "logging", |
| 4 | srcs = [ |
| 5 | "context.cc", |
| 6 | "interface.cc", |
| 7 | ], |
| 8 | hdrs = [ |
| 9 | "context.h", |
| 10 | "interface.h", |
| 11 | "logging.h", |
| 12 | ], |
| 13 | visibility = ["//visibility:public"], |
| 14 | deps = [ |
| 15 | ":sizes", |
Austin Schuh | df6cbb1 | 2019-02-02 13:46:52 -0800 | [diff] [blame] | 16 | "//aos:complex_thread_local", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 17 | "//aos:die", |
| 18 | "//aos:macros", |
| 19 | "//aos/libc:aos_strerror", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 20 | ], |
Brian Silverman | cb5da1f | 2015-12-05 22:19:58 -0500 | [diff] [blame] | 21 | ) |
Austin Schuh | f073651 | 2015-09-07 01:22:16 -0700 | [diff] [blame] | 22 | |
Brian Silverman | f44f124 | 2015-12-05 20:19:48 -0500 | [diff] [blame] | 23 | cc_library( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 24 | name = "replay", |
| 25 | srcs = [ |
| 26 | "replay.cc", |
| 27 | ], |
| 28 | hdrs = [ |
| 29 | "replay.h", |
| 30 | ], |
| 31 | visibility = ["//visibility:public"], |
| 32 | deps = [ |
| 33 | ":binary_log_file", |
| 34 | ":logging", |
James Kuszmaul | f5f50dd | 2019-03-23 12:43:15 -0700 | [diff] [blame] | 35 | ":queue_logging", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 36 | "//aos:queues", |
Austin Schuh | df6cbb1 | 2019-02-02 13:46:52 -0800 | [diff] [blame] | 37 | "//aos/events:event-loop", |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 38 | "//aos/ipc_lib:queue", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 39 | ], |
Brian Silverman | f44f124 | 2015-12-05 20:19:48 -0500 | [diff] [blame] | 40 | ) |
| 41 | |
| 42 | cc_binary( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 43 | name = "binary_log_writer", |
| 44 | srcs = [ |
| 45 | "binary_log_writer.cc", |
| 46 | ], |
| 47 | visibility = ["//visibility:public"], |
| 48 | deps = [ |
| 49 | ":binary_log_file", |
| 50 | ":implementations", |
| 51 | ":logging", |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 52 | "//aos:configuration", |
Austin Schuh | df6cbb1 | 2019-02-02 13:46:52 -0800 | [diff] [blame] | 53 | "//aos:die", |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 54 | "//aos:init", |
Austin Schuh | df6cbb1 | 2019-02-02 13:46:52 -0800 | [diff] [blame] | 55 | "//aos:queue_types", |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 56 | "//aos/ipc_lib:queue", |
Austin Schuh | df6cbb1 | 2019-02-02 13:46:52 -0800 | [diff] [blame] | 57 | "//aos/time", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 58 | ], |
Brian Silverman | f44f124 | 2015-12-05 20:19:48 -0500 | [diff] [blame] | 59 | ) |
| 60 | |
| 61 | cc_binary( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 62 | name = "log_streamer", |
| 63 | srcs = [ |
| 64 | "log_streamer.cc", |
| 65 | ], |
| 66 | visibility = ["//visibility:public"], |
| 67 | deps = [ |
| 68 | ":implementations", |
| 69 | ":logging", |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 70 | "//aos:init", |
| 71 | "//aos/ipc_lib:queue", |
Austin Schuh | df6cbb1 | 2019-02-02 13:46:52 -0800 | [diff] [blame] | 72 | "//aos/time", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 73 | ], |
Brian Silverman | f44f124 | 2015-12-05 20:19:48 -0500 | [diff] [blame] | 74 | ) |
| 75 | |
| 76 | cc_binary( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 77 | name = "log_displayer", |
| 78 | srcs = [ |
| 79 | "log_displayer.cc", |
| 80 | ], |
| 81 | visibility = ["//visibility:public"], |
| 82 | deps = [ |
| 83 | ":binary_log_file", |
| 84 | ":implementations", |
| 85 | ":logging", |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 86 | "//aos:configuration", |
| 87 | "//aos:init", |
Austin Schuh | df6cbb1 | 2019-02-02 13:46:52 -0800 | [diff] [blame] | 88 | "//aos:queue_types", |
| 89 | "//aos/util:string_to_num", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 90 | ], |
Brian Silverman | f44f124 | 2015-12-05 20:19:48 -0500 | [diff] [blame] | 91 | ) |
| 92 | |
| 93 | cc_library( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 94 | name = "binary_log_file", |
| 95 | srcs = [ |
| 96 | "binary_log_file.cc", |
| 97 | ], |
| 98 | hdrs = [ |
| 99 | "binary_log_file.h", |
| 100 | ], |
| 101 | deps = [ |
| 102 | ":implementations", |
| 103 | ], |
Austin Schuh | f073651 | 2015-09-07 01:22:16 -0700 | [diff] [blame] | 104 | ) |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 105 | |
| 106 | cc_library( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 107 | name = "sizes", |
| 108 | hdrs = [ |
| 109 | "sizes.h", |
| 110 | ], |
Austin Schuh | 044e18b | 2015-10-21 20:17:09 -0700 | [diff] [blame] | 111 | ) |
| 112 | |
Brian Silverman | cb5da1f | 2015-12-05 22:19:58 -0500 | [diff] [blame] | 113 | cc_test( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 114 | name = "implementations_test", |
| 115 | srcs = [ |
| 116 | "implementations_test.cc", |
| 117 | ], |
| 118 | deps = [ |
| 119 | ":implementations", |
| 120 | ":logging", |
| 121 | "//aos/testing:googletest", |
| 122 | ], |
Brian Silverman | cb5da1f | 2015-12-05 22:19:58 -0500 | [diff] [blame] | 123 | ) |
| 124 | |
| 125 | cc_library( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 126 | name = "queue_logging", |
| 127 | srcs = [ |
| 128 | "queue_logging.cc", |
| 129 | ], |
| 130 | hdrs = [ |
| 131 | "queue_logging.h", |
| 132 | ], |
| 133 | visibility = ["//visibility:public"], |
| 134 | deps = [ |
| 135 | ":logging", |
| 136 | ":sizes", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 137 | "//aos:die", |
| 138 | "//aos:queue_types", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 139 | ], |
Brian Silverman | cb5da1f | 2015-12-05 22:19:58 -0500 | [diff] [blame] | 140 | ) |
| 141 | |
Austin Schuh | 044e18b | 2015-10-21 20:17:09 -0700 | [diff] [blame] | 142 | cc_library( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 143 | name = "matrix_logging", |
| 144 | srcs = [ |
| 145 | "matrix_logging.cc", |
| 146 | ], |
| 147 | hdrs = [ |
| 148 | "matrix_logging.h", |
| 149 | ], |
| 150 | visibility = ["//visibility:public"], |
| 151 | deps = [ |
| 152 | ":logging", |
| 153 | ":sizes", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 154 | "//aos:die", |
| 155 | "//aos:generated_queue_headers", |
| 156 | "//aos:queue_types", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 157 | "//third_party/eigen", |
| 158 | ], |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 159 | ) |
Brian Silverman | f480a61 | 2015-09-13 02:22:01 -0400 | [diff] [blame] | 160 | |
| 161 | cc_library( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 162 | name = "printf_formats", |
| 163 | hdrs = [ |
| 164 | "printf_formats.h", |
| 165 | ], |
| 166 | visibility = ["//visibility:public"], |
| 167 | deps = [ |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 168 | "//aos:macros", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 169 | ], |
Austin Schuh | 044e18b | 2015-10-21 20:17:09 -0700 | [diff] [blame] | 170 | ) |
| 171 | |
| 172 | cc_library( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 173 | name = "implementations", |
| 174 | srcs = [ |
| 175 | "implementations.cc", |
| 176 | ], |
| 177 | hdrs = [ |
| 178 | "implementations.h", |
| 179 | ], |
| 180 | linkopts = [ |
| 181 | "-lpthread", |
| 182 | ], |
| 183 | visibility = ["//visibility:public"], |
| 184 | deps = [ |
| 185 | ":logging", |
| 186 | ":sizes", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 187 | "//aos:die", |
| 188 | "//aos:macros", |
Austin Schuh | df6cbb1 | 2019-02-02 13:46:52 -0800 | [diff] [blame] | 189 | "//aos:once", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 190 | "//aos:queue_types", |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 191 | "//aos/ipc_lib:queue", |
Austin Schuh | df6cbb1 | 2019-02-02 13:46:52 -0800 | [diff] [blame] | 192 | "//aos/mutex", |
| 193 | "//aos/time", |
| 194 | "//aos/type_traits", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 195 | ], |
Brian Silverman | f480a61 | 2015-09-13 02:22:01 -0400 | [diff] [blame] | 196 | ) |