Changeset View
Changeset View
Standalone View
Standalone View
sbin/nvmecontrol/modules/intel/intel.c
Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | |||||
print_intel_temp_stats(const struct nvme_controller_data *cdata __unused, void *buf, uint32_t size __unused) | print_intel_temp_stats(const struct nvme_controller_data *cdata __unused, void *buf, uint32_t size __unused) | ||||
{ | { | ||||
struct intel_log_temp_stats *temp = buf; | struct intel_log_temp_stats *temp = buf; | ||||
printf("Intel Temperature Log\n"); | printf("Intel Temperature Log\n"); | ||||
printf("=====================\n"); | printf("=====================\n"); | ||||
printf("Current: "); | printf("Current: "); | ||||
print_temp(temp->current); | print_temp_C(temp->current); | ||||
printf("Overtemp Last Flags %#jx\n", (uintmax_t)temp->overtemp_flag_last); | printf("Overtemp Last Flags %#jx\n", (uintmax_t)temp->overtemp_flag_last); | ||||
printf("Overtemp Lifetime Flags %#jx\n", (uintmax_t)temp->overtemp_flag_life); | printf("Overtemp Lifetime Flags %#jx\n", (uintmax_t)temp->overtemp_flag_life); | ||||
printf("Max Temperature "); | printf("Max Temperature "); | ||||
print_temp(temp->max_temp); | print_temp_C(temp->max_temp); | ||||
printf("Min Temperature "); | printf("Min Temperature "); | ||||
print_temp(temp->min_temp); | print_temp_C(temp->min_temp); | ||||
printf("Max Operating Temperature "); | printf("Max Operating Temperature "); | ||||
print_temp(temp->max_oper_temp); | print_temp_C(temp->max_oper_temp); | ||||
printf("Min Operating Temperature "); | printf("Min Operating Temperature "); | ||||
print_temp(temp->min_oper_temp); | print_temp_C(temp->min_oper_temp); | ||||
printf("Estimated Temperature Offset: %ju C/K\n", (uintmax_t)temp->est_offset); | printf("Estimated Temperature Offset: %ju C/K\n", (uintmax_t)temp->est_offset); | ||||
} | } | ||||
/* | /* | ||||
* Format from Table 22, section 5.7 IO Command Latency Statistics. | * Format from Table 22, section 5.7 IO Command Latency Statistics. | ||||
* Read and write stats pages have identical encoding. | * Read and write stats pages have identical encoding. | ||||
*/ | */ | ||||
static void | static void | ||||
▲ Show 20 Lines • Show All 110 Lines • Show Last 20 Lines |