Files
linux/tools/perf/tests
Arnaldo Carvalho de Melo 423d856a4d perf tests: Synthesize struct instead of using field after variable sized type
End result is the same, its an ABI, so the struct won't change, avoid
using a GNU extension, so that we can catch other cases that may be bugs.

Caught when building with clang:

  tests/parse-no-sample-id-all.c:53:20: error: field 'attr' with variable sized type 'struct attr_event' not at the end of a struct or class is a GNU extension
        [-Werror,-Wgnu-variable-sized-type-not-at-end]
          struct attr_event attr;
                            ^
  1 error generated.

Testing it:

  # perf test sample_id
  24: Parse with no sample_id_all bit set        : Ok
  #

Cc: Adrian Hunter <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Wang Nan <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
2017-02-14 15:19:18 -03:00
..
2015-04-08 10:49:53 -03:00
2015-12-17 14:27:14 -03:00
2015-01-21 13:24:31 -03:00
2017-01-31 16:20:08 -03:00
2016-07-12 15:19:47 -03:00
2017-01-26 11:42:58 -03:00
2016-07-13 23:09:10 -03:00
2016-07-12 15:19:47 -03:00
2016-07-12 15:19:47 -03:00