Go to file
Arnaldo Carvalho de Melo 746f462b4e [CODIFF]: Show more info in verbose mode for function diffs
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>
2007-01-08 12:21:47 -02:00
cmake/modules [CMAKE]: Fix build on ubuntu 2007-01-07 23:56:43 -02:00
CMakeLists.txt [DTAGNAMES]: 6th dwarf 2006-12-28 14:03:42 -02:00
README [README]: Add information about packages required to build 2006-12-20 10:28:44 -02:00
README.ctracer [CTRACER]: New tool 2006-12-20 12:16:16 -02:00
classes.c [CLASSES]: Introduce cu__tag_not_handled 2007-01-07 23:57:32 -02:00
classes.h [CLASSES]: Support abstract origin in formal parameters 2007-01-07 17:57:00 -02:00
codiff.c [CODIFF]: Show more info in verbose mode for function diffs 2007-01-08 12:21:47 -02:00
ctracer.c [CLASSES]: Handle DW_AT_abstract_origin in DW_TAG_subprogram 2007-01-07 17:13:39 -02:00
dtagnames.c [CLASSES]: Introduce struct type 2007-01-07 12:30:58 -02:00
list.h Repository creation. 2006-10-24 20:42:39 -03:00
pahole.c [CLASSES]: Introduce struct type 2007-01-07 12:30:58 -02:00
pfunct.c [PFUNCT]: Only check duplicates in verbose mode 2007-01-08 11:42:52 -02:00
prefcnt.c [CLASSES]: Introduce struct type 2007-01-07 12:30:58 -02:00

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