Debian Codegraph @

src/hist.h

raw symbols SCIP
1 /* SPDX-License-Identifier: BSD-2-Clause */
2 /*
3 * Copyright (C) 2024 Linutronix GmbH
4 * Author Kurt Kanzenbach <[email protected]>
5 */
6
7 #ifndef HIST_H
8 #define HIST_H
9
10 #include <stdint.h>
11
12 #include "stat.h"
13
14 struct histogram {
15 uint64_t *data;
16 uint64_t min;
17 uint64_t max;
18 uint64_t underflow;
19 uint64_t overflow;
20 };
21
22 int histogram_init(void);
23 void histogram_free(void);
24 void histogram_update(enum stat_frame_type frame_type, uint64_t rtt);
25 int histogram_write(void);
26
27 #endif /* HIST_H */