MT#55283 fix def/undef pairing

Change-Id: I5d425b3860d969b6bb3aaf95d92d5ecc61dd0bca
pull/1614/head
Richard Fuchs 3 years ago
parent c34e6dcc82
commit fb9738ff02

@ -36,7 +36,9 @@ struct global_stats_gauge {
#define FdA(x, n) FA(x, n)
#include "gauge_stats_fields.inc"
#undef F
#undef Fd
#undef FA
#undef FdA
};
struct global_stats_gauge_min_max {
@ -221,14 +223,15 @@ INLINE void stats_gauge_calc_avg_reset(struct global_stats_gauge_min_max *out,
#define F(x) \
cur = atomic64_get(&rtpe_stats_gauge.x); \
Fc(x)
#undef Fd
#undef FdA
#define Fd(x) \
cur = 0; \
Fc(x)
#define FdA(x, n) for (int i = 0; i < n; i++) { Fd(x[i]) }
#include "gauge_stats_fields.inc"
#undef Fc
#undef F
#undef Fd
#undef FdA
}

Loading…
Cancel
Save