[dpdk-dev] Proposal: enable redirection of DPDK logs from the user app

2016-10-05 Thread Olivier Matz
Hi Francesco, On 10/05/2016 03:26 PM, Montorsi, Francesco wrote: > Hi Olivier, > >> On 10/04/2016 02:28 PM, Montorsi, Francesco wrote: >>> Yes, but to be honest, that seems a troublesome solution for something >>> as easy as logging a string; e.g. by using fopencookie() approach, you >>> don't ha

[dpdk-dev] Proposal: enable redirection of DPDK logs from the user app

2016-10-05 Thread Matthew Hall
On Wed, Oct 05, 2016 at 01:26:30PM +, Montorsi, Francesco wrote: > Correct, but in my experience DPDK never creates such a long line of log > message... > > Francesco This comment is fatally flawed. Many of us write our applications using these functions. I have things which hex-dump packe

[dpdk-dev] Proposal: enable redirection of DPDK logs from the user app

2016-10-05 Thread Olivier Matz
Hi Francesco, On 10/04/2016 02:28 PM, Montorsi, Francesco wrote: > Hi Olivier, > >> It seems the mailing list stripped your patch sent as attachment. >> Can you please resend it again in the body of the mail? > You're right sorry. It's attached at the end of this mail. > >> I think we can alrea

[dpdk-dev] Proposal: enable redirection of DPDK logs from the user app

2016-10-05 Thread Montorsi, Francesco
Hi Olivier, > On 10/04/2016 02:28 PM, Montorsi, Francesco wrote: > > Yes, but to be honest, that seems a troublesome solution for something > > as easy as logging a string; e.g. by using fopencookie() approach, you > > don't have the concept of "log message", you just provide a function > > that m

[dpdk-dev] Proposal: enable redirection of DPDK logs from the user app

2016-10-04 Thread Olivier Matz
Hi Francesco, On 10/04/2016 12:24 PM, Montorsi, Francesco wrote: > Hi all, > I've not been following closely latest DPDK activity but my company is using > DPDK and we recently upgraded to 16.07. > We apply several patches to DPDK sources, to make it more similar to a > "standard library" (curr

[dpdk-dev] Proposal: enable redirection of DPDK logs from the user app

2016-10-04 Thread Montorsi, Francesco
Hi Olivier, > It seems the mailing list stripped your patch sent as attachment. > Can you please resend it again in the body of the mail? You're right sorry. It's attached at the end of this mail. > I think we can already redirect logs to a file by using fopencookie() + > rte_openlog_stream(). Di

[dpdk-dev] Proposal: enable redirection of DPDK logs from the user app

2016-10-04 Thread Montorsi, Francesco
Hi all, I've not been following closely latest DPDK activity but my company is using DPDK and we recently upgraded to 16.07. We apply several patches to DPDK sources, to make it more similar to a "standard library" (currently it is quite intrusive: calls abort() at will, writes its own log, etc