There is a listing of Ruby's source files in the Makefile... you will
need to add your file (probably DumpStatsTimer.C) to that list. 
 
Regards, 
Dan 
 
Lide Duan wrote:
Hi, 
   
I intend to dump the stats when running ruby every xxxxx ruby cycles. I
added a new module (DumpStatsTimer) to the system to do so. What I have
done:  
1. Created DumpStatsTimer.[h, C]. This new module derived from
Consumer, and its wakeup function was modified to dump and clear stats,
and also call "g_eventQueue_ptr->scheduleEvent(this,
m_timer_period);" to trigger itself every a period of time.
   
2. Declared "DumpStatsTimer* m_dumpstatstimer_ptr;" in System.h. 
3. In System.C, instantiated the object in System::System():
"m_dumpstatstimer_ptr = new DumpStatsTimer(1000);" 
   
However, the following error occurs when compiling ruby:
   
   
x86-linux/generated/MOESI_CMP_directory/obj/System.o: In function
`System': 
system/System.C:132: undefined reference to
`DumpStatsTimer::DumpStatsTimer(int)' 
system/System.C:132: undefined reference to
`DumpStatsTimer::DumpStatsTimer(int)'
   
collect2: ld returned 1 exit status 
make[1]: *** [x86-linux/generated/MOESI_CMP_directory/bin/tester.exec]
Error 1 
make[1]: Leaving directory `/home/duan/GEMS1.3.1/ruby' 
make: *** [all] Error 2 
   
Seems that the system still does not recognize the new module. Is there
anything I should do to make the system to see it?
   
   
Thanks, 
Lide 
   
  
 
_______________________________________________
Gems-users mailing list
Gems-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/gems-users
Use Google to search the GEMS Users mailing list by adding "site:https://lists.cs.wisc.edu/archive/gems-users/" to your search.
   
 
 |   
 |