diff options
author | Mark Wielaard <mjw@redhat.com> | 2009-07-11 19:59:42 +0200 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2009-07-11 19:59:42 +0200 |
commit | 5a5732e52738b4f00995e705a170230c106885b6 (patch) | |
tree | a694f978686400505c10df4f8020027a25218db1 /stap.1.in | |
parent | 4eb0c58b7d5c97a822e76c9070bc45e9b09a7c9e (diff) | |
download | systemtap-steved-5a5732e52738b4f00995e705a170230c106885b6.tar.gz systemtap-steved-5a5732e52738b4f00995e705a170230c106885b6.tar.xz systemtap-steved-5a5732e52738b4f00995e705a170230c106885b6.zip |
Add -O[0123s] gcc optimization flags for gcc pass 4 speedup.
* session.h (struct systemtap_session): Add gcc_flags string field.
* main.cxx (usage): Document -O[0123s].
(main): Default gcc_flags to -O0. Add O:: to getopt_long. Handle case
'O' to set gcc_flags.
* buildrun.cxx (compile_pass): Add gcc_flags to EXTRA_CFLAGS.
* stap1.in: Add -O[0123s] documentation.
* testsuite/systemtap.base/cache.exp: Add tests for -O[0123s].
Diffstat (limited to 'stap.1.in')
-rw-r--r-- | stap.1.in | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -183,6 +183,13 @@ Send standard output to named file. In bulk mode, percpu files will start with FILE_ (FILE_cpu with -F) followed by the cpu number. This supports strftime(3) formats for FILE. .TP +.BI \-O[0123s] +Optimization to use for C code. Passed to gcc in pass 4. -O is an +alias for -O1, -O0 enables fast compilation, -O1 optimizes the code and +takes a bit more time, -O2 optimizes more and takes more time, -O3 +optimizes even more and takes even more time, -Os optimizes for size, +like -O2 but tuned for small code size. The default is -O0. +.TP .BI \-c " CMD" Start the probes, run CMD, and exit when CMD finishes. .TP |