]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Add a SUBSYS_DECLARE_LOCATION() to every subsystem.
authorNick Mathewson <nickm@torproject.org>
Fri, 14 Feb 2020 14:57:46 +0000 (09:57 -0500)
committerNick Mathewson <nickm@torproject.org>
Thu, 26 Mar 2020 15:20:20 +0000 (11:20 -0400)
19 files changed:
src/core/mainloop/mainloop_sys.c
src/core/or/or_sys.c
src/feature/control/btrack.c
src/feature/dirauth/dirauth_stub.c
src/feature/dirauth/dirauth_sys.c
src/feature/relay/relay_stub.c
src/feature/relay/relay_sys.c
src/lib/compress/compress.c
src/lib/crypt_ops/crypto_init.c
src/lib/err/torerr_sys.c
src/lib/evloop/evloop_sys.c
src/lib/llharden/winprocess_sys.c
src/lib/log/log_sys.c
src/lib/net/network_sys.c
src/lib/process/process_sys.c
src/lib/thread/compat_threads.c
src/lib/time/time_sys.c
src/lib/tls/tortls.c
src/lib/wallclock/approx_time.c

index 4b78c90b96103fca7354a22cb62b34904e32d80a..884bae1c593cf6dd1faea6d04556dd1ae1d296f0 100644 (file)
@@ -78,6 +78,7 @@ mainloop_flush_state(void *arg)
 
 const struct subsys_fns_t sys_mainloop = {
   .name = "mainloop",
+  SUBSYS_DECLARE_LOCATION(),
   .supported = true,
   .level = 5,
   .initialize = subsys_mainloop_initialize,
index 126f5448cf83ccdce3daf61fba81ba95e96bcc4f..73c6087dce9a4e138e9f5fcf61438ed699052ce5 100644 (file)
@@ -47,6 +47,7 @@ subsys_or_add_pubsub(struct pubsub_connector_t *connector)
 
 const struct subsys_fns_t sys_or = {
   .name = "or",
+  SUBSYS_DECLARE_LOCATION(),
   .supported = true,
   .level = 20,
   .initialize = subsys_or_initialize,
index 3595af0fcccb30540610ee77c98fe53945bfefd5..405630ecd46f598e23914c05560d9885f738b86b 100644 (file)
@@ -56,6 +56,7 @@ btrack_add_pubsub(pubsub_connector_t *connector)
 
 const subsys_fns_t sys_btrack = {
   .name = "btrack",
+  SUBSYS_DECLARE_LOCATION(),
   .supported = true,
   .level = 55,
   .initialize = btrack_init,
index 15a195b0fb192db7a0a4f75d56513d6c2e8e9e02..9f48ce14fdb9569f891010bab6531d9f15e35c27 100644 (file)
@@ -26,6 +26,7 @@ static const config_format_t dirauth_options_stub_fmt = {
 
 const struct subsys_fns_t sys_dirauth = {
   .name = "dirauth",
+  SUBSYS_DECLARE_LOCATION(),
   .supported = false,
   .level = DIRAUTH_SUBSYS_LEVEL,
 
index 56ac501e16a82751aae9b2a7e366a93bc2aceb27..07c5743877a4eb09a27c9b85b88c027105743eab 100644 (file)
@@ -60,6 +60,7 @@ dirauth_set_options(void *arg)
 
 const struct subsys_fns_t sys_dirauth = {
   .name = "dirauth",
+  SUBSYS_DECLARE_LOCATION(),
   .supported = true,
   .level = DIRAUTH_SUBSYS_LEVEL,
   .initialize = subsys_dirauth_initialize,
index 42e08fcb6cb4f2f56ba50c4ce097e47c2a56483b..283aaf6e49efe3d402faa3639116519acd1621e3 100644 (file)
@@ -15,6 +15,7 @@
 
 const struct subsys_fns_t sys_relay = {
   .name = "relay",
+  SUBSYS_DECLARE_LOCATION(),
   .supported = false,
   .level = RELAY_SUBSYS_LEVEL,
 };
index 34489cf5aa699ccc6847073fce1dfc5315f9ac30..2e907409259fd1888358402651eb7096735caa70 100644 (file)
@@ -41,6 +41,7 @@ subsys_relay_shutdown(void)
 
 const struct subsys_fns_t sys_relay = {
   .name = "relay",
+  SUBSYS_DECLARE_LOCATION(),
   .supported = true,
   .level = RELAY_SUBSYS_LEVEL,
   .initialize = subsys_relay_initialize,
index 84e960192096729bc9a85f181677294edb2449c2..7ce3910d845f2e011f7725d7f080666af012d5ca 100644 (file)
@@ -694,6 +694,7 @@ subsys_compress_initialize(void)
 
 const subsys_fns_t sys_compress = {
   .name = "compress",
+  SUBSYS_DECLARE_LOCATION(),
   .supported = true,
   .level = -55,
   .initialize = subsys_compress_initialize,
index f09bf07c4d1432d6c7fc31e5754bbfe8566f06d5..a836bd864587a13de1f8d0ae68c8f3628a5feedd 100644 (file)
@@ -317,6 +317,7 @@ crypto_set_options(void *arg)
 
 const struct subsys_fns_t sys_crypto = {
   .name = "crypto",
+  SUBSYS_DECLARE_LOCATION(),
   .supported = true,
   .level = -60,
   .initialize = subsys_crypto_initialize,
index 46fc8535509adfa5b98a1b156258257f084958d7..8ee1521f3b5e818688876df879da5ee279b72337 100644 (file)
@@ -34,6 +34,7 @@ subsys_torerr_shutdown(void)
 
 const subsys_fns_t sys_torerr = {
   .name = "err",
+  SUBSYS_DECLARE_LOCATION(),
   /* Low-level error handling is a diagnostic feature, we want it to init
    * right after windows process security, and shutdown last.
    * (Security never shuts down.) */
index fecec2f264227375dfdcb4d4a1b8c5a1827a895f..b639810c23226a7daa32bd02c2df58665e2477eb 100644 (file)
@@ -41,6 +41,7 @@ subsys_evloop_shutdown(void)
 
 const struct subsys_fns_t sys_evloop = {
   .name = "evloop",
+  SUBSYS_DECLARE_LOCATION(),
   .supported = true,
   .level = -20,
   .initialize = subsys_evloop_initialize,
index a5f22c182b5fa8a7e27463efc5f5ceee398a262e..f2c88d8c75474f89adba2eb17cc243219b2fa2cc 100644 (file)
@@ -58,6 +58,7 @@ subsys_winprocess_initialize(void)
 
 const subsys_fns_t sys_winprocess = {
   .name = "winprocess",
+  SUBSYS_DECLARE_LOCATION(),
   /* HeapEnableTerminationOnCorruption and setdeppolicy() are security
    * features, we want them to run first. */
   .level = -100,
index 1be4f5b7d84eaf9e01149719b14aed6d063741cb..021c05d3e6972275f09637966920bea825c1ed7d 100644 (file)
@@ -28,6 +28,7 @@ subsys_logging_shutdown(void)
 
 const subsys_fns_t sys_logging = {
   .name = "log",
+  SUBSYS_DECLARE_LOCATION(),
   .supported = true,
   /* Logging depends on threads, approx time, raw logging, and security.
    * Most other lib modules depend on logging. */
index f0421385b7f530c6cb5ecc870e4a29aa910704cf..e95c3ba819c983da8bc61fe11bca0d6108c740e4 100644 (file)
@@ -37,6 +37,7 @@ subsys_network_shutdown(void)
 
 const subsys_fns_t sys_network = {
   .name = "network",
+  SUBSYS_DECLARE_LOCATION(),
   /* Network depends on logging, and a lot of other modules depend on network.
    */
   .level = -55,
index 015ffadead7623462e97dac551c36059668d863f..c8332ba91edbbeb18d46a106c8c14a8b5d68adc5 100644 (file)
@@ -26,6 +26,7 @@ subsys_process_shutdown(void)
 
 const subsys_fns_t sys_process = {
   .name = "process",
+  SUBSYS_DECLARE_LOCATION(),
   .level = -18,
   .supported = true,
   .initialize = subsys_process_initialize,
index 21125bddad112920f321ab4695bf6e51b0e0c7af..75ade9c9f281b462d0a76f90d32542951f2a86e8 100644 (file)
@@ -129,6 +129,7 @@ subsys_threads_initialize(void)
 
 const subsys_fns_t sys_threads = {
   .name = "threads",
+  SUBSYS_DECLARE_LOCATION(),
   .supported = true,
   .level = -89,
   .initialize = subsys_threads_initialize,
index 044d328f81822ebf20f140903bdce4ca41a5d1b6..1c1bc4cd18562656a9546214dd1baa996ec6468a 100644 (file)
@@ -20,6 +20,7 @@ subsys_time_initialize(void)
 
 const subsys_fns_t sys_time = {
   .name = "time",
+  SUBSYS_DECLARE_LOCATION(),
   /* Monotonic time depends on logging, and a lot of other modules depend on
    * monotonic time. */
   .level = -80,
index fd41a84cfae9dafdc3d0eade79b1d1b11b9ef1a7..9e70e5472511e9f285552e6545ad089a7c4daeb4 100644 (file)
@@ -456,6 +456,7 @@ subsys_tortls_shutdown(void)
 
 const subsys_fns_t sys_tortls = {
   .name = "tortls",
+  SUBSYS_DECLARE_LOCATION(),
   .level = -50,
   .shutdown = subsys_tortls_shutdown
 };
index d9f90ab2f7f939aaf03c45e7fad58d2dcb57a58c..c815f20e51c8f43ff64debe10556fde5b55f1503 100644 (file)
@@ -59,6 +59,7 @@ subsys_wallclock_initialize(void)
  **/
 const subsys_fns_t sys_wallclock = {
   .name = "wallclock",
+  SUBSYS_DECLARE_LOCATION(),
   .supported = true,
   /* Approximate time is a diagnostic feature, we want it to init right after
    * low-level error handling. */