This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]