746f462b4e
Example: Applying this patch to the linux kernel sources: diff --git a/include/net/xfrm.h b/include/net/xfrm.h index e476541..178eb50 100644 - a/include/net/xfrm.h + b/include/net/xfrm.h @@ -853,7 +853,7 @@ struct xfrm_algo_comp_info { struct xfrm_algo_desc { char *name; char *compat; - u8 available:1; + u8 available; union { struct xfrm_algo_auth_info auth; struct xfrm_algo_encr_info encr; We get this result: [acme@newtoy linux-2.6]$ codiff -V /tmp/vmlinux.before vmlinux net/xfrm/xfrm_algo.c: struct xfrm_algo_desc | +0 available:1; from: u8 /* 8(7) 1(1) */ to: u8 /* 8(0) 1(0) */ 1 struct changed xfrm_count_auth_supported | -15 # 42 -> 27 xfrm_count_enc_supported | -15 # 42 -> 27 xfrm_get_byname | -14 # 250 -> 236 xfrm_probe_algs | -102 # 284 -> 182 4 functions changed, 146 bytes removed net/xfrm/xfrm_user.c: struct xfrm_algo_desc | +0 available:1; from: u8 /* 8(7) 1(1) */ to: u8 /* 8(0) 1(0) */ 1 struct changed vmlinux: 4 functions changed, 146 bytes removed See the info after the '#' character? old size -> new size. Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com> |
||
---|---|---|
cmake/modules | ||
CMakeLists.txt | ||
README | ||
README.ctracer | ||
classes.c | ||
classes.h | ||
codiff.c | ||
ctracer.c | ||
dtagnames.c | ||
list.h | ||
pahole.c | ||
pfunct.c | ||
prefcnt.c |
README
Build instructions: 1. install cmake 2. mkdir build 3. cd build 4. cmake .. 5. make Known to work scenarios: Mandriva Cooker: cmake 2.4.5-1mdv2007.1 libelfutils1-devel 0.123-1mdv2007.1 Debian Unstable: cmake 2.4.5-1 libdw-dev 0.123-2