Sound Open Firmware
Loading...
Searching...
No Matches
perf_cnt_data.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-3-Clause
2 *
3 * Copyright(c) 2019 Intel Corporation. All rights reserved.
4 *
5 * Author: Marcin Maka <marcin.maka@linux.intel.com>
6 */
7
16#ifndef __SOF_LIB_PERF_CNT_DATA_H__
17#define __SOF_LIB_PERF_CNT_DATA_H__
18
19#include <stdint.h>
20
22 /* current platform clock */
23 uint32_t plat_ts;
24 /* current cpu clock */
25 uint32_t cpu_ts;
26 /* one period module cycles */
28 /* period module peak cycles within period_cnt */
30 /* one period module cycles from cpu clock */
32 /* period module peak cycles within period_cnt from cpu clock */
34 /* total cycles within period_cnt */
35 uint32_t cpu_delta_sum;
36 /* accumulate period passed and calculate avg cycles */
37 uint32_t period_cnt;
38 /* indicate which period have peak mcps in current module */
40};
41
42#endif /* __SOF_LIB_PERF_CNT_DATA_H__ */
Definition perf_cnt_data.h:21
uint32_t peak_mcps_period_cnt
Definition perf_cnt_data.h:39
uint32_t cpu_delta_peak
Definition perf_cnt_data.h:33
uint32_t cpu_ts
Definition perf_cnt_data.h:25
uint32_t plat_ts
Definition perf_cnt_data.h:23
uint32_t period_cnt
Definition perf_cnt_data.h:37
uint32_t plat_delta_peak
Definition perf_cnt_data.h:29
uint32_t plat_delta_last
Definition perf_cnt_data.h:27
uint32_t cpu_delta_last
Definition perf_cnt_data.h:31
uint32_t cpu_delta_sum
Definition perf_cnt_data.h:35