From: Martin Peschke <mpeschke@xxxxxxxxxxxxxxxxxx> Fix two off-by-one issues. Last bucket of histogram was ommitted by mistake when being converted to big-endian or when being merged with another bucket. Signed-off-by: Martin Peschke <mpeschke@xxxxxxxxxxxxxxxxxx> --- stats.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/stats.h +++ b/stats.h @@ -124,7 +124,7 @@ static inline void histlog2_merge(struct { int i; - for (i = 0; i < h->num - 1; i++) + for (i = 0; i < h->num; i++) dst[i] += src[i]; } @@ -132,7 +132,7 @@ static inline void histlog2_to_be(__u32 { int i; - for (i = 0; i < h->num - 1; i++) + for (i = 0; i < h->num; i++) a[i] = cpu_to_be32(a[i]); } -- To unsubscribe from this list: send the line "unsubscribe linux-btrace" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html