diff --git a/client/TracySysTrace.cpp b/client/TracySysTrace.cpp index b60f1f70..a56f348d 100644 --- a/client/TracySysTrace.cpp +++ b/client/TracySysTrace.cpp @@ -1174,7 +1174,6 @@ void SysTraceWorker( void* ptr ) { // child close( pipefd[0] ); - dup2( pipefd[1], STDERR_FILENO ); if( dup2( pipefd[1], STDOUT_FILENO ) >= 0 ) { close( pipefd[1] ); diff --git a/client/TracySysTracePayload.hpp b/client/TracySysTracePayload.hpp index 85b46348..1ee79bf0 100644 --- a/client/TracySysTracePayload.hpp +++ b/client/TracySysTracePayload.hpp @@ -1,97 +1,114 @@ -// File: '/home/wolf/desktop/tracy_systrace.armv7' (1210 bytes)` -// File: 'extra/systrace/tracy_systrace' (2488 bytes) +// File: 'tracy_systrace.armv7' (1940 bytes) +// File: 'tracy_systrace.aarch64' (2592 bytes) // Exported using binary_to_compressed_c.cpp namespace tracy { -static const unsigned int tracy_systrace_armv7_size = 1210; -static const unsigned int tracy_systrace_armv7_data[1212/4] = +static const unsigned int tracy_systrace_armv7_size = 1940; +static const unsigned int tracy_systrace_armv7_data[1940/4] = { - 0x464c457f, 0x00010101, 0x00000000, 0x00000000, 0x00280003, 0x00000001, 0x00000208, 0x00000034, 0x00000000, 0x05000200, 0x00200034, 0x00280007, - 0x00000000, 0x00000006, 0x00000034, 0x00000034, 0x00000034, 0x000000e0, 0x000000e0, 0x00000004, 0x00000004, 0x00000003, 0x00000114, 0x00000114, - 0x00000114, 0x00000013, 0x00000013, 0x00000004, 0x00000001, 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x000003ed, 0x000003ed, 0x00000005, - 0x00001000, 0x00000001, 0x000003ed, 0x000013ed, 0x000013ed, 0x000000cd, 0x000000cf, 0x00000006, 0x00001000, 0x00000002, 0x000003f0, 0x000013f0, - 0x000013f0, 0x000000b8, 0x000000b8, 0x00000006, 0x00000004, 0x6474e551, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000006, - 0x00000010, 0x70000001, 0x00000394, 0x00000394, 0x00000394, 0x00000008, 0x00000008, 0x00000004, 0x00000004, 0x7379732f, 0x2f6d6574, 0x2f6e6962, + 0x464c457f, 0x00010101, 0x00000000, 0x00000000, 0x00280003, 0x00000001, 0x000001f0, 0x00000034, 0x00000564, 0x05000200, 0x00200034, 0x00280007, + 0x000d000e, 0x00000006, 0x00000034, 0x00000034, 0x00000034, 0x000000e0, 0x000000e0, 0x00000004, 0x00000004, 0x00000003, 0x00000114, 0x00000114, + 0x00000114, 0x00000013, 0x00000013, 0x00000004, 0x00000001, 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x000003fd, 0x000003fd, 0x00000005, + 0x00001000, 0x00000001, 0x000003fd, 0x000013fd, 0x000013fd, 0x000000b3, 0x000000b3, 0x00000006, 0x00001000, 0x00000002, 0x00000400, 0x00001400, + 0x00001400, 0x000000b0, 0x000000b0, 0x00000006, 0x00000004, 0x6474e551, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000006, + 0x00000004, 0x70000001, 0x000003a4, 0x000003a4, 0x000003a4, 0x00000008, 0x00000008, 0x00000004, 0x00000004, 0x7379732f, 0x2f6d6574, 0x2f6e6962, 0x6b6e696c, 0x00007265, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000012, 0x00000016, 0x00000000, 0x00000000, 0x00000012, 0x6f6c6400, 0x006e6570, 0x4342494c, 0x62696c00, 0x732e6c64, 0x6c64006f, 0x006d7973, 0x00000001, 0x00000003, 0x00000001, - 0x00000000, 0x00000000, 0x00000000, 0x00000001, 0x00000003, 0x00000002, 0x00000000, 0x00000000, 0x00000001, 0x00020000, 0x00000002, 0x00010001, - 0x0000000d, 0x00000010, 0x00000000, 0x00050d63, 0x00020000, 0x00000008, 0x00000000, 0x000014b4, 0x00000116, 0x000014b8, 0x00000216, 0xe52de004, - 0xe59fe004, 0xe08fe00e, 0xe5bef008, 0x000012bc, 0xe28fc600, 0xe28cca01, 0xe5bcf2bc, 0xe28fc600, 0xe28cca01, 0xe5bcf2b4, 0xe92d4ff0, 0xe28db01c, - 0xe24dd01c, 0xe24dd801, 0xe59f0154, 0xe3a01001, 0xe08f0000, 0xebfffff1, 0xe59f1148, 0xe1a07000, 0xe08f1001, 0xebfffff0, 0xe59f113c, 0xe1a09000, - 0xe1a00007, 0xe08f1001, 0xebffffeb, 0xe59f112c, 0xe1a04000, 0xe1a00007, 0xe08f1001, 0xebffffe6, 0xe59f111c, 0xe1a05000, 0xe1a00007, 0xe08f1001, - 0xebffffe1, 0xe59f110c, 0xe1a06000, 0xe1a00007, 0xe08f1001, 0xebffffdc, 0xe58d0004, 0xe1a00007, 0xe59f10f4, 0xe08f1001, 0xebffffd7, 0xe1a0a000, - 0xe59f00e8, 0xe3a01000, 0xe3a08000, 0xe08f0000, 0xe12fff39, 0xe1a07000, 0xe3700001, 0xca000001, 0xe3a00000, 0xe12fff34, 0xe3a00009, 0xe58d4000, - 0xe1cd01b4, 0xe3090680, 0xe3400098, 0xe28d4010, 0xe58d000c, 0xe28d9018, 0xe58d8008, 0xe28d8008, 0xe58d7010, 0xea000003, 0xe1a02000, 0xe3a00001, - 0xe1a01009, 0xe12fff3a, 0xe1a00004, 0xe3a01001, 0xe3a02000, 0xe12fff35, 0xe3500000, 0xca000008, 0xe1a00008, 0xe3a01000, 0xe12fff36, 0xe1a00004, - 0xe3a01001, 0xe3a02000, 0xe12fff35, 0xe3500001, 0xbafffff6, 0xe59d3004, 0xe1a00007, 0xe1a01009, 0xe3a02801, 0xe12fff33, 0xe3500001, 0xaaffffe5, - 0xe59d1000, 0xe3a00000, 0xe12fff31, 0xe24bd01c, 0xe8bd8ff0, 0x00000174, 0x0000016c, 0x0000015d, 0x0000014e, 0x0000013f, 0x00000135, 0x00000126, - 0x00000114, 0x7ffffe74, 0x00000001, 0x6362696c, 0x006f732e, 0x6e65706f, 0x69786500, 0x6f700074, 0x6e006c6c, 0x736f6e61, 0x7065656c, 0x61657200, - 0x72770064, 0x00657469, 0x7379732f, 0x72656b2f, 0x2f6c656e, 0x75626564, 0x72742f67, 0x6e696361, 0x72742f67, 0x5f656361, 0x65706970, 0x00000000, - 0x00000003, 0x000014a8, 0x00000002, 0x00000010, 0x00000017, 0x000001cc, 0x00000014, 0x00000011, 0x00000015, 0x00000000, 0x00000006, 0x00000128, - 0x0000000b, 0x00000010, 0x00000005, 0x00000158, 0x0000000a, 0x0000001c, 0x6ffffef5, 0x00000174, 0x00000004, 0x0000018c, 0x00000001, 0x0000000d, - 0x0000001e, 0x00000008, 0x6ffffffb, 0x00000001, 0x6ffffff0, 0x000001a4, 0x6ffffffe, 0x000001ac, 0x6fffffff, 0x00000001, 0x00000000, 0x00000000, + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00010001, 0x0000000d, 0x00000010, 0x00000000, 0x00050d63, 0x00020000, 0x00000008, + 0x00000000, 0x000014bc, 0x00000116, 0x000014c0, 0x00000216, 0xe52de004, 0xe59fe004, 0xe08fe00e, 0xe5bef008, 0x000012dc, 0xe28fc600, 0xe28cca01, + 0xe5bcf2dc, 0xe28fc600, 0xe28cca01, 0xe5bcf2d4, 0xe92d4ff0, 0xe28db01c, 0xe24dd024, 0xe24dd801, 0xe59f017c, 0xe3a01001, 0xe3a08001, 0xe08f0000, + 0xebfffff0, 0xe59f116c, 0xe1a04000, 0xe08f1001, 0xebffffef, 0xe59f1160, 0xe1a06000, 0xe1a00004, 0xe08f1001, 0xebffffea, 0xe59f1150, 0xe1a07000, + 0xe1a00004, 0xe08f1001, 0xebffffe5, 0xe59f1140, 0xe1a05000, 0xe1a00004, 0xe08f1001, 0xebffffe0, 0xe58d0004, 0xe1a00004, 0xe59f1128, 0xe08f1001, + 0xebffffdb, 0xe59f1120, 0xe1a0a000, 0xe1a00004, 0xe08f1001, 0xebffffd6, 0xe1a04000, 0xe59f010c, 0xe3a01000, 0xe3a09000, 0xe08f0000, 0xe12fff36, + 0xe1a06000, 0xe3700001, 0xca000001, 0xe3a00000, 0xe12fff37, 0xe3a00009, 0xe3a01001, 0xe1cd01bc, 0xe3a00008, 0xe1cd01b4, 0xe3090680, 0xe3400098, + 0xe3a02000, 0xe58d000c, 0xe28d0010, 0xe58d7000, 0xe58d6018, 0xe58d8010, 0xe58d9008, 0xe12fff35, 0xe3500000, 0xca00001d, 0xe28d7018, 0xe28d8010, + 0xe28d9020, 0xe1a00007, 0xe3a01001, 0xe3a02000, 0xe12fff35, 0xe3500000, 0xda00000a, 0xe1a00006, 0xe1a01009, 0xe3a02801, 0xe12fff3a, 0xe3500001, + 0xba00000e, 0xe1a02000, 0xe3a00001, 0xe1a01009, 0xe12fff34, 0xea000003, 0xe59d2004, 0xe28d0008, 0xe3a01000, 0xe12fff32, 0xe1a00008, 0xe3a01001, + 0xe3a02000, 0xe12fff35, 0xe3500001, 0xbaffffe4, 0xe59d1000, 0xe3a00000, 0xe12fff31, 0xe24bd01c, 0xe8bd8ff0, 0x00000198, 0x00000190, 0x00000181, + 0x00000172, 0x00000163, 0x00000159, 0x0000014a, 0x00000138, 0x7ffffe4c, 0x00000001, 0x6362696c, 0x006f732e, 0x6e65706f, 0x69786500, 0x6f700074, + 0x6e006c6c, 0x736f6e61, 0x7065656c, 0x61657200, 0x72770064, 0x00657469, 0x7379732f, 0x72656b2f, 0x2f6c656e, 0x75626564, 0x72742f67, 0x6e696361, + 0x72742f67, 0x5f656361, 0x65706970, 0x00000000, 0x00000003, 0x000014b0, 0x00000002, 0x00000010, 0x00000017, 0x000001b4, 0x00000014, 0x00000011, + 0x00000015, 0x00000000, 0x00000006, 0x00000128, 0x0000000b, 0x00000010, 0x00000005, 0x00000158, 0x0000000a, 0x0000001c, 0x6ffffef5, 0x00000174, + 0x00000001, 0x0000000d, 0x0000001e, 0x00000008, 0x6ffffffb, 0x00000001, 0x6ffffff0, 0x0000018c, 0x6ffffffe, 0x00000194, 0x6fffffff, 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, - 0x00000000, 0x000001dc, 0x000001dc, + 0x00003941, 0x61656100, 0x01006962, 0x0000002f, 0x302e3243, 0x0a060039, 0x01084107, 0x030a0209, 0x010f010c, 0x02110110, 0x01140412, 0x03170115, + 0x01190118, 0x0122021a, 0x2e000126, 0x74736873, 0x62617472, 0x6e692e00, 0x70726574, 0x79642e00, 0x6d79736e, 0x79642e00, 0x7274736e, 0x6e672e00, + 0x61682e75, 0x2e006873, 0x2e756e67, 0x73726576, 0x5f6e6f69, 0x722e0072, 0x702e6c65, 0x2e00746c, 0x74786574, 0x52412e00, 0x78652e4d, 0x00786469, + 0x646f722e, 0x00617461, 0x6e79642e, 0x63696d61, 0x52412e00, 0x74612e4d, 0x62697274, 0x73657475, 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x0000000b, 0x00000001, 0x00000002, 0x00000114, 0x00000114, + 0x00000013, 0x00000000, 0x00000000, 0x00000001, 0x00000000, 0x00000013, 0x0000000b, 0x00000002, 0x00000128, 0x00000128, 0x00000030, 0x00000003, + 0x00000001, 0x00000004, 0x00000010, 0x0000001b, 0x00000003, 0x00000002, 0x00000158, 0x00000158, 0x0000001c, 0x00000000, 0x00000000, 0x00000001, + 0x00000000, 0x00000023, 0x6ffffff6, 0x00000002, 0x00000174, 0x00000174, 0x00000018, 0x00000002, 0x00000000, 0x00000004, 0x00000004, 0x0000002d, + 0x6ffffffe, 0x00000002, 0x00000194, 0x00000194, 0x00000020, 0x00000003, 0x00000001, 0x00000004, 0x00000000, 0x0000003c, 0x00000009, 0x00000002, + 0x000001b4, 0x000001b4, 0x00000010, 0x00000002, 0x00000000, 0x00000004, 0x00000008, 0x00000040, 0x00000001, 0x00000006, 0x000001c4, 0x000001c4, + 0x0000002c, 0x00000000, 0x00000000, 0x00000004, 0x00000000, 0x00000045, 0x00000001, 0x00000006, 0x000001f0, 0x000001f0, 0x000001b4, 0x00000000, + 0x00000000, 0x00000004, 0x00000000, 0x0000004b, 0x70000001, 0x00000082, 0x000003a4, 0x000003a4, 0x00000008, 0x00000008, 0x00000000, 0x00000004, + 0x00000008, 0x00000056, 0x00000001, 0x00000032, 0x000003ac, 0x000003ac, 0x00000051, 0x00000000, 0x00000000, 0x00000001, 0x00000001, 0x0000005e, + 0x00000006, 0x00000003, 0x00001400, 0x00000400, 0x000000b0, 0x00000003, 0x00000000, 0x00000004, 0x00000008, 0x00000067, 0x70000003, 0x00000000, + 0x00000000, 0x000004b0, 0x0000003a, 0x00000000, 0x00000000, 0x00000001, 0x00000000, 0x00000001, 0x00000003, 0x00000000, 0x00000000, 0x000004ea, + 0x00000077, 0x00000000, 0x00000000, 0x00000001, 0x00000000, }; -static const unsigned int tracy_systrace_aarch64_size = 2488; -static const unsigned int tracy_systrace_aarch64_data[2488/4] = +static const unsigned int tracy_systrace_aarch64_size = 2592; +static const unsigned int tracy_systrace_aarch64_data[2592/4] = { - 0x464c457f, 0x00010102, 0x00000000, 0x00000000, 0x00b70003, 0x00000001, 0x000002e0, 0x00000000, 0x00000040, 0x00000000, 0x000006b8, 0x00000000, - 0x00000000, 0x00380040, 0x00400006, 0x000b000c, 0x00000006, 0x00000005, 0x00000040, 0x00000000, 0x00000040, 0x00000000, 0x00000040, 0x00000000, + 0x464c457f, 0x00010102, 0x00000000, 0x00000000, 0x00b70003, 0x00000001, 0x000002e0, 0x00000000, 0x00000040, 0x00000000, 0x000006e0, 0x00000000, + 0x00000000, 0x00380040, 0x00400006, 0x000c000d, 0x00000006, 0x00000005, 0x00000040, 0x00000000, 0x00000040, 0x00000000, 0x00000040, 0x00000000, 0x00000150, 0x00000000, 0x00000150, 0x00000000, 0x00000008, 0x00000000, 0x00000003, 0x00000004, 0x00000190, 0x00000000, 0x00000190, 0x00000000, 0x00000190, 0x00000000, 0x00000015, 0x00000000, 0x00000015, 0x00000000, 0x00000001, 0x00000000, 0x00000001, 0x00000005, 0x00000000, 0x00000000, - 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x000004c1, 0x00000000, 0x000004c1, 0x00000000, 0x00001000, 0x00000000, 0x00000001, 0x00000006, - 0x000004c8, 0x00000000, 0x000014c8, 0x00000000, 0x000014c8, 0x00000000, 0x00000190, 0x00000000, 0x00000190, 0x00000000, 0x00001000, 0x00000000, - 0x00000002, 0x00000006, 0x000004c8, 0x00000000, 0x000014c8, 0x00000000, 0x000014c8, 0x00000000, 0x00000160, 0x00000000, 0x00000160, 0x00000000, + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x000004e1, 0x00000000, 0x000004e1, 0x00000000, 0x00001000, 0x00000000, 0x00000001, 0x00000006, + 0x000004e8, 0x00000000, 0x000014e8, 0x00000000, 0x000014e8, 0x00000000, 0x00000190, 0x00000000, 0x00000190, 0x00000000, 0x00001000, 0x00000000, + 0x00000002, 0x00000006, 0x000004e8, 0x00000000, 0x000014e8, 0x00000000, 0x000014e8, 0x00000000, 0x00000160, 0x00000000, 0x00000160, 0x00000000, 0x00000008, 0x00000000, 0x6474e551, 0x00000006, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, - 0x00000000, 0x00000000, 0x00000008, 0x00000000, 0x7379732f, 0x2f6d6574, 0x2f6e6962, 0x6b6e696c, 0x34367265, 0x00000000, 0x00000000, 0x00000000, - 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x00000000, 0x00000000, 0x00000008, 0x00000000, 0x7379732f, 0x2f6d6574, 0x2f6e6962, 0x6b6e696c, 0x34367265, 0x00000000, 0x00000001, 0x00000001, + 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00090003, 0x000002e0, 0x00000000, 0x00000000, 0x00000000, 0x00000010, 0x00000012, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x0000000a, 0x00000012, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x62696c00, 0x732e6c64, 0x6c64006f, 0x006d7973, 0x706f6c64, 0x4c006e65, 0x00434249, 0x00000000, 0x00000000, 0x00000000, 0x00010001, 0x00000001, 0x00000010, 0x00000000, 0x00050d63, 0x00020000, 0x00000017, 0x00000000, - 0x00001648, 0x00000000, 0x00000402, 0x00000002, 0x00000000, 0x00000000, 0x00001650, 0x00000000, 0x00000402, 0x00000003, 0x00000000, 0x00000000, - 0xa9bf7bf0, 0xb0000010, 0xf9432211, 0x91190210, 0xd61f0220, 0xd503201f, 0xd503201f, 0xd503201f, 0xb0000010, 0xf9432611, 0x91192210, 0xd61f0220, - 0xb0000010, 0xf9432a11, 0x91194210, 0xd61f0220, 0xf81b0ffc, 0xa9015ff8, 0xa90257f6, 0xa9034ff4, 0xa9047bfd, 0x910103fd, 0xd14043ff, 0xd10043ff, - 0x90000000, 0x9111c000, 0x52800021, 0x97ffffed, 0x90000001, 0x9111e021, 0xaa0003f7, 0x97ffffed, 0x90000001, 0xaa0003f8, 0x9111f421, 0xaa1703e0, - 0x97ffffe8, 0x90000001, 0xaa0003f3, 0x91120821, 0xaa1703e0, 0x97ffffe3, 0x90000001, 0xaa0003f4, 0x91121c21, 0xaa1703e0, 0x97ffffde, 0x90000001, - 0xaa0003f5, 0x91124421, 0xaa1703e0, 0x97ffffd9, 0x90000001, 0xaa0003f6, 0x91125821, 0xaa1703e0, 0x97ffffd4, 0xaa0003f7, 0x90000000, 0x91127000, - 0x2a1f03e1, 0xd63f0300, 0x2a0003f8, 0x36f80060, 0x2a1f03e0, 0xd63f0260, 0x90000008, 0x3dc11900, 0x52800128, 0xb81c83b8, 0x781cc3a8, 0x3d8003e0, - 0xd100e3a0, 0x52800021, 0x2a1f03e2, 0xd63f0280, 0x7100001f, 0x5400014c, 0x910003e0, 0xaa1f03e1, 0xd63f02a0, 0xd100e3a0, 0x52800021, 0x2a1f03e2, - 0xd63f0280, 0x7100041f, 0x54ffff0b, 0x910043e1, 0x52a00022, 0x2a1803e0, 0xd63f02c0, 0xf100041f, 0x540000eb, 0xaa0003e2, 0x910043e1, 0x52800020, - 0xd63f02e0, 0xf100001f, 0x54fffccc, 0x2a1f03e0, 0xd63f0260, 0x914043ff, 0x910043ff, 0xa9447bfd, 0xa9434ff4, 0xa94257f6, 0xa9415ff8, 0xf84507fc, - 0xd65f03c0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00989680, 0x00000000, 0x6362696c, 0x006f732e, 0x6e65706f, 0x69786500, - 0x6f700074, 0x6e006c6c, 0x736f6e61, 0x7065656c, 0x61657200, 0x72770064, 0x00657469, 0x7379732f, 0x72656b2f, 0x2f6c656e, 0x75626564, 0x72742f67, - 0x6e696361, 0x72742f67, 0x5f656361, 0x65706970, 0x00000000, 0x00000000, 0x00000001, 0x00000000, 0x00000001, 0x00000000, 0x6ffffef5, 0x00000000, - 0x000001a8, 0x00000000, 0x00000005, 0x00000000, 0x00000228, 0x00000000, 0x00000006, 0x00000000, 0x000001c8, 0x00000000, 0x0000000a, 0x00000000, - 0x0000001c, 0x00000000, 0x0000000b, 0x00000000, 0x00000018, 0x00000000, 0x00000015, 0x00000000, 0x00000000, 0x00000000, 0x00000003, 0x00000000, - 0x00001630, 0x00000000, 0x00000002, 0x00000000, 0x00000030, 0x00000000, 0x00000014, 0x00000000, 0x00000007, 0x00000000, 0x00000017, 0x00000000, - 0x00000270, 0x00000000, 0x0000001e, 0x00000000, 0x00000008, 0x00000000, 0x6ffffffb, 0x00000000, 0x00000001, 0x00000000, 0x6ffffffe, 0x00000000, - 0x00000250, 0x00000000, 0x6fffffff, 0x00000000, 0x00000001, 0x00000000, 0x6ffffff0, 0x00000000, 0x00000244, 0x00000000, 0x00000000, 0x00000000, + 0x00001668, 0x00000000, 0x00000402, 0x00000002, 0x00000000, 0x00000000, 0x00001670, 0x00000000, 0x00000402, 0x00000003, 0x00000000, 0x00000000, + 0xa9bf7bf0, 0xb0000010, 0xf9433211, 0x91198210, 0xd61f0220, 0xd503201f, 0xd503201f, 0xd503201f, 0xb0000010, 0xf9433611, 0x9119a210, 0xd61f0220, + 0xb0000010, 0xf9433a11, 0x9119c210, 0xd61f0220, 0xa9bb67fc, 0xa9015ff8, 0xa90257f6, 0xa9034ff4, 0xa9047bfd, 0x910103fd, 0xd14043ff, 0xd10083ff, + 0x90000000, 0x91124000, 0x52800021, 0x52800039, 0x97ffffec, 0x90000001, 0x91126021, 0xaa0003f7, 0x97ffffec, 0x90000001, 0xaa0003f8, 0x91127421, + 0xaa1703e0, 0x97ffffe7, 0x90000001, 0xaa0003f3, 0x91128821, 0xaa1703e0, 0x97ffffe2, 0x90000001, 0xaa0003f4, 0x91129c21, 0xaa1703e0, 0x97ffffdd, + 0x90000001, 0xaa0003f5, 0x9112c421, 0xaa1703e0, 0x97ffffd8, 0x90000001, 0xaa0003f6, 0x9112d821, 0xaa1703e0, 0x97ffffd3, 0xaa0003f7, 0x90000000, + 0x9112f000, 0x2a1f03e1, 0xd63f0300, 0x2a0003f8, 0x36f80060, 0x2a1f03e0, 0xd63f0260, 0x90000009, 0x3dc12120, 0x52800128, 0x79003be8, 0x52800108, + 0x910043e0, 0x52800021, 0x2a1f03e2, 0xb9001bf8, 0xb90013f9, 0x79002be8, 0x3d8003e0, 0xd63f0280, 0x7100001f, 0x5400036c, 0x910063e0, 0x52800021, + 0x2a1f03e2, 0xd63f0280, 0x7100001f, 0x5400018d, 0x910083e1, 0x52a00022, 0x2a1803e0, 0xd63f02c0, 0xf100041f, 0x540001eb, 0xaa0003e2, 0x910083e1, + 0x52800020, 0xd63f02e0, 0x14000004, 0x910003e0, 0xaa1f03e1, 0xd63f02a0, 0x910043e0, 0x52800021, 0x2a1f03e2, 0xd63f0280, 0x7100041f, 0x54fffceb, + 0x2a1f03e0, 0xd63f0260, 0x914043ff, 0x910083ff, 0xa9447bfd, 0xa9434ff4, 0xa94257f6, 0xa9415ff8, 0xa8c567fc, 0xd65f03c0, 0x00000000, 0x00000000, + 0x00000000, 0x00000000, 0x00989680, 0x00000000, 0x6362696c, 0x006f732e, 0x6e65706f, 0x69786500, 0x6f700074, 0x6e006c6c, 0x736f6e61, 0x7065656c, + 0x61657200, 0x72770064, 0x00657469, 0x7379732f, 0x72656b2f, 0x2f6c656e, 0x75626564, 0x72742f67, 0x6e696361, 0x72742f67, 0x5f656361, 0x65706970, + 0x00000000, 0x00000000, 0x00000001, 0x00000000, 0x00000001, 0x00000000, 0x6ffffef5, 0x00000000, 0x000001a8, 0x00000000, 0x00000005, 0x00000000, + 0x00000228, 0x00000000, 0x00000006, 0x00000000, 0x000001c8, 0x00000000, 0x0000000a, 0x00000000, 0x0000001c, 0x00000000, 0x0000000b, 0x00000000, + 0x00000018, 0x00000000, 0x00000015, 0x00000000, 0x00000000, 0x00000000, 0x00000003, 0x00000000, 0x00001650, 0x00000000, 0x00000002, 0x00000000, + 0x00000030, 0x00000000, 0x00000014, 0x00000000, 0x00000007, 0x00000000, 0x00000017, 0x00000000, 0x00000270, 0x00000000, 0x0000001e, 0x00000000, + 0x00000008, 0x00000000, 0x6ffffffb, 0x00000000, 0x00000001, 0x00000000, 0x6ffffffe, 0x00000000, 0x00000250, 0x00000000, 0x6fffffff, 0x00000000, + 0x00000001, 0x00000000, 0x6ffffff0, 0x00000000, 0x00000244, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, - 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x000002a0, 0x00000000, 0x000002a0, 0x00000000, 0x68732e00, 0x74727473, - 0x2e006261, 0x65746e69, 0x2e007072, 0x736e7964, 0x2e006d79, 0x736e7964, 0x2e007274, 0x2e756e67, 0x73726576, 0x5f6e6f69, 0x722e0072, 0x2e616c65, - 0x00746c70, 0x7865742e, 0x722e0074, 0x7461646f, 0x642e0061, 0x6d616e79, 0x2e006369, 0x2e746f67, 0x00746c70, 0x00000000, 0x00000000, 0x00000000, + 0x00000000, 0x00000000, 0x000002a0, 0x00000000, 0x000002a0, 0x00000000, 0x68732e00, 0x74727473, 0x2e006261, 0x65746e69, 0x2e007072, 0x2e756e67, + 0x68736168, 0x79642e00, 0x6d79736e, 0x79642e00, 0x7274736e, 0x6e672e00, 0x65762e75, 0x6f697372, 0x00725f6e, 0x6c65722e, 0x6c702e61, 0x742e0074, + 0x00747865, 0x646f722e, 0x00617461, 0x6e79642e, 0x63696d61, 0x6f672e00, 0x6c702e74, 0x00000074, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, - 0x00000000, 0x00000000, 0x0000000b, 0x00000001, 0x00000002, 0x00000000, 0x00000190, 0x00000000, 0x00000190, 0x00000000, 0x00000015, 0x00000000, - 0x00000000, 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000013, 0x0000000b, 0x00000002, 0x00000000, 0x000001c8, 0x00000000, - 0x000001c8, 0x00000000, 0x00000060, 0x00000000, 0x00000003, 0x00000002, 0x00000008, 0x00000000, 0x00000018, 0x00000000, 0x0000001b, 0x00000003, - 0x00000002, 0x00000000, 0x00000228, 0x00000000, 0x00000228, 0x00000000, 0x0000001c, 0x00000000, 0x00000000, 0x00000000, 0x00000001, 0x00000000, - 0x00000000, 0x00000000, 0x00000023, 0x6ffffffe, 0x00000002, 0x00000000, 0x00000250, 0x00000000, 0x00000250, 0x00000000, 0x00000020, 0x00000000, - 0x00000003, 0x00000001, 0x00000008, 0x00000000, 0x00000000, 0x00000000, 0x00000032, 0x00000004, 0x00000042, 0x00000000, 0x00000270, 0x00000000, - 0x00000270, 0x00000000, 0x00000030, 0x00000000, 0x00000002, 0x0000000a, 0x00000008, 0x00000000, 0x00000018, 0x00000000, 0x00000037, 0x00000001, - 0x00000006, 0x00000000, 0x000002a0, 0x00000000, 0x000002a0, 0x00000000, 0x00000040, 0x00000000, 0x00000000, 0x00000000, 0x00000010, 0x00000000, - 0x00000010, 0x00000000, 0x0000003c, 0x00000001, 0x00000006, 0x00000000, 0x000002e0, 0x00000000, 0x000002e0, 0x00000000, 0x00000174, 0x00000000, - 0x00000000, 0x00000000, 0x00000004, 0x00000000, 0x00000000, 0x00000000, 0x00000042, 0x00000001, 0x00000002, 0x00000000, 0x00000460, 0x00000000, - 0x00000460, 0x00000000, 0x00000061, 0x00000000, 0x00000000, 0x00000000, 0x00000010, 0x00000000, 0x00000000, 0x00000000, 0x0000004a, 0x00000006, - 0x00000003, 0x00000000, 0x000014c8, 0x00000000, 0x000004c8, 0x00000000, 0x00000160, 0x00000000, 0x00000003, 0x00000000, 0x00000008, 0x00000000, - 0x00000010, 0x00000000, 0x00000053, 0x00000001, 0x00000003, 0x00000000, 0x00001630, 0x00000000, 0x00000630, 0x00000000, 0x00000028, 0x00000000, - 0x00000000, 0x00000000, 0x00000008, 0x00000000, 0x00000008, 0x00000000, 0x00000001, 0x00000003, 0x00000000, 0x00000000, 0x00000000, 0x00000000, - 0x00000658, 0x00000000, 0x0000005c, 0x00000000, 0x00000000, 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000000, + 0x0000000b, 0x00000001, 0x00000002, 0x00000000, 0x00000190, 0x00000000, 0x00000190, 0x00000000, 0x00000015, 0x00000000, 0x00000000, 0x00000000, + 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000013, 0x6ffffff6, 0x00000002, 0x00000000, 0x000001a8, 0x00000000, 0x000001a8, 0x00000000, + 0x0000001c, 0x00000000, 0x00000003, 0x00000000, 0x00000008, 0x00000000, 0x00000000, 0x00000000, 0x0000001d, 0x0000000b, 0x00000002, 0x00000000, + 0x000001c8, 0x00000000, 0x000001c8, 0x00000000, 0x00000060, 0x00000000, 0x00000004, 0x00000002, 0x00000008, 0x00000000, 0x00000018, 0x00000000, + 0x00000025, 0x00000003, 0x00000002, 0x00000000, 0x00000228, 0x00000000, 0x00000228, 0x00000000, 0x0000001c, 0x00000000, 0x00000000, 0x00000000, + 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x0000002d, 0x6ffffffe, 0x00000002, 0x00000000, 0x00000250, 0x00000000, 0x00000250, 0x00000000, + 0x00000020, 0x00000000, 0x00000004, 0x00000001, 0x00000008, 0x00000000, 0x00000000, 0x00000000, 0x0000003c, 0x00000004, 0x00000042, 0x00000000, + 0x00000270, 0x00000000, 0x00000270, 0x00000000, 0x00000030, 0x00000000, 0x00000003, 0x0000000b, 0x00000008, 0x00000000, 0x00000018, 0x00000000, + 0x00000041, 0x00000001, 0x00000006, 0x00000000, 0x000002a0, 0x00000000, 0x000002a0, 0x00000000, 0x00000040, 0x00000000, 0x00000000, 0x00000000, + 0x00000010, 0x00000000, 0x00000010, 0x00000000, 0x00000046, 0x00000001, 0x00000006, 0x00000000, 0x000002e0, 0x00000000, 0x000002e0, 0x00000000, + 0x00000198, 0x00000000, 0x00000000, 0x00000000, 0x00000004, 0x00000000, 0x00000000, 0x00000000, 0x0000004c, 0x00000001, 0x00000002, 0x00000000, + 0x00000480, 0x00000000, 0x00000480, 0x00000000, 0x00000061, 0x00000000, 0x00000000, 0x00000000, 0x00000010, 0x00000000, 0x00000000, 0x00000000, + 0x00000054, 0x00000006, 0x00000003, 0x00000000, 0x000014e8, 0x00000000, 0x000004e8, 0x00000000, 0x00000160, 0x00000000, 0x00000004, 0x00000000, + 0x00000008, 0x00000000, 0x00000010, 0x00000000, 0x0000005d, 0x00000001, 0x00000003, 0x00000000, 0x00001650, 0x00000000, 0x00000650, 0x00000000, + 0x00000028, 0x00000000, 0x00000000, 0x00000000, 0x00000008, 0x00000000, 0x00000008, 0x00000000, 0x00000001, 0x00000003, 0x00000000, 0x00000000, + 0x00000000, 0x00000000, 0x00000678, 0x00000000, 0x00000066, 0x00000000, 0x00000000, 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000000, }; } diff --git a/extra/systrace/build.sh b/extra/systrace/build.sh index 4663ffb5..5477ed15 100755 --- a/extra/systrace/build.sh +++ b/extra/systrace/build.sh @@ -5,7 +5,7 @@ $CC tracy_systrace.c -s -Os -ffunction-sections -fdata-sections -Wl,--gc-sections -fno-stack-protector -Wl,-z,norelro -Wl,--build-id=none -nostdlib -ldl -o tracy_systrace -$STRIP --strip-all -R .note.gnu.gold-version -R .comment -R .note -R .note.gnu.build-id -R .note.ABI-tag -R .eh_frame -R .eh_frame_hdr -R .gnu.hash -R .gnu.version -R .got tracy_systrace +$STRIP --strip-all -R .note.gnu.gold-version -R .comment -R .note -R .note.gnu.build-id -R .note.ABI-tag -R .eh_frame -R .eh_frame_hdr -R .gnu.version -R .got tracy_systrace if [[ ! -z "$SSTRIP" ]] then diff --git a/extra/systrace/tracy_systrace.c b/extra/systrace/tracy_systrace.c index 2297c5e7..58fcbfe8 100644 --- a/extra/systrace/tracy_systrace.c +++ b/extra/systrace/tracy_systrace.c @@ -33,23 +33,32 @@ void _start() int kernelFd = sym_open( "/sys/kernel/debug/tracing/trace_pipe", O_RDONLY ); if( kernelFd < 0 ) sym_exit( 0 ); - struct pollfd pfd; - pfd.fd = kernelFd; - pfd.events = POLLIN | POLLERR; + struct pollfd pfd_in; + pfd_in.fd = kernelFd; + pfd_in.events = POLLIN | POLLERR; + + struct pollfd pfd_out; + pfd_out.fd = STDOUT_FILENO; + pfd_out.events = POLLERR; struct timespec sleepTime; sleepTime.tv_sec = 0; sleepTime.tv_nsec = 1000 * 1000 * 10; - for(;;) + // While the pipe is open (no POLLERR on the output fd) + while( sym_poll( &pfd_out, 1, 0) <= 0 ) { - while( sym_poll( &pfd, 1, 0 ) <= 0 ) sym_nanosleep( &sleepTime, NULL ); + // If there is neither data (POLLIN) nor an error (POLLERR) on + // the read fd, sleep. This implements a blocking read without relying + // on the Linux kernel's implementation of blocking reads which causes + // a large number of context switches. + if( sym_poll( &pfd_in, 1, 0 ) <= 0 ) { + sym_nanosleep( &sleepTime, NULL ); + continue; // go back to the while condition polling the output fd + } const ssize_t rd = sym_read( kernelFd, buf, BufSize ); if( rd <= 0 ) break; - const ssize_t wr = sym_write( STDOUT_FILENO, buf, rd ); - // Termination condition occurring on exit of the profiled program, - // when the parent process closes the pipe. - if( wr <= 0 ) break; + sym_write( STDOUT_FILENO, buf, rd ); } sym_exit( 0 );