1/* 2 * Copyright 2017, Data61 3 * Commonwealth Scientific and Industrial Research Organisation (CSIRO) 4 * ABN 41 687 119 230. 5 * 6 * This software may be distributed and modified according to the terms of 7 * the BSD 2-Clause license. Note that NO WARRANTY is provided. 8 * See "LICENSE_BSD2.txt" for details. 9 * 10 * @TAG(DATA61_BSD) 11 */ 12 13#include "../../event_counters.h" 14 15const char* const sel4bench_cpu_event_counter_data[] = { 16 NAME_EVENT(BUS_ACCESS_LD , "Bus access, read"), 17 NAME_EVENT(BUS_ACCESS_ST , "Bus access, write"), 18 NAME_EVENT(BR_INDIRECT_SPEC , "Branch speculatively executed, indirect branch"), 19 NAME_EVENT(EXC_IRQ , "Exception taken, IRQ"), 20 NAME_EVENT(EXC_FIQ , "Exception taken, FIQ") 21}; 22 23int 24sel4bench_cpu_get_num_counters(void) 25{ 26 return ARRAY_SIZE(sel4bench_cpu_event_counter_data); 27} 28