This will help with identifying aub files --- tools/aubdump.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/tools/aubdump.c b/tools/aubdump.c index b1c46e2..b207aef 100644 --- a/tools/aubdump.c +++ b/tools/aubdump.c @@ -184,14 +184,18 @@ gtt_size(void) static void write_header(void) { + char app_name[8 * 4]; uint32_t entry = 0x200003; /* Start with a (required) version packet. */ dword_out(CMD_AUB_HEADER | (13 - 2)); dword_out((4 << AUB_HEADER_MAJOR_SHIFT) | (0 << AUB_HEADER_MINOR_SHIFT)); - for (int i = 0; i < 8; i++) - dword_out(0); /* app name */ + + /* Next comes a 32-byte application name. */ + strncpy(app_name, program_invocation_short_name, sizeof(app_name)); + app_name[sizeof(app_name) - 1] = 0; + data_out(app_name, sizeof(app_name)); dword_out(0); /* timestamp */ dword_out(0); /* timestamp */ -- 2.5.0.400.gff86faf _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev