Re: [vpp-dev] Elog binary file format

2018-10-10 Thread Dave Barach via Lists.Fd.Io
ubject: Re: [vpp-dev] Elog binary file format Hi Florin, Thank you very much! It works now. 1) Why you use such big memory size value (256 << 20) in clib_mem_init_thread_safe ? Maybe we must to calculate the required size? sizeof(elog_main_t) + elog_file_size ? 2) I've calculate start ti

Re: [vpp-dev] Elog binary file format

2018-10-10 Thread Aleksander Djuric
Hi Florin, Thank you very much! It works now. 1) Why you use such big memory size value (256 << 20) in clib_mem_init_thread_safe ? Maybe we must to calculate the required size? sizeof(elog_main_t) + elog_file_size ? 2) I've calculate start time of a log from init_time: elog_main_t *em = _main;

Re: [vpp-dev] Elog binary file format

2018-10-09 Thread Florin Coras
As for the crash, try right at the start of your main: clib_mem_init_thread_safe (0, 256 << 20) Florin > On Oct 9, 2018, at 4:55 AM, Aleksander Djuric > wrote: > > Correction: I've found all of unserialize_* functions. Trying to understand.. > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive

Re: [vpp-dev] Elog binary file format

2018-10-09 Thread Aleksander Djuric
Correction: I've found all of unserialize_* functions. Trying to understand.. -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#10777): https://lists.fd.io/g/vpp-dev/message/10777 Mute This Topic: https://lists.fd.io/mt/26875131/21656 Group Owner:

Re: [vpp-dev] Elog binary file format

2018-10-09 Thread Aleksander Djuric
Thanks Florin! Thanks Damjan! I know about these tools, but both of them uses elog_read_file function, which is described in elog.h This function consist of 3 other functions: unserialize_open_clib_file,  unserialize and unserialize_close. If I right, the elog file parsing should be in

Re: [vpp-dev] Elog binary file format

2018-10-08 Thread Florin Coras
Also, take a look at c2cpel and cpeldump. The first allows you to convert log files to cpel files while the second converts cpel to text. Hope this helps, Florin > On Oct 8, 2018, at 9:22 AM, Damjan Marion via Lists.Fd.Io > wrote: > > > -- > Damjan > >> On 8 Oct 2018, at 07:37,

Re: [vpp-dev] Elog binary file format

2018-10-08 Thread Damjan Marion via Lists.Fd.Io
-- Damjan > On 8 Oct 2018, at 07:37, Aleksander Djuric > wrote: > > Hi Everyone! > > I am trying to parse binary ELOG file, but have no success. > Is there someone who know something about ELOG file format? > At now I'm trying to get the unix timestamp of the each event. > > I had found

[vpp-dev] Elog binary file format

2018-10-08 Thread Aleksander Djuric
Hi Everyone! I am trying to parse binary ELOG file, but have no success. Is there someone who know something about ELOG file format? At now I'm trying to get the unix timestamp of the each event. I had found small python script here: https://github.com/theleos88/vpp-bench/wiki/ELOG ...but it's