Difference: DTTAlgorithm (3 vs. 4)

Revision 42008-01-22 - TongxinBai

Line: 1 to 1
 
META TOPICPARENT name="GccVersion4_1_0"

Dependence Tracing Algorithm

-- TongxinBai - 21 Jan 2008
Added:
>
>
 The profiling tool is built upon a compile-time instrumentation framework and a separate tool file that contains the realizations of the instrumented functions.

Instrumentation

Line: 27 to 30
 
void _bop_prof_rec_write (unsigned long addr, int sketch_p, char *file_name, int line) {
   update_pseudo_time ();
Changed:
<
<
if (sketch_p) update_frozen_time ();
>
>
if (sketch_p) { update_frozen_time (); update_toplev_location (file_name, line); }
  update_write (addr, file_name, line); }
Line: 35 to 41
 
void _bop_prof_rec_read (unsigned long addr, int sketch_p, char *file_name, int line) {
   update_pseudo_time ();
Changed:
<
<
if (sketch_p) update_fronzen_time ();
>
>
if (sketch_p) { update_fronzen_time (); update_toplev_location (); }
  w = lookup_write (addr); if (w) return; /* not a function level dependence. ignore.
Line: 43 to 52
  Frozen time only increments in DETAIL mode */ if (w->frozen_time == current_frozen_time) return;
Changed:
<
<
output_dependence ();
>
>
output_dependence (...);
 } recording function entry
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding URCS? Send feedback