DPDK  20.11.10
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_compat.h>
11 #include <rte_spinlock.h>
12 
54 __rte_experimental
55 static inline void rte_power_monitor(const volatile void *p,
56  const uint64_t expected_value, const uint64_t value_mask,
57  const uint64_t tsc_timestamp, const uint8_t data_sz);
58 
99 __rte_experimental
100 static inline void rte_power_monitor_sync(const volatile void *p,
101  const uint64_t expected_value, const uint64_t value_mask,
102  const uint64_t tsc_timestamp, const uint8_t data_sz,
103  rte_spinlock_t *lck);
104 
120 __rte_experimental
121 static inline void rte_power_pause(const uint64_t tsc_timestamp);
122 
123 #endif /* _RTE_POWER_INTRINSIC_H_ */
static __rte_experimental void rte_power_monitor(const volatile void *p, const uint64_t expected_value, const uint64_t value_mask, const uint64_t tsc_timestamp, const uint8_t data_sz)
static __rte_experimental void rte_power_pause(const uint64_t tsc_timestamp)
static __rte_experimental void rte_power_monitor_sync(const volatile void *p, const uint64_t expected_value, const uint64_t value_mask, const uint64_t tsc_timestamp, const uint8_t data_sz, rte_spinlock_t *lck)