DPDK patches and discussions
 help / color / mirror / Atom feed
From: Miao Li <miao.li@intel.com>
To: dev@dpdk.org
Cc: david.hunt@intel.com, bruce.richardson@intel.com
Subject: [PATCH v2] examples/l3fwd-power: add wakeup log
Date: Wed, 17 Nov 2021 10:35:31 +0000
Message-ID: <20211117103531.152630-1-miao.li@intel.com> (raw)
In-Reply-To: <20211116130013.146137-1-miao.li@intel.com>

This patch adds a log in main telemetry loop to show the thread has
woken up and begun to send and receive packets.

Signed-off-by: Miao Li <miao.li@intel.com>
---
 examples/l3fwd-power/main.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/examples/l3fwd-power/main.c b/examples/l3fwd-power/main.c
index 6988a0ed34..547785dafb 100644
--- a/examples/l3fwd-power/main.c
+++ b/examples/l3fwd-power/main.c
@@ -1156,6 +1156,9 @@ main_telemetry_loop(__rte_unused void *dummy)
 			ep_nep[nb_rx == 0]++;
 			fp_nfp[nb_rx == MAX_PKT_BURST]++;
 			poll_count++;
+			RTE_LOG(INFO, L3FWD_POWER,
+				"lcore %u has woken up on port %d queue %d\n",
+				rte_lcore_id(), portid, queueid);
 			if (unlikely(nb_rx == 0))
 				continue;
 
-- 
2.25.1


  parent reply	other threads:[~2021-11-17  2:31 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-16 13:00 [PATCH v1] " Miao Li
2021-11-16  9:14 ` David Hunt
2021-11-17 10:35 ` Miao Li [this message]
2021-11-17  8:57   ` [PATCH v2] " David Hunt
2021-11-17  9:53     ` Thomas Monjalon
2021-11-23 15:57   ` [PATCH] examples/power: revert "add wakeup log" David Hunt
2021-11-24 12:17     ` Pattan, Reshma
2021-11-24 13:02       ` Thomas Monjalon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211117103531.152630-1-miao.li@intel.com \
    --to=miao.li@intel.com \
    --cc=bruce.richardson@intel.com \
    --cc=david.hunt@intel.com \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

DPDK patches and discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.dpdk.org/dev/0 dev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dev dev/ http://inbox.dpdk.org/dev \
		dev@dpdk.org
	public-inbox-index dev

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dev


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git