1/* 2 * Copyright (c) 2004-2006 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 23 unchanged lines hidden (view full) --- 32#include "arch/arguments.hh" 33#include "base/trace.hh" 34#include "cpu/thread_context.hh" 35#include "kern/linux/events.hh" 36#include "kern/linux/printk.hh" 37#include "kern/system_events.hh" 38#include "sim/system.hh" 39 |
40#include <sstream> |
41 42namespace Linux { 43 44void 45DebugPrintkEvent::process(ThreadContext *tc) 46{ 47 if (DTRACE(DebugPrintf)) { |
48 std::stringstream ss; |
49 TheISA::Arguments args(tc); |
50 Printk(ss, args); 51 StringWrap name(tc->getSystemPtr()->name() + ".dprintk"); 52 DPRINTFN("%s", ss.str()); |
53 } 54 SkipFuncEvent::process(tc); 55} 56 57} // namespace linux |