pmu.cc (10461:afeb5cdb3907) pmu.cc (10537:47fe87b0cf97)
1/*
2 * Copyright (c) 2011-2014 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

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

90{
91 DPRINTF(PMUVerbose, "PMU: Adding event type '0x%x' as probe %s:%s\n",
92 id, obj->name(), probe_name);
93 pmuEventTypes.insert(std::make_pair(id, EventType(obj, probe_name)));
94
95 // Flag the event as available in the PMCEID register if it is an
96 // architected event.
97 if (id < 0x40)
1/*
2 * Copyright (c) 2011-2014 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

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

90{
91 DPRINTF(PMUVerbose, "PMU: Adding event type '0x%x' as probe %s:%s\n",
92 id, obj->name(), probe_name);
93 pmuEventTypes.insert(std::make_pair(id, EventType(obj, probe_name)));
94
95 // Flag the event as available in the PMCEID register if it is an
96 // architected event.
97 if (id < 0x40)
98 reg_pmceid |= (1 << id);
98 reg_pmceid |= (ULL(1) << id);
99}
100
101void
102PMU::drainResume()
103{
104 // Re-attach enabled counters after a resume in case they changed.
105 updateAllCounters();
106}

--- 453 unchanged lines hidden ---
99}
100
101void
102PMU::drainResume()
103{
104 // Re-attach enabled counters after a resume in case they changed.
105 updateAllCounters();
106}

--- 453 unchanged lines hidden ---