forked from Qortal/Brooklyn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
407 B
15 lines
407 B
// SPDX-License-Identifier: GPL-2.0 |
|
#include <stdio.h> |
|
#include "util/pmu.h" |
|
#include "util/evlist.h" |
|
#include "util/parse-events.h" |
|
|
|
#define TOPDOWN_L1_EVENTS "{slots,topdown-retiring,topdown-bad-spec,topdown-fe-bound,topdown-be-bound}" |
|
|
|
int arch_evlist__add_default_attrs(struct evlist *evlist) |
|
{ |
|
if (!pmu_have_event("cpu", "slots")) |
|
return 0; |
|
|
|
return parse_events(evlist, TOPDOWN_L1_EVENTS, NULL); |
|
}
|
|
|