Use default if there is no clock declaration
authorJuha Niskanen <juniskane@gmail.com>
Mon, 13 Feb 2012 13:55:20 +0000 (08:55 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 13 Feb 2012 13:55:20 +0000 (08:55 -0500)
commitf57447bdfc29e7390c32661341ef50ae1d9ab208
treeaef231184e2caa461910b93c53bf93a141d60f9f
parent363402af83b92b66df25e11005aa64343e3b7153
Use default if there is no clock declaration

In absence of clock description in metadata, use a default clock
source which increments once per nanosecond.

Without this patch, the converter crashes when given old traces
that are lacking clock description block.

[ Edit by Mathieu Desnoyers: style cleanup, added clock description,
  added comments. ]

Signed-off-by: Juha Niskanen <juniskane@gmail.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
formats/ctf/metadata/ctf-visitor-generate-io-struct.c
This page took 0.032567 seconds and 4 git commands to generate.