Hi,
Is it possible to modify DPRINTF in such a way to print the file name (or
file path)?
Currently When I want to find where does this message came from:
1254134000: global: DynInst: [sn:329] Instruction created. Instcount for
system.switch_cpus = 64
I have to grep "Instruction created" which has more than one instance.
It will be more handy if we see:
1254134000: {cpu/base_dyn_inst_impl.hh} global: DynInst: [sn:329]
Instruction created. Instcount for system.switch_cpus = 64
I see that DPRINTF is defined in trace.hh:
#define DPRINTF(x, ...) do { \
using namespace Debug; \
if (DTRACE(x)) \
Trace::dprintf(curTick(), name(), __VA_ARGS__); \
} while (0)
but don't know how to include file path.
Any one know?
--
// Naderan *Mahmood;
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users