#include <stdint.h>
#include <stdbool.h>
#include <rte_common.h>
#include <rte_string_fns.h>
#include <rte_timer.h>
Go to the source code of this file.
RTE Power Management
Definition in file rte_power_empty_poll.h.
◆ rte_power_empty_poll_stat_init()
__rte_experimental int rte_power_empty_poll_stat_init |
( |
struct ep_params ** |
eptr, |
|
|
uint8_t * |
freq_tlb, |
|
|
struct ep_policy * |
policy |
|
) |
| |
Initialize the power management system.
- Parameters
-
eptr | the structure of empty poll configuration |
freq_tlb | the power state/frequency mapping table |
policy | the initialization policy from sample app |
- Returns
- 0 on success.
- Negative on error.
- Examples:
- examples/l3fwd-power/main.c.
◆ rte_power_empty_poll_stat_free()
__rte_experimental void rte_power_empty_poll_stat_free |
( |
void |
| ) |
|
◆ rte_power_empty_poll_stat_update()
__rte_experimental int rte_power_empty_poll_stat_update |
( |
unsigned int |
lcore_id | ) |
|
Update specific core empty poll counter It's not thread safe.
- Parameters
-
- Returns
- 0 on success.
- Negative on error.
- Examples:
- examples/l3fwd-power/main.c.
◆ rte_power_poll_stat_update()
__rte_experimental int rte_power_poll_stat_update |
( |
unsigned int |
lcore_id, |
|
|
uint8_t |
nb_pkt |
|
) |
| |
Update specific core valid poll counter, not thread safe.
- Parameters
-
lcore_id | lcore id. |
nb_pkt | The packet number of one valid poll. |
- Returns
- 0 on success.
- Negative on error.
- Examples:
- examples/l3fwd-power/main.c.
◆ rte_power_empty_poll_stat_fetch()
__rte_experimental uint64_t rte_power_empty_poll_stat_fetch |
( |
unsigned int |
lcore_id | ) |
|
Fetch specific core empty poll counter.
- Parameters
-
- Returns
- Current lcore empty poll counter value.
◆ rte_power_poll_stat_fetch()
__rte_experimental uint64_t rte_power_poll_stat_fetch |
( |
unsigned int |
lcore_id | ) |
|
Fetch specific core valid poll counter.
- Parameters
-
- Returns
- Current lcore valid poll counter value.
◆ rte_empty_poll_detection()
__rte_experimental void rte_empty_poll_detection |
( |
struct rte_timer * |
tim, |
|
|
void * |
arg |
|
) |
| |
Empty poll state change detection function
- Parameters
-
tim | The timer structure |
arg | The customized parameter |
- Examples:
- examples/l3fwd-power/main.c.