Enable performance counter for everything beyond Armv7
This commit is contained in:
committed by
Sebastian Sumpf
parent
14ef3a3a2b
commit
90a76c9592
@@ -40,6 +40,7 @@ public:
|
|||||||
Copro_dbg_model_v6 = 2,
|
Copro_dbg_model_v6 = 2,
|
||||||
Copro_dbg_model_v6_1 = 3,
|
Copro_dbg_model_v6_1 = 3,
|
||||||
Copro_dbg_model_v7 = 4,
|
Copro_dbg_model_v7 = 4,
|
||||||
|
Copro_dbg_model_v7_1 = 5,
|
||||||
};
|
};
|
||||||
|
|
||||||
unsigned copro_dbg_model() const { return _cpu_id._dfr0 & 0xf; }
|
unsigned copro_dbg_model() const { return _cpu_id._dfr0 & 0xf; }
|
||||||
|
|||||||
@@ -261,6 +261,7 @@ Perf_cnt::init_cpu()
|
|||||||
//set_event_type(0, EVENT_EXTMEM_TRANSFER_READ);
|
//set_event_type(0, EVENT_EXTMEM_TRANSFER_READ);
|
||||||
//set_event_type(1, EVENT_EXTMEM_TRANSFER_WRITE);
|
//set_event_type(1, EVENT_EXTMEM_TRANSFER_WRITE);
|
||||||
|
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
set_event_type(3, EVENT_EXTMEM_TRANSFER_READ);
|
set_event_type(3, EVENT_EXTMEM_TRANSFER_READ);
|
||||||
set_event_type(4, EVENT_LINE_MIGRATION);
|
set_event_type(4, EVENT_LINE_MIGRATION);
|
||||||
@@ -296,7 +297,8 @@ int Perf_cnt::_nr_counters;
|
|||||||
PRIVATE static
|
PRIVATE static
|
||||||
bool
|
bool
|
||||||
Perf_cnt::is_avail()
|
Perf_cnt::is_avail()
|
||||||
{ return Cpu::boot_cpu()->copro_dbg_model() == Cpu::Copro_dbg_model_v7; }
|
{ return Cpu::boot_cpu()->copro_dbg_model() == Cpu::Copro_dbg_model_v7 ||
|
||||||
|
Cpu::boot_cpu()->copro_dbg_model() == Cpu::Copro_dbg_model_v7_1; }
|
||||||
|
|
||||||
PRIVATE static
|
PRIVATE static
|
||||||
void
|
void
|
||||||
|
|||||||
Reference in New Issue
Block a user