AccessTraceForAddress.cc (8164:b043c0efa024) AccessTraceForAddress.cc (8165:5955406f7ed0)
1/*
2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
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;

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

53 out << " | " << m_touched_by.count();
54 } else {
55 assert(m_total == 0);
56 out << " " << (*m_histogram_ptr);
57 }
58}
59
60void
1/*
2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
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;

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

53 out << " | " << m_touched_by.count();
54 } else {
55 assert(m_total == 0);
56 out << " " << (*m_histogram_ptr);
57 }
58}
59
60void
61AccessTraceForAddress::update(CacheRequestType type,
61AccessTraceForAddress::update(RubyRequestType type,
62 RubyAccessMode access_mode, NodeID cpu,
63 bool sharing_miss)
64{
65 m_touched_by.add(cpu);
66 m_total++;
62 RubyAccessMode access_mode, NodeID cpu,
63 bool sharing_miss)
64{
65 m_touched_by.add(cpu);
66 m_total++;
67 if(type == CacheRequestType_ATOMIC) {
67 if(type == RubyRequestType_ATOMIC) {
68 m_atomics++;
68 m_atomics++;
69 } else if(type == CacheRequestType_LD){
69 } else if(type == RubyRequestType_LD){
70 m_loads++;
70 m_loads++;
71 } else if (type == CacheRequestType_ST){
71 } else if (type == RubyRequestType_ST){
72 m_stores++;
73 } else {
74 // ERROR_MSG("Trying to add invalid access to trace");
75 }
76
77 if (access_mode == RubyAccessMode_User) {
78 m_user++;
79 }

--- 25 unchanged lines hidden ---
72 m_stores++;
73 } else {
74 // ERROR_MSG("Trying to add invalid access to trace");
75 }
76
77 if (access_mode == RubyAccessMode_User) {
78 m_user++;
79 }

--- 25 unchanged lines hidden ---