#include <rte_cycles.h>
#include <rte_atomic.h>
#include <rte_malloc.h>
+#include <inttypes.h>
#include "rte_power.h"
#include "rte_power_empty_poll.h"
{
RTE_SET_USED(specific_freq);
- char pfi_str[32];
uint64_t p0_empty_deq;
- sprintf(pfi_str, "%02d", freq);
-
if (poll_stats->cur_freq == freq &&
poll_stats->thresh[freq].trained == false) {
if (poll_stats->thresh[freq].cur_train_iter == 0) {
/* edpi mean empty poll counter difference per interval */
RTE_LOG(DEBUG, POWER, "cur_edpi is too large "
- "cur edpi %ld "
- "base edpi %ld\n",
+ "cur edpi %"PRId64" "
+ "base edpi %"PRId64"\n",
cur_edpi,
s->thresh[s->cur_freq].base_edpi);
/* Value to make us fail need debug log*/
enum freq_val cur_freq = poll_stats->cur_freq;
/* edpi mean empty poll counter difference per interval */
- RTE_LOG(DEBUG, POWER, "cure freq is %d, edpi is %lu\n",
+ RTE_LOG(DEBUG, POWER, "cure freq is %d, edpi is %"PRIu64"\n",
cur_freq,
poll_stats->thresh[cur_freq].base_edpi);
return;
set_state(poll_stats, MED_NORMAL);
- RTE_LOG(INFO, POWER, "LOW threshold is %lu\n",
+ RTE_LOG(INFO, POWER, "LOW threshold is %"PRIu64"\n",
poll_stats->thresh[LOW].base_edpi);
- RTE_LOG(INFO, POWER, "MED threshold is %lu\n",
+ RTE_LOG(INFO, POWER, "MED threshold is %"PRIu64"\n",
poll_stats->thresh[MED].base_edpi);
- RTE_LOG(INFO, POWER, "HIGH threshold is %lu\n",
+ RTE_LOG(INFO, POWER, "HIGH threshold is %"PRIu64"\n",
poll_stats->thresh[HGH].base_edpi);
RTE_LOG(INFO, POWER, "Training is Complete for %d\n",
return 0;
}
-void __rte_experimental
+void
rte_empty_poll_detection(struct rte_timer *tim, void *arg)
{
}
-int __rte_experimental
+int
rte_power_empty_poll_stat_init(struct ep_params **eptr, uint8_t *freq_tlb,
struct ep_policy *policy)
{
return 0;
}
-void __rte_experimental
+void
rte_power_empty_poll_stat_free(void)
{
rte_free(ep_params);
}
-int __rte_experimental
+int
rte_power_empty_poll_stat_update(unsigned int lcore_id)
{
struct priority_worker *poll_stats;
return 0;
}
-int __rte_experimental
+int
rte_power_poll_stat_update(unsigned int lcore_id, uint8_t nb_pkt)
{
}
-uint64_t __rte_experimental
+uint64_t
rte_power_empty_poll_stat_fetch(unsigned int lcore_id)
{
struct priority_worker *poll_stats;
return poll_stats->empty_dequeues;
}
-uint64_t __rte_experimental
+uint64_t
rte_power_poll_stat_fetch(unsigned int lcore_id)
{
struct priority_worker *poll_stats;