ev.transaction_type)) <= 0)
return -1;
+ if (tep_get_field_val(s, event, "hpa", record, &val, 1) < 0)
+ return -1;
+ ev.hpa = val;
+ if (trace_seq_printf(s, "hpa:0x%llx ", (unsigned long long)ev.hpa) <= 0)
+ return -1;
+
+ ev.region = tep_get_field_raw(s, event, "region_name", record, &len, 1);
+ if (!ev.region)
+ return -1;
+ if (trace_seq_printf(s, "region:%s ", ev.region) <= 0)
+ return -1;
+
+ ev.region_uuid = tep_get_field_raw(s, event, "region_uuid",
+ record, &len, 1);
+ if (!ev.region_uuid)
+ return -1;
+ ev.region_uuid = uuid_be(ev.region_uuid);
+ if (trace_seq_printf(s, "region_uuid:%s ", ev.region_uuid) <= 0)
+ return -1;
+
if (tep_get_field_val(s, event, "validity_flags", record, &val, 1) < 0)
return -1;
ev.validity_flags = val;
ev.transaction_type)) <= 0)
return -1;
+ if (tep_get_field_val(s, event, "hpa", record, &val, 1) < 0)
+ return -1;
+ ev.hpa = val;
+ if (trace_seq_printf(s, "hpa:0x%llx ", (unsigned long long)ev.hpa) <= 0)
+ return -1;
+
+ ev.region = tep_get_field_raw(s, event, "region", record, &len, 1);
+ if (!ev.region)
+ return -1;
+ if (trace_seq_printf(s, "region:%s ", ev.region) <= 0)
+ return -1;
+
+ ev.region_uuid = tep_get_field_raw(s, event, "region_uuid",
+ record, &len, 1);
+ if (!ev.region_uuid)
+ return -1;
+ ev.region_uuid = uuid_be(ev.region_uuid);
+ if (trace_seq_printf(s, "region_uuid:%s ", ev.region_uuid) <= 0)
+ return -1;
+
if (tep_get_field_val(s, event, "validity_flags", record, &val, 1) < 0)
return -1;
ev.validity_flags = val;
{ .name = "rank", .type = "INTEGER" },
{ .name = "device", .type = "INTEGER" },
{ .name = "comp_id", .type = "BLOB" },
+ { .name = "hpa", .type = "INTEGER" },
+ { .name = "region", .type = "TEXT" },
+ { .name = "region_uuid", .type = "TEXT" },
};
static const struct db_table_descriptor cxl_general_media_event_tab = {
sqlite3_bind_int(priv->stmt_cxl_general_media_event, 20, ev->device);
sqlite3_bind_blob(priv->stmt_cxl_general_media_event, 21, ev->comp_id,
CXL_EVENT_GEN_MED_COMP_ID_SIZE, NULL);
+ sqlite3_bind_int64(priv->stmt_cxl_general_media_event, 22, ev->hpa);
+ sqlite3_bind_text(priv->stmt_cxl_general_media_event, 23, ev->region, -1, NULL);
+ sqlite3_bind_text(priv->stmt_cxl_general_media_event, 24, ev->region_uuid, -1, NULL);
rc = sqlite3_step(priv->stmt_cxl_general_media_event);
if (rc != SQLITE_OK && rc != SQLITE_DONE)
{ .name = "row", .type = "INTEGER" },
{ .name = "column", .type = "INTEGER" },
{ .name = "cor_mask", .type = "BLOB" },
+ { .name = "hpa", .type = "INTEGER" },
+ { .name = "region", .type = "TEXT" },
+ { .name = "region_uuid", .type = "TEXT" },
};
static const struct db_table_descriptor cxl_dram_event_tab = {
sqlite3_bind_int(priv->stmt_cxl_dram_event, 24, ev->column);
sqlite3_bind_blob(priv->stmt_cxl_dram_event, 25, ev->cor_mask,
CXL_EVENT_DER_CORRECTION_MASK_SIZE, NULL);
+ sqlite3_bind_int64(priv->stmt_cxl_dram_event, 26, ev->hpa);
+ sqlite3_bind_text(priv->stmt_cxl_dram_event, 27, ev->region, -1, NULL);
+ sqlite3_bind_text(priv->stmt_cxl_dram_event, 28, ev->region_uuid, -1, NULL);
rc = sqlite3_step(priv->stmt_cxl_dram_event);
if (rc != SQLITE_OK && rc != SQLITE_DONE)