aboutsummaryrefslogtreecommitdiff
path: root/src/core/or/circuitlist.h
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2021-04-15 14:23:47 -0400
committerDavid Goulet <dgoulet@torproject.org>2021-05-12 11:58:25 -0400
commit9c2fa3498233bbb5f347a03188433c6c5f6de24f (patch)
treef3dc5b9d500198c147ae9e414b7f97abe8c4685b /src/core/or/circuitlist.h
parentbdde4579c2fcb43cf5a32d617b3a5fe72314adf8 (diff)
downloadtor-9c2fa3498233bbb5f347a03188433c6c5f6de24f.tar.gz
tor-9c2fa3498233bbb5f347a03188433c6c5f6de24f.zip
relay: Add the OOM invocation metrics
With this commit, a relay now emits metrics event on the MetricsPort related to the OOM invocation for: - DNS cache - GeoIP database - Cell queues - HSDir caches Everytime the OOM is invoked, the number of bytes is added to the metrics counter for that specific type of invocation. Related to #40367 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/core/or/circuitlist.h')
-rw-r--r--src/core/or/circuitlist.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/or/circuitlist.h b/src/core/or/circuitlist.h
index f5791d7c12..147e2cb2f8 100644
--- a/src/core/or/circuitlist.h
+++ b/src/core/or/circuitlist.h
@@ -232,7 +232,7 @@ int circuit_count_pending_on_channel(channel_t *chan);
MOCK_DECL(void, assert_circuit_ok,(const circuit_t *c));
void circuit_free_all(void);
-void circuits_handle_oom(size_t current_allocation);
+size_t circuits_handle_oom(size_t current_allocation);
void circuit_clear_testing_cell_stats(circuit_t *circ);