diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/bloat-o-meter | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/scripts/bloat-o-meter b/scripts/bloat-o-meter index 6db2a5e58..cb861b8e9 100755 --- a/scripts/bloat-o-meter +++ b/scripts/bloat-o-meter | |||
@@ -7,11 +7,14 @@ | |||
7 | # This software may be used and distributed according to the terms | 7 | # This software may be used and distributed according to the terms |
8 | # of the GNU General Public License, incorporated herein by reference. | 8 | # of the GNU General Public License, incorporated herein by reference. |
9 | 9 | ||
10 | import sys, os#, re | 10 | import sys, os |
11 | 11 | ||
12 | def usage(): | 12 | def usage(): |
13 | sys.stderr.write("usage: %s [-t] file1 file2\n" % sys.argv[0]) | 13 | sys.stderr.write("usage: %s [-t] file1 file2 [-- <readelf options>]\n" |
14 | sys.exit(-1) | 14 | % sys.argv[0]) |
15 | sys.stderr.write("\t-t\tShow time spent on parsing/processing\n") | ||
16 | sys.stderr.write("\t--\tPass additional parameters to readelf\n") | ||
17 | sys.exit(1) | ||
15 | 18 | ||
16 | f1, f2 = (None, None) | 19 | f1, f2 = (None, None) |
17 | flag_timing, dashes = (False, False) | 20 | flag_timing, dashes = (False, False) |
@@ -31,6 +34,8 @@ for f in sys.argv[1:]: | |||
31 | f1 = f | 34 | f1 = f |
32 | elif f2 is None: | 35 | elif f2 is None: |
33 | f2 = f | 36 | f2 = f |
37 | else: | ||
38 | usage() | ||
34 | if flag_timing: | 39 | if flag_timing: |
35 | import time | 40 | import time |
36 | if f1 is None or f2 is None: | 41 | if f1 is None or f2 is None: |