DPDK patches and discussions
 help / color / mirror / Atom feed
From: David Marchand <david.marchand@redhat.com>
To: Ferruh Yigit <ferruh.yigit@amd.com>,
	Bruce Richardson <bruce.richardson@intel.com>
Cc: dev@dpdk.org, Thomas Monjalon <thomas@monjalon.net>
Subject: Re: [PATCH v2] app/testpmd: show output of commands read from file
Date: Thu, 10 Oct 2024 10:56:24 +0200	[thread overview]
Message-ID: <CAJFAV8zDv=LAPCVGVn8pJq9Cdz-c5TS0yUeavFH6v_PwTjhfQA@mail.gmail.com> (raw)
In-Reply-To: <5b255af9-b9a3-491a-8d4d-eb6c94b5cee7@amd.com>

Hello Bruce, Ferruh,

On Tue, Oct 8, 2024 at 3:33 AM Ferruh Yigit <ferruh.yigit@amd.com> wrote:
>
> On 10/4/2024 5:56 AM, Ferruh Yigit wrote:
> > On 8/22/2024 11:41 AM, Bruce Richardson wrote:
> >> Testpmd supports the "--cmdline-file" parameter to read a set of initial
> >> commands from a file. However, the only indication that this has been
> >> done successfully on startup is a single-line message, no output from
> >> the commands is seen.
> >>
> >> To improve usability here, we can use cmdline_new rather than
> >> cmdline_file_new and have the output from the various commands sent to
> >> stdout, allowing the user to see better what is happening.
> >>
> >> Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
> >>
> >> ---
> >> v2: use STDOUT_FILENO in place of hard-coded "1"
> >> ---
> >>
> >
> > After discussion, I think it is OK to have the update in the testpmd
> > (instead of a new function in cmdline), hence;
> >
> > Acked-by: Ferruh Yigit <ferruh.yigit@amd.com>
> Applied to dpdk-next-net/main, thanks.

This patch triggers an error in UNH for Windows builds.
Can you have a look?

https://lab.dpdk.org/results/dashboard/testruns/logs/1386705/

