If there is a fixed number of packets you could put a m5 work begin operation 
after each is successfully transmitted and terminate once the work begin count 
exceeds a certain number. The functionality to terminate the simulation is a 
parameter on the System object (work_begin_exit_count), but you'd need to 
modify the kernel.

Ali



On Jun 16, 2012, at 1:55 PM, Pritha Ghoshal wrote:

> Hi, 
> 
> I am running a network trace of packets through gem5 and want to terminate it 
> once the trace is over.. There are two network interfaces, and the kernel 
> routes the packet from one interface to the other.. The simulation should 
> terminate only when the last packet has been transmitted from the outgoing 
> interface. 
> 
> Could someone suggest about a method to do this? I might get the packets out 
> of order, so just putting an end packet after the entire trace will not 
> work.. I don't have a separate benchmark code, the functioning is inside the 
> linux kernel. 
> 
> 
> Thanks,
> Pritha
> _______________________________________________
> gem5-users mailing list
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to