DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] No telemetry legacy support print
@ 2020-05-22  7:14 Jerin Kollanukkaran
  2020-05-22  7:47 ` David Marchand
  0 siblings, 1 reply; 4+ messages in thread
From: Jerin Kollanukkaran @ 2020-05-22  7:14 UTC (permalink / raw)
  To: Richardson, Bruce, ciara.power, keith.wiles, david.marchand,
	Thomas Monjalon
  Cc: dpdk-dev

"No telemetry legacy support " prints pops up on all the default dpdk applications now.
Is it worth to print? Since it using direct 'printf', we cannot even disable through dynamic logging.
Is possible to remove that print at least, if non legacy telemetry init is successful. 
Thoughts?



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-dev] No telemetry legacy support print
  2020-05-22  7:14 [dpdk-dev] No telemetry legacy support print Jerin Kollanukkaran
@ 2020-05-22  7:47 ` David Marchand
  2020-05-22  8:14   ` Thomas Monjalon
  2020-05-22  9:55   ` Power, Ciara
  0 siblings, 2 replies; 4+ messages in thread
From: David Marchand @ 2020-05-22  7:47 UTC (permalink / raw)
  To: Jerin Kollanukkaran, Richardson, Bruce, ciara.power
  Cc: keith.wiles, Thomas Monjalon, dpdk-dev

On Fri, May 22, 2020 at 9:15 AM Jerin Kollanukkaran <jerinj@marvell.com> wrote:
>
> "No telemetry legacy support " prints pops up on all the default dpdk applications now.
> Is it worth to print? Since it using direct 'printf', we cannot even disable through dynamic logging.
> Is possible to remove that print at least, if non legacy telemetry init is successful.
> Thoughts?

This init function is odd as it calls printf in error and warning
cases and sets an error string when it succeeds.
Let's remove the two printf in this init function.

If we really care about the warning message, we have to initialise
*err_str to NULL (+ this must be described in the function prototype).
In EAL init, we can then add a rte_eal_init_alert with the error
string when telemetry init fails and maybe a warning message if
err_str != NULL.


-- 
David Marchand


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-dev] No telemetry legacy support print
  2020-05-22  7:47 ` David Marchand
@ 2020-05-22  8:14   ` Thomas Monjalon
  2020-05-22  9:55   ` Power, Ciara
  1 sibling, 0 replies; 4+ messages in thread
From: Thomas Monjalon @ 2020-05-22  8:14 UTC (permalink / raw)
  To: Jerin Kollanukkaran, Richardson, Bruce, ciara.power
  Cc: David Marchand, keith.wiles, dpdk-dev

22/05/2020 09:47, David Marchand:
> On Fri, May 22, 2020 at 9:15 AM Jerin Kollanukkaran <jerinj@marvell.com> wrote:
> >
> > "No telemetry legacy support " prints pops up on all the default dpdk applications now.
> > Is it worth to print? Since it using direct 'printf', we cannot even disable through dynamic logging.
> > Is possible to remove that print at least, if non legacy telemetry init is successful.
> > Thoughts?
> 
> This init function is odd as it calls printf in error and warning
> cases and sets an error string when it succeeds.
> Let's remove the two printf in this init function.
> 
> If we really care about the warning message, we have to initialise
> *err_str to NULL (+ this must be described in the function prototype).
> In EAL init, we can then add a rte_eal_init_alert with the error
> string when telemetry init fails and maybe a warning message if
> err_str != NULL.

There are 5 printf in telemetry.
The definitive fix should be to split EAL:
- 1 low-level layer offering arch and OS support, including early logs.
- 1 high-level layer including configuration parsing and rte_eal_init().



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-dev] No telemetry legacy support print
  2020-05-22  7:47 ` David Marchand
  2020-05-22  8:14   ` Thomas Monjalon
@ 2020-05-22  9:55   ` Power, Ciara
  1 sibling, 0 replies; 4+ messages in thread
From: Power, Ciara @ 2020-05-22  9:55 UTC (permalink / raw)
  To: David Marchand, Jerin Kollanukkaran, Richardson, Bruce
  Cc: Wiles, Keith, Thomas Monjalon, dpdk-dev




>-----Original Message-----
>From: David Marchand <david.marchand@redhat.com>
>Sent: Friday 22 May 2020 08:47
>To: Jerin Kollanukkaran <jerinj@marvell.com>; Richardson, Bruce
><bruce.richardson@intel.com>; Power, Ciara <ciara.power@intel.com>
>Cc: Wiles, Keith <keith.wiles@intel.com>; Thomas Monjalon
><thomas@monjalon.net>; dpdk-dev <dev@dpdk.org>
>Subject: Re: No telemetry legacy support print
>
>On Fri, May 22, 2020 at 9:15 AM Jerin Kollanukkaran <jerinj@marvell.com>
>wrote:
>>
>> "No telemetry legacy support " prints pops up on all the default dpdk
>applications now.
>> Is it worth to print? Since it using direct 'printf', we cannot even disable
>through dynamic logging.
>> Is possible to remove that print at least, if non legacy telemetry init is
>successful.
>> Thoughts?
>
>This init function is odd as it calls printf in error and warning cases and sets an
>error string when it succeeds.
>Let's remove the two printf in this init function.
>
>If we really care about the warning message, we have to initialise *err_str to
>NULL (+ this must be described in the function prototype).
>In EAL init, we can then add a rte_eal_init_alert with the error string when
>telemetry init fails and maybe a warning message if err_str != NULL.
>
>
>--
>David Marchand


I agree with this solution, I can work on getting a patch done to fix this.
Thanks!

- Ciara

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-05-22  9:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-22  7:14 [dpdk-dev] No telemetry legacy support print Jerin Kollanukkaran
2020-05-22  7:47 ` David Marchand
2020-05-22  8:14   ` Thomas Monjalon
2020-05-22  9:55   ` Power, Ciara

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).