Re: [PATCH 2/3] Fix ordered-events.c array-bounds error

2019-07-26 Thread Arnaldo Carvalho de Melo
Em Wed, Jul 24, 2019 at 11:45:11AM -0700, Numfor Mbiziwo-Tiapo escreveu: > Perf does not build with the ubsan (undefined behavior sanitizer) > and there is an error that says: > > tools/perf/util/debug.h:38:2: > error: array subscript is above array bounds [-Werror=array-bounds] > eprintf_time(

Re: [PATCH 2/3] Fix ordered-events.c array-bounds error

2019-07-26 Thread Arnaldo Carvalho de Melo
Em Wed, Jul 24, 2019 at 11:45:11AM -0700, Numfor Mbiziwo-Tiapo escreveu: > Perf does not build with the ubsan (undefined behavior sanitizer) > and there is an error that says: > > tools/perf/util/debug.h:38:2: > error: array subscript is above array bounds [-Werror=array-bounds] > eprintf_time(

[PATCH 2/3] Fix ordered-events.c array-bounds error

2019-07-24 Thread Numfor Mbiziwo-Tiapo
Perf does not build with the ubsan (undefined behavior sanitizer) and there is an error that says: tools/perf/util/debug.h:38:2: error: array subscript is above array bounds [-Werror=array-bounds] eprintf_time(n, var, t, fmt, ##__VA_ARGS__) ^~~ tools/p