Home
last modified time | relevance | path

Searched refs:eventsCfg (Results 1 – 8 of 8) sorted by relevance

/kernel/liteos_a/apps/perf/src/
Dperf.c65 for (i = 1; i < attr->eventsCfg.eventsNr; i++) { in PerfSetPeriod()
66 attr->eventsCfg.events[i].period = attr->eventsCfg.events[0].period; in PerfSetPeriod()
86 printf_debug("attr->type: %d\n", attr->eventsCfg.type); in PerfDumpAttr()
87 for (i = 0; i < attr->eventsCfg.eventsNr; i++) { in PerfDumpAttr()
88 printf_debug("attr->events[%d]: %d, 0x%x\n", i, attr->eventsCfg.events[i].eventId, in PerfDumpAttr()
89 attr->eventsCfg.events[i].period); in PerfDumpAttr()
91 printf_debug("attr->predivided: %d\n", attr->eventsCfg.predivided); in PerfDumpAttr()
Dperf_stat.c43 return ParseEvents(argv, &g_statAttr.eventsCfg, &g_statAttr.eventsCfg.eventsNr); in GetEvents()
60 OPTION_UINT("-p", &g_statAttr.eventsCfg.events[0].period),
62 OPTION_UINT("-d", &g_statAttr.eventsCfg.predivided),
68 .eventsCfg = { in PerfStatAttrInit()
Dperf_record.c51 return ParseEvents(argv, &g_recordAttr.eventsCfg, &g_recordAttr.eventsCfg.eventsNr); in GetEvents()
69 OPTION_UINT("-p", &g_recordAttr.eventsCfg.events[0].period),
71 OPTION_UINT("-d", &g_recordAttr.eventsCfg.predivided),
77 .eventsCfg = { in PerfRecordAttrInit()
Doption.c144 int ParseEvents(const char *argv, PerfEventConfig *eventsCfg, unsigned int *len) in ParseEvents() argument
167 eventsCfg->type = event->type; in ParseEvents()
168 } else if (eventsCfg->type != event->type) { in ParseEvents()
173 eventsCfg->events[index].eventId = event->event; in ParseEvents()
/kernel/liteos_a/kernel/extended/perf/
Dlos_perf.c81 STATIC UINT32 OsPerfConfig(PerfEventConfig *eventsCfg) in OsPerfConfig() argument
86 g_pmu = OsPerfPmuGet(eventsCfg->type); in OsPerfConfig()
88 PRINT_ERR("perf config type error %u!\n", eventsCfg->type); in OsPerfConfig()
92 UINT32 eventNum = MIN(eventsCfg->eventsNr, PERF_MAX_EVENT); in OsPerfConfig()
97 g_pmu->events.per[i].eventId = eventsCfg->events[i].eventId; in OsPerfConfig()
98 g_pmu->events.per[i].period = eventsCfg->events[i].period; in OsPerfConfig()
101 g_pmu->events.cntDivided = eventsCfg->predivided; in OsPerfConfig()
102 g_pmu->type = eventsCfg->type; in OsPerfConfig()
448 ret = OsPerfConfig(&attr->eventsCfg); in LOS_PerfConfig()
/kernel/liteos_a/apps/perf/include/
Doption.h72 int ParseEvents(const char *argv, PerfEventConfig *eventsCfg, unsigned int *len);
Dperf.h138 PerfEventConfig eventsCfg; /* perf event config */ member
/kernel/liteos_a/kernel/include/
Dlos_perf.h268 PerfEventConfig eventsCfg; /* perf event config */ member