Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-08-02 19:37:23 +0300
committerJunio C Hamano <gitster@pobox.com>2023-08-02 19:37:23 +0300
commit52d9dc20e1ddd5ac6b9e9113983b2f8d6977e6b0 (patch)
treee40cb3ecdc5a5620619c411e9b013718b9a300f4 /trace2.h
parent99acb0fa54775a383cab70a6e662e45180dee3f0 (diff)
parenta27eecea75b3858b4052b191143f144a7e966869 (diff)
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.h')
-rw-r--r--trace2.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/trace2.h b/trace2.h
index d7c3b30538..40d8c2e02a 100644
--- a/trace2.h
+++ b/trace2.h
@@ -554,6 +554,10 @@ enum trace2_counter_id {
TRACE2_COUNTER_ID_PACKED_REFS_JUMPS, /* counts number of jumps */
+ /* counts number of fsyncs */
+ TRACE2_COUNTER_ID_FSYNC_WRITEOUT_ONLY,
+ TRACE2_COUNTER_ID_FSYNC_HARDWARE_FLUSH,
+
/* Add additional counter definitions before here. */
TRACE2_NUMBER_OF_COUNTERS
};