gprof default_excluded_list patch (old)

Ben Elliston bje@au1.ibm.com
Tue Jul 13 01:49:00 GMT 2004


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);
 



More information about the Binutils mailing list