tmp_suning_uos_patched/scripts
Andreas Gruenbacher 15fde67518 kbuild: support for %.symtypes files
Here is a patch that adds a new -T option to genksyms for generating dumps of
the type definition that makes up the symbol version hashes. This allows to
trace modversion changes back to what caused them. The dump format is the
name of the type defined, followed by its definition (which is almost C):

  s#list_head struct list_head { s#list_head * next , * prev ; }

The s#, u#, e#, and t# prefixes stand for struct, union, enum, and typedef.
The exported symbols do not define types, and thus do not have an x# prefix:

  nfs4_acl_get_whotype int nfs4_acl_get_whotype ( char * , t#u32 )

The symbol type defintion of a single file can be generated with:

  make fs/jbd/journal.symtypes

If KBUILD_SYMTYPES is defined, all the *.symtypes of all object files that
export symbols are generated.

The single *.symtypes files can be combined into a single file after a kernel
build with a script like the following:

for f in $(find -name '*.symtypes' | sort); do
    f=${f#./}
    echo "/* ${f%.symtypes}.o */"
    cat $f
    echo
done \
| sed -e '\:UNKNOWN:d' \
      -e 's:[,;] }:}:g' \
      -e 's:\([[({]\) :\1:g' \
      -e 's: \([])},;]\):\1:g' \
      -e 's: $::' \
      $f \
| awk '
/^.#/   { if (defined[$1] == $0) {
            print $1
            next
          }
          defined[$1] = $0
        }
        { print }
'

When the kernel ABI changes, diffing individual *.symtype files, or the
combined files, against each other will show which symbol changes caused the
ABI changes. This can save a tremendous amount of time.

Dump the types that make up modversions

Signed-off-by: Andreas Gruenbacher <agruen@suse.de>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2006-06-24 23:42:46 +02:00
..
basic kconfig: integrate split config into silentoldconfig 2006-06-09 07:31:30 +02:00
genksyms kbuild: support for %.symtypes files 2006-06-24 23:42:46 +02:00
kconfig kconfig: KCONFIG_OVERWRITECONFIG 2006-06-09 16:28:07 +02:00
ksymoops
mod kbuild: kill some false positives from modpost 2006-06-24 23:14:05 +02:00
package kbuild: fix make rpm for powerpc 2006-06-08 20:18:49 +02:00
.gitignore
bin2c.c
binoffset.c
bloat-o-meter kbuild: fix mode of checkstack.pl and other files. 2006-04-11 13:37:07 +02:00
checkincludes.pl
checkstack.pl kbuild: fix mode of checkstack.pl and other files. 2006-04-11 13:37:07 +02:00
checkversion.pl
conmakehash.c
export_report.pl kbuild: export-symbol usage report generator 2006-06-24 23:14:02 +02:00
extract-ikconfig [PATCH] extract-ikconfig: don't use --long-options 2006-03-24 07:33:21 -08:00
gcc-version.sh
gen_initramfs_list.sh kbuild: fix gen_initramfs_list.sh 2006-04-30 23:56:33 +02:00
kallsyms.c [PATCH] kallsyms: handle malloc() failure 2006-03-25 08:22:56 -08:00
Kbuild.include kbuild: fix make -rR breakage 2006-06-24 23:13:59 +02:00
kernel-doc [PATCH] kernel-doc: clean up the script (whitespace) 2006-02-01 08:53:27 -08:00
Lindent
Makefile
Makefile.build kbuild: support for %.symtypes files 2006-06-24 23:42:46 +02:00
Makefile.clean kbuild: change kbuild to not rely on incorrect GNU make behavior 2006-03-06 00:09:51 +01:00
Makefile.host kbuild: fix make -rR breakage 2006-06-24 23:13:59 +02:00
Makefile.lib kbuild: fix make -rR breakage 2006-06-24 23:13:59 +02:00
Makefile.modinst kbuild: add option for stripping modules while installing them 2006-06-24 23:16:45 +02:00
Makefile.modpost kbuild: fix make -rR breakage 2006-06-24 23:13:59 +02:00
makelst
mkcompile_h
mkmakefile kbuild: Do not overwrite makefile as anohter user 2006-05-08 06:55:32 +02:00
mksysmap
mkuboot.sh
mkversion
namespace.pl kbuild: fix mode of checkstack.pl and other files. 2006-04-11 13:37:07 +02:00
patch-kernel
pnmtologo.c
profile2linkerlist.pl [PATCH] x86_64: Basic reorder infrastructure 2006-03-25 09:10:56 -08:00
setlocalversion kbuild: append -dirty for updated but uncommited changes 2006-06-17 00:08:17 +02:00
show_delta kbuild: fix mode of checkstack.pl and other files. 2006-04-11 13:37:07 +02:00
ver_linux ver_linux: don't print reiser4progs version if none found 2006-04-05 13:10:19 +02:00