DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] Proposal: enable redirection of DPDK logs from the user app
@ 2016-10-04 10:24 Montorsi, Francesco
  2016-10-04 11:26 ` Olivier Matz
  0 siblings, 1 reply; 7+ messages in thread
From: Montorsi, Francesco @ 2016-10-04 10:24 UTC (permalink / raw)
  To: dev

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 etc)... I think that it may be useful to give back to the community some of these (small) "enhancements".

One of them is about logging: as the application where we embed DPDK already has its log file, we want DPDK to log in our log facility framework. 
My "fix" is simple: I just put a callback function in RTE logging system that, by default, points to the existing rte_vlog() function. If needed the library user can provide its own callback function to do what he likes.

The attached patch is what we use right now. I totally understand it needs some rework to put it in a better shape... but first of all: are you interested in such patch? 

Thanks,
Francesco Montorsi

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

end of thread, other threads:[~2016-10-05 21:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-04 10:24 [dpdk-dev] Proposal: enable redirection of DPDK logs from the user app Montorsi, Francesco
2016-10-04 11:26 ` Olivier Matz
2016-10-04 12:28   ` Montorsi, Francesco
2016-10-05 12:18     ` Olivier Matz
2016-10-05 13:26       ` Montorsi, Francesco
2016-10-05 14:03         ` Olivier Matz
2016-10-05 21:22         ` Matthew Hall

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