summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorLukasz Krakowiak <lukaszx.krakowiak@intel.com>2019-03-28 17:11:54 +0100
committerThomas Monjalon <thomas@monjalon.net>2019-03-29 23:29:21 +0100
commitd7b713d0dc85234936d85fbbf9014445b1b68efe (patch)
treec5721ccab0364213fbdd1e6ebe842cc88434446f /examples
parent1b897991473fc2fe76a130c527ab0cc93b1ac72a (diff)
downloaddpdk-next-eventdev-d7b713d0dc85234936d85fbbf9014445b1b68efe.zip
dpdk-next-eventdev-d7b713d0dc85234936d85fbbf9014445b1b68efe.tar.gz
dpdk-next-eventdev-d7b713d0dc85234936d85fbbf9014445b1b68efe.tar.xz
power: add some logs on requests
Extend debugs on power instruction and cmd police destroy requests. Signed-off-by: Lukasz Krakowiak <lukaszx.krakowiak@intel.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/vm_power_manager/channel_monitor.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/examples/vm_power_manager/channel_monitor.c b/examples/vm_power_manager/channel_monitor.c
index 22f2eb8..7892d75 100644
--- a/examples/vm_power_manager/channel_monitor.c
+++ b/examples/vm_power_manager/channel_monitor.c
@@ -630,6 +630,8 @@ apply_policy(struct policy *pol)
static int
process_request(struct channel_packet *pkt, struct channel_info *chan_info)
{
+ int ret;
+
if (chan_info == NULL)
return -1;
@@ -645,6 +647,9 @@ process_request(struct channel_packet *pkt, struct channel_info *chan_info)
else
core_num = pkt->resource_id;
+ RTE_LOG(DEBUG, CHANNEL_MONITOR, "Processing requested cmd for cpu:%d\n",
+ core_num);
+
switch (pkt->unit) {
case(CPU_POWER_SCALE_MIN):
power_manager_scale_core_min(core_num);
@@ -677,9 +682,13 @@ process_request(struct channel_packet *pkt, struct channel_info *chan_info)
}
if (pkt->command == PKT_POLICY_REMOVE) {
- RTE_LOG(INFO, CHANNEL_MONITOR,
- "Removing policy %s\n", pkt->vm_name);
- remove_policy(pkt);
+ ret = remove_policy(pkt);
+ if (ret == 0)
+ RTE_LOG(INFO, CHANNEL_MONITOR,
+ "Removed policy %s\n", pkt->vm_name);
+ else
+ RTE_LOG(INFO, CHANNEL_MONITOR,
+ "Policy %s does not exist\n", pkt->vm_name);
}
/*