- gboolean noError = TRUE;
-
- timestamp = bt_ctf_get_timestamp(ctf_event);
- if (timestamp == -1ULL) {
- noError = FALSE;
- }
- if (noError) {
- scope = bt_ctf_get_top_level_scope(ctf_event, BT_STREAM_PACKET_CONTEXT);
- if (bt_ctf_field_get_error()) {
- noError = FALSE;
- }
- }
- if (noError) {
- cpu_id = bt_ctf_get_uint64(bt_ctf_get_field(ctf_event, scope, "cpu_id"));
- if (bt_ctf_field_get_error()) {
- noError = FALSE;
- }
- else {
- g_string_append_printf(cpuId_str, "%u", cpu_id);
- }
- }
-
- if (!noError) {
- ret = -1;