Project

General

Profile

Devtools » History » Version 6

k, 02/19/2016 10:48 PM

1 6 k
2
h1. C tools =
3
 Formatting ==
4 1 k
Lindent, reformat C code to the Linux kernel (and osmocom) coding standards
5
6 6 k
7
h2. Patches
8
9 1 k
git format-patch -1, generate a patch
10
11
checkpatch.pl, check patches for common errors (Ignore x-signed-off-by)
12 5 k
13
make distcheck - this catches quite a few errors, run it before sending patches.
14 1 k
15
git send-email -1 Send a patch to the mailing list (after configuration)
16
17 5 k
18 6 k
19
h2. Testing
20
21 1 k
make check - run it and don't introduce regressions
22
23 6 k
24
h2. Misc
25
26 1 k
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 k
mudflap (gcc option), check array/pointer accesses. See http://zecke.blogspot.com/2012/10/know-your-tools-mudflap.html
33 1 k
34 6 k
35
h1. Python tools =
36
 Formatting ==
37 2 k
pep8, https://pypi.python.org/pypi/pep8 Check formatting for pep8 compliance
38
39 1 k
autopep8, https://github.com/hhatto/autopep8 Reformat code to be pep8-complient
40
41 6 k
42
h2. Checking/analysis
43
44 3 k
pyflakes, https://pypi.python.org/pypi/pyflakes Statically find some errors
Add picture from clipboard (Maximum size: 48.8 MB)