AccessTraceForAddress.cc (7455:586f99bf0dc4) AccessTraceForAddress.cc (8164:b043c0efa024)
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;

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

54 } else {
55 assert(m_total == 0);
56 out << " " << (*m_histogram_ptr);
57 }
58}
59
60void
61AccessTraceForAddress::update(CacheRequestType type,
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;

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

54 } else {
55 assert(m_total == 0);
56 out << " " << (*m_histogram_ptr);
57 }
58}
59
60void
61AccessTraceForAddress::update(CacheRequestType type,
62 AccessModeType access_mode, NodeID cpu,
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) {
68 m_atomics++;
69 } else if(type == CacheRequestType_LD){
70 m_loads++;
71 } else if (type == CacheRequestType_ST){
72 m_stores++;
73 } else {
74 // ERROR_MSG("Trying to add invalid access to trace");
75 }
76
63 bool sharing_miss)
64{
65 m_touched_by.add(cpu);
66 m_total++;
67 if(type == CacheRequestType_ATOMIC) {
68 m_atomics++;
69 } else if(type == CacheRequestType_LD){
70 m_loads++;
71 } else if (type == CacheRequestType_ST){
72 m_stores++;
73 } else {
74 // ERROR_MSG("Trying to add invalid access to trace");
75 }
76
77 if (access_mode == AccessModeType_UserMode) {
77 if (access_mode == RubyAccessMode_User) {
78 m_user++;
79 }
80
81 if (sharing_miss) {
82 m_sharing++;
83 }
84}
85

--- 19 unchanged lines hidden ---
78 m_user++;
79 }
80
81 if (sharing_miss) {
82 m_sharing++;
83 }
84}
85

--- 19 unchanged lines hidden ---