09 2022 档案
摘要:程序中使用了 try: except:#这里没加任何异常 这就会导致程序不响应ctrl+c信号 except:前加上这个 except KeyboardInterrupt: sys.exit(0) 另外,不能直接使用exit(0),会报错
阅读全文
摘要:CC=arm-cortex_a9-linux-gnueabi-gcc ./configure --host=arm LZ4_LIBS="-L/opt/rootfs/xpylib/lz4/usr/local/lib -llz4" LZ4_CFLAGS="-I/opt/rootfs/xpylib/lz4
阅读全文
摘要:./config no-asm shared no-async --cross-compile-prefix=arm-cortex_a9-linux-gnueabi- find ./ -name "Makefile" -exec sed -i "s/-m64//g" {} \;
阅读全文
摘要:1. printk 2. cat /dev/faulty 3.strace eg:strace ls /dev > /dev/scull0 -t 来显示每个调用执行的时间, -T 来显示调用中花费的时间, -e 来限制被跟踪调用的类型(例如strace –eread,write ls表示只监控rea
阅读全文