system.cc (11321:02e930db812d) system.cc (11359:b0b976a1ceda)
1/*
2 * Copyright (c) 2010-2013 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 290 unchanged lines hidden (view full) ---

299
300 // Create a new unique identifier for this pid
301 sys->mapPid(tc, pid);
302
303 // Set cpu task id, output process info, and dump stats
304 tc->getCpuPtr()->taskId(taskMap[pid]);
305 tc->getCpuPtr()->setPid(pid);
306
1/*
2 * Copyright (c) 2010-2013 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 290 unchanged lines hidden (view full) ---

299
300 // Create a new unique identifier for this pid
301 sys->mapPid(tc, pid);
302
303 // Set cpu task id, output process info, and dump stats
304 tc->getCpuPtr()->taskId(taskMap[pid]);
305 tc->getCpuPtr()->setPid(pid);
306
307 std::ostream* taskFile = sys->taskFile;
307 OutputStream* taskFile = sys->taskFile;
308
309 // Task file is read by cache occupancy plotting script or
310 // Streamline conversion script.
308
309 // Task file is read by cache occupancy plotting script or
310 // Streamline conversion script.
311 ccprintf(*taskFile,
311 ccprintf(*(taskFile->stream()),
312 "tick=%lld %d cpu_id=%d next_pid=%d next_tgid=%d next_task=%s\n",
313 curTick(), taskMap[pid], tc->cpuId(), (int) pid, (int) tgid,
314 next_task_str);
312 "tick=%lld %d cpu_id=%d next_pid=%d next_tgid=%d next_task=%s\n",
313 curTick(), taskMap[pid], tc->cpuId(), (int) pid, (int) tgid,
314 next_task_str);
315 taskFile->flush();
315 taskFile->stream()->flush();
316
317 // Dump and reset statistics
318 Stats::schedStatEvent(true, true, curTick(), 0);
319}
320
316
317 // Dump and reset statistics
318 Stats::schedStatEvent(true, true, curTick(), 0);
319}
320