]> sourceware.org Git - systemtap.git/commit
Use 'static' as much as possible
authorJosh Stone <jistone@redhat.com>
Wed, 28 Jan 2009 22:36:08 +0000 (14:36 -0800)
committerJosh Stone <jistone@redhat.com>
Thu, 29 Jan 2009 01:16:50 +0000 (17:16 -0800)
commit4c2732a1dad1de295c9219ee3afac007b2d7ba05
treefb84977ad73f62ce57a147e9c3d6bf869376737c
parent83e08fc5458e8196d5f0ed5790f9f7de77a80bb6
Use 'static' as much as possible

This change just inserts 'static' on runtime, tapset, and generated C
functions and globals, so the compiler can do a better job of
optimizing.

My tests with small scripts show ~10% reduction in compile time and ~20%
reduction in module size.  Larger scripts may show less benefit, but I
expect purely positive results.
42 files changed:
runtime/addr-map.c
runtime/alloc.c
runtime/arith.c
runtime/copy.c
runtime/counter.c
runtime/debug.h
runtime/io.c
runtime/itrace.c
runtime/map-gen.c
runtime/map.c
runtime/map.h
runtime/perf.c
runtime/perf.h
runtime/pmap-gen.c
runtime/print.c
runtime/print_new.c
runtime/procfs.c
runtime/regs.c
runtime/runtime.h
runtime/stack.c
runtime/stat.c
runtime/string.c
runtime/string.h
runtime/sym.c
runtime/sym.h
runtime/task_finder.c
runtime/time.c
runtime/transport/control.c
runtime/transport/relayfs.c
runtime/transport/relayfs.h
runtime/transport/symbols.c
runtime/transport/transport.c
runtime/transport/transport.h
runtime/transport/utt.c
runtime/transport/utt.h
runtime/unwind.c
runtime/vsprintf.c
tapset/aux_syscalls.stp
tapset/errno.stp
tapset/nfs_proc.stp
tapsets.cxx
translate.cxx
This page took 0.038866 seconds and 5 git commands to generate.