GSoC Project | Basic Support for Trace Compass

Ravindra Kumar Meena rmeena840 at gmail.com
Thu Aug 8 06:43:06 UTC 2019


>
> No, not a typedef. Something like this:
>
> diff --git a/misc/record/record-main.c b/misc/record/record-main.c
> index 314bb78..b5d1a66 100644
> --- a/misc/record/record-main.c
> +++ b/misc/record/record-main.c
> @@ -422,19 +422,28 @@ static rtems_record_client_status handler(
>     return RTEMS_RECORD_CLIENT_SUCCESS;
>   }
>
> +static const char metadata[] =
> +"/* CTF 1.8 */\n"
> +"\n"
> +"typealias integer { size = 5; align = 1; signed = false; } := uint5_t;\n"
> +"typealias integer { size = 8; align = 8; signed = false; } := uint8_t;\n"
> +"typealias integer { size = 32; align = 8; signed = false; } :=
> uint32_t;\n"
> +"typealias integer { size = 64; align = 8; signed = false; } :=
> uint64_t;\n"
> +"typealias integer { size = 64; align = 8; signed = false; } :=
> unsigned long;\n";
> +
>   void generate_metadata(){
> -  FILE *metadata = fopen("metadata","w");
> +  FILE *file = fopen("metadata","w");
>     assert( metadata !=  NULL );
>
> -  fprintf(metadata, "/* CTF 1.8 */\n\n");
> -  fprintf(metadata, "typealias integer { size = 5; align = 1; signed =
> false; } := uint5_t;\
> +  fwrite( metadata, sizeof( metadata ), 1, file );
>
Okay.
https://github.com/rmeena840/rtems-tools/commit/6ee5468224d70eda4147fb7739571ea91eac7b9c


Should I include whole metadata content in that char metadata[]?


-- 
*Ravindra Kumar Meena*,
B. Tech. Computer Science and Engineering,
Indian Institute of Technology (Indian School of Mines)
<https://www.iitism.ac.in/>, Dhanbad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20190808/8654b0e4/attachment-0002.html>


More information about the devel mailing list