Devtools » History » Version 6
Anonymous, 02/19/2016 10:48 PM
1 | 6 | ||
---|---|---|---|
2 | h1. C tools = |
||
3 | Formatting == |
||
4 | 1 | Lindent, reformat C code to the Linux kernel (and osmocom) coding standards |
|
5 | |||
6 | 6 | ||
7 | h2. Patches |
||
8 | |||
9 | 1 | git format-patch -1, generate a patch |
|
10 | |||
11 | checkpatch.pl, check patches for common errors (Ignore x-signed-off-by) |
||
12 | 5 | ||
13 | make distcheck - this catches quite a few errors, run it before sending patches. |
||
14 | 1 | ||
15 | git send-email -1 Send a patch to the mailing list (after configuration) |
||
16 | |||
17 | 5 | ||
18 | 6 | ||
19 | h2. Testing |
||
20 | |||
21 | 1 | make check - run it and don't introduce regressions |
|
22 | |||
23 | 6 | ||
24 | h2. Misc |
||
25 | |||
26 | 1 | pahole (dwarves), http://www.ohloh.net/p/pahole See the memory layout of structures |
|
27 | |||
28 | gdb, debugging |
||
29 | |||
30 | valgrind, http://valgrind.org/, dynamic analysis of memory management/threading |
||
31 | |||
32 | 4 | mudflap (gcc option), check array/pointer accesses. See http://zecke.blogspot.com/2012/10/know-your-tools-mudflap.html |
|
33 | 1 | ||
34 | 6 | ||
35 | h1. Python tools = |
||
36 | Formatting == |
||
37 | 2 | pep8, https://pypi.python.org/pypi/pep8 Check formatting for pep8 compliance |
|
38 | |||
39 | 1 | autopep8, https://github.com/hhatto/autopep8 Reformat code to be pep8-complient |
|
40 | |||
41 | 6 | ||
42 | h2. Checking/analysis |
||
43 | |||
44 | 3 | pyflakes, https://pypi.python.org/pypi/pyflakes Statically find some errors |