From 2316ebf419bb8223a5f425be607771fbe42e1f8b Mon Sep 17 00:00:00 2001 From: PhracturedBlue Date: Wed, 9 Jan 2019 19:43:49 -0800 Subject: [PATCH] Add script to profile via qemu and gdb. Simple mixer profile example --- src/main.c | 4 +- src/target/qemu/.target_main.c.swp | Bin 12288 -> 0 bytes src/target/qemu/Makefile.inc | 2 +- src/target/qemu/target_main.c | 33 +++++++++++ utils/qemu.py | 89 +++++++++++++++++++++++++++++ 5 files changed, 126 insertions(+), 2 deletions(-) delete mode 100644 src/target/qemu/.target_main.c.swp create mode 100644 utils/qemu.py diff --git a/src/main.c b/src/main.c index cdb304dda1..1af1b0f3a0 100644 --- a/src/main.c +++ b/src/main.c @@ -36,7 +36,9 @@ void TOUCH_Handler(); // temporarily in main() void VIDEO_Update(); void PAGE_Test(); -int main() __attribute__((weak)); +#if defined (TEST) || defined (PROFILE) +#define main _main +#endif #ifndef DUMP_BOOTLOADER int main() { diff --git a/src/target/qemu/.target_main.c.swp b/src/target/qemu/.target_main.c.swp deleted file mode 100644 index f1daae7ac55d170e8beaaf60091629ad1e481568..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 12288 zcmeI2O>fgM7{}d-3x@$3R}Q9=rcUbOF4aV(GNd+SEK=KqHZ9XYGHL2H7I`Bt96-Q< z0~fvl7rqAv#D#Bx#CPBd5_U<|g4XTI&|~Qz+j(B>=cnWl#pBw@=;DS_L!wM?0KvpETO!t>n_3D|@?Bu`mFiri$%GcsY%xRdcH+=<72&PbZL zBy*A}%g9p}f z00b@|0cV2H!*zr{3CaKe^Y8z!R}uOs^j_$#(1{QeIu<$-QiZ->LFkLn8=?C`H-vtQ zJl}*q&vRZtCa`5700e*l5C8%|00;m9AOHk_z&}XfCBmXjV;)i0XHHVNXBnne#j@K~ zx0?%d%CgnQ)v+@DqRF&W>m5*YXj?;@TEoGiHSBa&EJ%ZB!j@O1UGuI!58kWM?%{D2 z$@Gcq(wHSY_E_Thl!eaNXQHIYeNx%#YZ`4?ZB_5}t9WTb4b#%}UQwk?F$