git/trace2/tr2_ctr.c

#include "git-compat-util.h"
#include "trace2/tr2_tgt.h"
#include "trace2/tr2_tls.h"
#include "trace2/tr2_ctr.h"

/*
 * A global counter block to aggregate values from the partial sums
 * from each thread.
 */
static struct tr2_counter_block final_counter_block; /* access under tr2tls_mutex */

/*
 * Define metadata for each global counter.
 *
 * This array must match the "enum trace2_counter_id" and the values
 * in "struct tr2_counter_block.counter[*]".
 */
static struct tr2_counter_metadata tr2_counter_metadata[TRACE2_NUMBER_OF_COUNTERS] =;

void tr2_counter_increment(enum trace2_counter_id cid, uint64_t value)
{}

void tr2_update_final_counters(void)
{}

void tr2_emit_per_thread_counters(tr2_tgt_evt_counter_t *fn_apply)
{}

void tr2_emit_final_counters(tr2_tgt_evt_counter_t *fn_apply)
{}