DPDK
25.11.0
Toggle main menu visibility
Loading...
Searching...
No Matches
rte_power_intrinsics.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: BSD-3-Clause
2
* Copyright(c) 2020 Intel Corporation
3
*/
4
5
#ifndef _RTE_POWER_INTRINSIC_H_
6
#define _RTE_POWER_INTRINSIC_H_
7
8
#include <inttypes.h>
9
10
#include <
rte_spinlock.h
>
11
12
#ifdef __cplusplus
13
extern
"C"
{
14
#endif
15
23
25
#define RTE_POWER_MONITOR_OPAQUE_SZ 4
26
41
typedef
int (*
rte_power_monitor_clb_t
)(
const
uint64_t val,
42
const
uint64_t opaque[
RTE_POWER_MONITOR_OPAQUE_SZ
]);
43
44
struct
rte_power_monitor_cond {
45
volatile
void
*addr;
46
uint8_t size;
51
rte_power_monitor_clb_t
fn;
55
uint64_t opaque[
RTE_POWER_MONITOR_OPAQUE_SZ
];
57
};
58
87
int
rte_power_monitor
(
const
struct
rte_power_monitor_cond *pmc,
88
const
uint64_t tsc_timestamp);
89
103
int
rte_power_monitor_wakeup
(
const
unsigned
int
lcore_id);
104
121
int
rte_power_pause
(
const
uint64_t tsc_timestamp);
122
151
int
rte_power_monitor_multi
(
const
struct
rte_power_monitor_cond pmc[],
152
const
uint32_t num,
const
uint64_t tsc_timestamp);
153
154
#ifdef __cplusplus
155
}
156
#endif
157
158
#endif
/* _RTE_POWER_INTRINSIC_H_ */
rte_power_monitor_clb_t
int(* rte_power_monitor_clb_t)(const uint64_t val, const uint64_t opaque[RTE_POWER_MONITOR_OPAQUE_SZ])
Definition
rte_power_intrinsics.h:41
rte_power_pause
int rte_power_pause(const uint64_t tsc_timestamp)
rte_power_monitor_multi
int rte_power_monitor_multi(const struct rte_power_monitor_cond pmc[], const uint32_t num, const uint64_t tsc_timestamp)
rte_power_monitor
int rte_power_monitor(const struct rte_power_monitor_cond *pmc, const uint64_t tsc_timestamp)
rte_power_monitor_wakeup
int rte_power_monitor_wakeup(const unsigned int lcore_id)
RTE_POWER_MONITOR_OPAQUE_SZ
#define RTE_POWER_MONITOR_OPAQUE_SZ
Definition
rte_power_intrinsics.h:25
rte_spinlock.h
lib
eal
include
generic
rte_power_intrinsics.h
Generated by
1.17.0