Project

General

Profile

Devtools » History » Revision 7

Revision 6 (Anonymous, 02/19/2016 10:48 PM) → Revision 7/12 (laforge, 02/21/2016 02:27 PM)

 
 h2. 
 h1. C tools 

 h3. = 
  Formatting 

 == 
 Lindent, reformat C code to the Linux kernel (and osmocom) coding standards 

 


 h2. Patches 

 * @git 

 git format-patch -1@, -1, generate a patch 
 * @checkpatch.pl@, 

 checkpatch.pl, check patches for common errors (Ignore x-signed-off-by) 
 * @make distcheck@ 

 make distcheck - this catches quite a few errors, run it before sending patches. 
 * @git 

 git send-email -1@ -1 Send a patch to the mailing list (after configuration) 

 



 h2. Testing 

 * @make check@: 

 make check - run it and don't introduce regressions 

 


 h2. Misc 

 * 

 pahole (dwarves), http://www.ohloh.net/p/pahole See the memory layout of structures 
 * 

 gdb, debugging 
 * 

 valgrind, http://valgrind.org/, dynamic analysis of memory management/threading 
 * 

 mudflap (gcc option), check array/pointer accesses. See http://zecke.blogspot.com/2012/10/know-your-tools-mudflap.html 


 h2. 


 h1. Python tools 

 h3. = 
  Formatting 

 * == 
 pep8, https://pypi.python.org/pypi/pep8 Check formatting for pep8 compliance 
 * 

 autopep8, https://github.com/hhatto/autopep8 Reformat code to be pep8-complient 

 h3. 


 h2. Checking/analysis 

 * 

 pyflakes, https://pypi.python.org/pypi/pyflakes Statically find some errors 
Add picture from clipboard (Maximum size: 48.8 MB)