Skip to content

Commit

Permalink
stream_instance_id added
Browse files Browse the repository at this point in the history
  • Loading branch information
rmeena840 committed Jul 12, 2019
1 parent 5fc194c commit 44552ac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion misc/record/record-main.c
Expand Up @@ -75,8 +75,9 @@ typedef struct ctf_header {
uint32_t ctf_magic;
uint8_t uuid[ 16 ];
uint32_t stream_id;
uint64_t stream_instance_id;
uint32_t cpu_id;
} ctf_header;
} __attribute__((__packed__)) ctf_header;

typedef struct ctf_event {
uint64_t ns;
Expand Down Expand Up @@ -359,6 +360,7 @@ int main( int argc, char **argv )

ctf_header.ctf_magic = CTF_MAGIC;
ctf_header.stream_id = (uint32_t) 0;
ctf_header.stream_instance_id = ( uint64_t ) 0;
ctf_header.cpu_id = (uint32_t) i;

// CTF magic, uuid, stream_id = 0 and cpu_id of each file. It is needed
Expand Down

0 comments on commit 44552ac

Please sign in to comment.