Devtools » History » Version 1
Anonymous, 02/19/2016 10:47 PM
1 | 1 | =C tools= |
|
---|---|---|---|
2 | ==Formatting== |
||
3 | Lindent, reformat C code to the Linux kernel (and osmocom) coding standards |
||
4 | |||
5 | ==Patches== |
||
6 | git format-patch -1, generate a patch |
||
7 | |||
8 | checkpatch.pl, check patches for common errors (Ignore x-signed-off-by) |
||
9 | |||
10 | git send-email -1 Send a patch to the mailing list (after configuration) |
||
11 | |||
12 | ==Testing== |
||
13 | make check - run it and don't introduce regressions |
||
14 | |||
15 | ==Misc== |
||
16 | pahole (dwarves), http://www.ohloh.net/p/pahole See the memory layout of structures |
||
17 | |||
18 | gdb, debugging |
||
19 | |||
20 | valgrind, http://valgrind.org/, dynamic analysis of memory management/threading |
||
21 | |||
22 | =Python tools= |
||
23 | ==Formatting== |
||
24 | pep8, https://pypi.python.org/pypi/pep8 Check formatting for pep8 compliance |
||
25 | |||
26 | autopep8, https://github.com/hhatto/autopep8 Reformat code to be pep8-complient |