events.cc (4424:9034cc0615be) | events.cc (4429:74351f86f49a) |
---|---|
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 | 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> |
|
40 41namespace Linux { 42 43void 44DebugPrintkEvent::process(ThreadContext *tc) 45{ 46 if (DTRACE(DebugPrintf)) { | 41 42namespace Linux { 43 44void 45DebugPrintkEvent::process(ThreadContext *tc) 46{ 47 if (DTRACE(DebugPrintf)) { |
47 if (!raw) { 48 StringWrap name(tc->getSystemPtr()->name() + ".dprintk"); 49 DPRINTFN(""); 50 } 51 | 48 std::stringstream ss; |
52 TheISA::Arguments args(tc); | 49 TheISA::Arguments args(tc); |
53 Printk(args); | 50 Printk(ss, args); 51 StringWrap name(tc->getSystemPtr()->name() + ".dprintk"); 52 DPRINTFN("%s", ss.str()); |
54 } 55 SkipFuncEvent::process(tc); 56} 57 58} // namespace linux | 53 } 54 SkipFuncEvent::process(tc); 55} 56 57} // namespace linux |