Commit 7e3cbd34 authored by Yucong Sun's avatar Yucong Sun Committed by Andrii Nakryiko

selftests/bpf: Fix btf_dump test under new clang

New clang version changed ([0]) type name in dwarf from "long int" to "long",
this is causing btf_dump tests to fail.

  [0] https://github.com/llvm/llvm-project/commit/f6a561c4d6754b13165a49990e8365d819f64c86Signed-off-by: default avatarYucong Sun <sunyucong@gmail.com>
Signed-off-by: default avatarAndrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20211008173139.1457407-1-fallentree@fb.com
parent dd65acf7
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
/* /*
*struct bitfields_only_mixed_types { *struct bitfields_only_mixed_types {
* int a: 3; * int a: 3;
* long int b: 2; * long b: 2;
* _Bool c: 1; * _Bool c: 1;
* enum { * enum {
* A = 0, * A = 0,
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
struct bitfields_only_mixed_types { struct bitfields_only_mixed_types {
int a: 3; int a: 3;
long int b: 2; long b: 2;
bool c: 1; /* it's really a _Bool type */ bool c: 1; /* it's really a _Bool type */
enum { enum {
A, /* A = 0, dumper is very explicit */ A, /* A = 0, dumper is very explicit */
...@@ -44,8 +44,8 @@ struct bitfields_only_mixed_types { ...@@ -44,8 +44,8 @@ struct bitfields_only_mixed_types {
* char: 4; * char: 4;
* int a: 4; * int a: 4;
* short b; * short b;
* long int c; * long c;
* long int d: 8; * long d: 8;
* int e; * int e;
* int f; * int f;
*}; *};
...@@ -71,7 +71,7 @@ struct bitfield_mixed_with_others { ...@@ -71,7 +71,7 @@ struct bitfield_mixed_with_others {
*struct bitfield_flushed { *struct bitfield_flushed {
* int a: 4; * int a: 4;
* long: 60; * long: 60;
* long int b: 16; * long b: 16;
*}; *};
* *
*/ */
......
...@@ -29,7 +29,7 @@ struct non_packed_fields { ...@@ -29,7 +29,7 @@ struct non_packed_fields {
struct nested_packed { struct nested_packed {
char: 4; char: 4;
int a: 4; int a: 4;
long int b; long b;
struct { struct {
char c; char c;
int d; int d;
...@@ -44,7 +44,7 @@ union union_is_never_packed { ...@@ -44,7 +44,7 @@ union union_is_never_packed {
union union_does_not_need_packing { union union_does_not_need_packing {
struct { struct {
long int a; long a;
int b; int b;
} __attribute__((packed)); } __attribute__((packed));
int c; int c;
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
/* ----- START-EXPECTED-OUTPUT ----- */ /* ----- START-EXPECTED-OUTPUT ----- */
struct padded_implicitly { struct padded_implicitly {
int a; int a;
long int b; long b;
char c; char c;
}; };
......
...@@ -189,7 +189,7 @@ struct struct_with_embedded_stuff { ...@@ -189,7 +189,7 @@ struct struct_with_embedded_stuff {
const char *d; const char *d;
} e; } e;
union { union {
volatile long int f; volatile long f;
void * restrict g; void * restrict g;
}; };
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment