This module contains APIs to program and use the PMU module. The APIs can be used by other drivers to get access to PMU and also by application to initiate data transfer operation.
|
file | pmu.h |
| PMU Driver API/interface file.
|
|
◆ PMU_init()
Function to initialize the PMU for profiling.
- Parameters
-
- Returns
- SystemP_SUCCESS if command read was successful; else error on failure
◆ PMU_profileStart()
int32_t PMU_profileStart |
( |
const char * |
name | ) |
|
Function to start profiling with the current configuration.
- Parameters
-
name | Name of the profile point. Should be a const char * |
- Returns
- SystemP_SUCCESS if command read was successful; else error on failure
◆ PMU_profileEnd()
int32_t PMU_profileEnd |
( |
const char * |
name | ) |
|
Function to end profiling with the current configuration.
Make sure that a PMU_profileStart is called with the same name before this is invoked.
- Parameters
-
name | Name of the profile point. Should be a const char * |
- Returns
- SystemP_SUCCESS if command read was successful; else error on failure
◆ PMU_profilePrintEntry()
void PMU_profilePrintEntry |
( |
const char * |
name | ) |
|
Function to print the profiling stats for a particular profiling point.
This has to be called after PMU_profileEnd is called for the point
- Parameters
-
name | Name of the profile point. Should be a const char * |
◆ PMU_profilePrint()
void PMU_profilePrint |
( |
void |
| ) |
|
Function to print the profiling stats for all the points done till now.
This has to be called after PMU_profileEnd is called for at least one point.