Devtools » History » Version 2
Anonymous, 02/19/2016 10:47 PM
1 | 2 | = C tools = |
|
---|---|---|---|
2 | == Formatting == |
||
3 | 1 | Lindent, reformat C code to the Linux kernel (and osmocom) coding standards |
|
4 | |||
5 | 2 | == Patches == |
|
6 | 1 | 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 | 2 | == Testing == |
|
13 | 1 | make check - run it and don't introduce regressions |
|
14 | |||
15 | 2 | == Misc == |
|
16 | 1 | 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 | 2 | = Python tools = |
|
23 | == Formatting == |
||
24 | 1 | 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 |