pmu.cc (13581:b6dcd0183747) pmu.cc (13637:503ee472c371)
1/*
1/*
2 * Copyright (c) 2011-2014, 2017-2018 ARM Limited
2 * Copyright (c) 2011-2014, 2017-2019 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
9 * licensed hereunder. You may use the software subject to the license
10 * terms below provided that you ensure that this notice is replicated

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

527 debugCounter("detaching event not currently attached"
528 " to any event\n");
529 }
530}
531
532void
533PMU::CounterState::attach(PMUEvent* event)
534{
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
9 * licensed hereunder. You may use the software subject to the license
10 * terms below provided that you ensure that this notice is replicated

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

527 debugCounter("detaching event not currently attached"
528 " to any event\n");
529 }
530}
531
532void
533PMU::CounterState::attach(PMUEvent* event)
534{
535 value = 0;
535 if (!resetValue) {
536 value = 0;
537 resetValue = true;
538 }
536 sourceEvent = event;
537 sourceEvent->attachEvent(this);
538}
539
540uint64_t
541PMU::CounterState::getValue() const
542{
543 if (sourceEvent) {

--- 271 unchanged lines hidden ---
539 sourceEvent = event;
540 sourceEvent->attachEvent(this);
541}
542
543uint64_t
544PMU::CounterState::getValue() const
545{
546 if (sourceEvent) {

--- 271 unchanged lines hidden ---