diff options
author | Junio C Hamano <gitster@pobox.com> | 2023-08-02 18:37:23 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-08-02 18:37:23 +0200 |
commit | 52d9dc20e1ddd5ac6b9e9113983b2f8d6977e6b0 (patch) | |
tree | e40cb3ecdc5a5620619c411e9b013718b9a300f4 /trace2 | |
parent | Merge branch 'ah/autoconf-fixes' (diff) | |
parent | wrapper: use trace2 counters to collect fsync stats (diff) | |
download | git-52d9dc20e1ddd5ac6b9e9113983b2f8d6977e6b0.tar.xz git-52d9dc20e1ddd5ac6b9e9113983b2f8d6977e6b0.zip |
Merge branch 'bb/use-trace2-counters-for-fsync-stats'
Instead of inventing a custom counter variables for debugging,
use existing trace2 facility in the fsync customization codepath.
* bb/use-trace2-counters-for-fsync-stats:
wrapper: use trace2 counters to collect fsync stats
Diffstat (limited to 'trace2')
-rw-r--r-- | trace2/tr2_ctr.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/trace2/tr2_ctr.c b/trace2/tr2_ctr.c index 50570d0165..87cf9034fb 100644 --- a/trace2/tr2_ctr.c +++ b/trace2/tr2_ctr.c @@ -32,6 +32,16 @@ static struct tr2_counter_metadata tr2_counter_metadata[TRACE2_NUMBER_OF_COUNTER .name = "jumps_made", .want_per_thread_events = 0, }, + [TRACE2_COUNTER_ID_FSYNC_WRITEOUT_ONLY] = { + .category = "fsync", + .name = "writeout-only", + .want_per_thread_events = 0, + }, + [TRACE2_COUNTER_ID_FSYNC_HARDWARE_FLUSH] = { + .category = "fsync", + .name = "hardware-flush", + .want_per_thread_events = 0, + }, /* Add additional metadata before here. */ }; |