[756/833] Compiling C object app/dpdk-testpmd.exe.p/test-pmd_cmdline.c.obj
FAILED: app/dpdk-testpmd.exe.p/test-pmd_cmdline.c.obj
"clang" "-Iapp\dpdk-testpmd.exe.p" "-Iapp" "-I..\app" "-Iapp\test-pmd"
"-I..\app\test-pmd" "-Ilib\ethdev" "-I..\lib\ethdev" "-I." "-I.."
"-Iconfig" "-I..\config" "-Ilib\eal\include" "-I..\lib\eal\include"
"-Ilib\eal\windows\include" "-I..\lib\eal\windows\include"
"-Ilib\eal\x86\include" "-I..\lib\eal\x86\include" "-Ilib\eal\common"
"-I..\lib\eal\common" "-Ilib\eal" "-I..\lib\eal" "-Ilib\log"
"-I..\lib\log" "-Ilib\kvargs" "-I..\lib\kvargs" "-Ilib\net"
"-I..\lib\net" "-Ilib\mbuf" "-I..\lib\mbuf" "-Ilib\mempool"
"-I..\lib\mempool" "-Ilib\ring" "-I..\lib\ring" "-Ilib\metrics"
"-I..\lib\metrics" "-Ilib\telemetry" "-I..\lib\telemetry"
"-Ilib\meter" "-I..\lib\meter" "-Ilib\cmdline" "-I..\lib\cmdline"
"-Ilib\bitratestats" "-I..\lib\bitratestats" "-Ilib\gro"
"-I..\lib\gro" "-Ilib\gso" "-I..\lib\gso" "-Ilib\latencystats"
"-I..\lib\latencystats" "-Idrivers\net\i40e" "-I..\drivers\net\i40e"
"-Idrivers\net\i40e\base" "-I..\drivers\net\i40e\base"
"-Idrivers\bus\pci" "-I..\drivers\bus\pci"
"-I..\drivers\bus\pci\windows" "-Ilib\pci" "-I..\lib\pci"
"-Idrivers\bus\vdev" "-I..\drivers\bus\vdev" "-Ilib\hash"
"-I..\lib\hash" "-Ilib\rcu" "-I..\lib\rcu" "-Idrivers\net\ixgbe"
"-I..\drivers\net\ixgbe" "-Idrivers\net\ixgbe\base"
"-I..\drivers\net\ixgbe\base" "-Ilib\security" "-I..\lib\security"
"-Ilib\cryptodev" "-I..\lib\cryptodev" "-Idrivers\net\iavf"
"-I..\drivers\net\iavf" "-Idrivers\common\iavf"
"-I..\drivers\common\iavf" "-Idrivers\net\ice" "-I..\drivers\net\ice"
"-Idrivers\net\ice\base" "-I..\drivers\net\ice\base"
"-Idrivers\net\mlx5" "-I..\drivers\net\mlx5"
"-Idrivers\net/mlx5\windows" "-I..\drivers\net\mlx5\windows"
"-Idrivers\common\mlx5" "-I..\drivers\common\mlx5"
"-Idrivers\common/mlx5\windows" "-I..\drivers\common\mlx5\windows"
"-Idrivers\bus\auxiliary" "-I..\drivers\bus\auxiliary" "-IC:\Program
Files\Mellanox\MLNX_WinOF2_DevX_SDK\inc" "-Xclang"
"-fcolor-diagnostics" "-pipe" "-D_FILE_OFFSET_BITS=64" "-Wall"
"-Winvalid-pch" "-Wextra" "-Werror" "-std=c11" "-O3" "-include"
"rte_config.h" "-Wcast-qual" "-Wdeprecated" "-Wformat"
"-Wformat-nonliteral" "-Wformat-security" "-Wmissing-declarations"
"-Wmissing-prototypes" "-Wnested-externs" "-Wold-style-definition"
"-Wpointer-arith" "-Wsign-compare" "-Wstrict-prototypes" "-Wundef"
"-Wwrite-strings" "-Wno-address-of-packed-member"
"-Wno-missing-field-initializers" "-D_GNU_SOURCE"
"-D_WIN32_WINNT=0x0A00" "-D_CRT_SECURE_NO_WARNINGS" "-march=native"
"-mrtm" "-DALLOW_EXPERIMENTAL_API" "-Wno-deprecated-declarations" -MD
-MQ app/dpdk-testpmd.exe.p/test-pmd_cmdline.c.obj -MF
"app\dpdk-testpmd.exe.p\test-pmd_cmdline.c.obj.d" -o
app/dpdk-testpmd.exe.p/test-pmd_cmdline.c.obj "-c"
../app/test-pmd/cmdline.c
../app/test-pmd/cmdline.c:13692:46: error: use of undeclared
identifier 'STDOUT_FILENO'
        cl = cmdline_new(main_ctx, "testpmd> ", fd, STDOUT_FILENO);
                                                    ^
1 error generated.


-- 
David Marchand


  reply	other threads:[~2024-10-10  8:56 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-22 10:36 [PATCH] " Bruce Richardson
2024-08-22 10:41 ` [PATCH v2] " Bruce Richardson
2024-08-22 16:53   ` Ferruh Yigit
2024-08-22 17:14     ` Bruce Richardson
2024-08-22 17:18       ` Bruce Richardson
2024-08-22 21:09         ` Ferruh Yigit
2024-08-23  9:12           ` Bruce Richardson
2024-10-04  4:56   ` Ferruh Yigit
2024-10-08  1:33     ` Ferruh Yigit
2024-10-10  8:56       ` David Marchand [this message]
2024-10-10  9:46         ` Bruce Richardson
2024-10-04  4:55 ` [PATCH] " Ferruh Yigit
2024-10-04  4:56   ` Ferruh Yigit

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='CAJFAV8zDv=LAPCVGVn8pJq9Cdz-c5TS0yUeavFH6v_PwTjhfQA@mail.gmail.com' \
    --to=david.marchand@redhat.com \
    --cc=bruce.richardson@intel.com \
    --cc=dev@dpdk.org \
    --cc=ferruh.yigit@amd.com \
    --cc=thomas@monjalon.net \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).