Skip to content

Commit 6c18b30

Browse files
ikegami-tigaw
authored andcommitted
nvme-print-json: add support telemetry log create event in PEL
Already supported but only for stdout print. Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
1 parent cb97f47 commit 6c18b30

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

nvme-print-json.c

+9
Original file line numberDiff line numberDiff line change
@@ -1690,6 +1690,12 @@ static void json_pel_set_feature(void *pevent_log_info, __u32 offset,
16901690
}
16911691
}
16921692

1693+
static void json_pel_telemetry_crt(void *pevent_log_info, __u32 offset,
1694+
struct json_object *valid_attrs)
1695+
{
1696+
obj_d(valid_attrs, "create", pevent_log_info + offset, 512, 16, 1);
1697+
}
1698+
16931699
static void json_pel_thermal_excursion(void *pevent_log_info, __u32 offset,
16941700
struct json_object *valid_attrs)
16951701
{
@@ -1769,6 +1775,9 @@ static void json_pevent_entry(void *pevent_log_info, __u8 action, __u32 size, co
17691775
case NVME_PEL_SET_FEATURE_EVENT:
17701776
json_pel_set_feature(pevent_log_info, offset, valid_attrs);
17711777
break;
1778+
case NVME_PEL_TELEMETRY_CRT:
1779+
json_pel_telemetry_crt(pevent_log_info, offset, valid_attrs);
1780+
break;
17721781
case NVME_PEL_THERMAL_EXCURSION_EVENT:
17731782
json_pel_thermal_excursion(pevent_log_info, offset, valid_attrs);
17741783
break;

0 commit comments

Comments
 (0)