Re: [PATCH v2] Write event stream in file

2019-06-25 Thread Sebastian Huber
On 26/06/2019 06:20, Ravindra Kumar Meena wrote: > +  ctf_item.event = __builtin_bswap32( item->event ); Why is there this byte swap? It will set its value in big-endian. What it does here depends on the native endian setting. Since this value will be passed as big-endian. I

Re: [PATCH v2] Write event stream in file

2019-06-25 Thread Ravindra Kumar Meena
> > > + ctf_item.event = __builtin_bswap32( item->event ); > > Why is there this byte swap? > It will set its value in big-endian. Since this value will be passed as big-endian. I have defined the typealias for the same in the metadata. typealias integer { size = 64; align = 8; signed = false;

Re: [PATCH v2] Write event stream in file

2019-06-25 Thread Sebastian Huber
- Am 25. Jun 2019 um 19:18 schrieb Ravindra Kumar Meena rmeena...@gmail.com: > --- > misc/record/record-main.c | 26 +- > 1 file changed, 9 insertions(+), 17 deletions(-) > > diff --git a/misc/record/record-main.c b/misc/record/record-main.c > index cd7ef4f..7764109

[PATCH v2] Write event stream in file

2019-06-25 Thread Ravindra Meena
--- misc/record/record-main.c | 26 +- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/misc/record/record-main.c b/misc/record/record-main.c index cd7ef4f..7764109 100644 --- a/misc/record/record-main.c +++ b/misc/record/record-main.c @@ -146,20 +146,12 @@

[PATCH v2] Write event stream in file

2019-06-21 Thread Ravindra Meena
--- misc/record/record-main.c | 30 ++ 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/misc/record/record-main.c b/misc/record/record-main.c index eccf291..9e9eaa3 100644 --- a/misc/record/record-main.c +++ b/misc/record/record-main.c @@ -83,6 +83,7 @@