This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
gprof default_excluded_list patch (old)
- From: Ben Elliston <bje at au1 dot ibm dot com>
- To: binutils at sources dot redhat dot com
- Date: 13 Jul 2004 11:50:19 +1000
- Subject: gprof default_excluded_list patch (old)
I've finally got around to testing this patch. I've tested it by
profiling GNU tar using gprof --line (with and without the appended
patch) and there were no differences in the output.
Okay for mainline?
2004-07-13 Ben Elliston <bje@au.ibm.com>
* gprof.c (main): For line-by-line profiling, there is no need to
specially exclude the default function set from the flat profile.
Index: gprof.c
===================================================================
RCS file: /cvs/src/src/gprof/gprof.c,v
retrieving revision 1.20
diff -u -r1.20 gprof.c
--- gprof.c 26 May 2004 05:56:22 -0000 1.20
+++ gprof.c 13 Jul 2004 01:49:00 -0000
@@ -502,14 +502,6 @@
sym_id_add (*sp, EXCL_FLAT);
}
- /*
- * For line-by-line profiling, also want to keep those
- * functions off the flat profile:
- */
- if (line_granularity)
- for (sp = &default_excluded_list[0]; *sp; sp++)
- sym_id_add (*sp, EXCL_FLAT);
-
/* Read symbol table from core file. */
core_init (a_out_name);