Lines Matching refs:dump_buf
310 void Thermal::dumpVirtualSensorInfo(std::ostringstream *dump_buf) { in dumpVirtualSensorInfo() argument
311 *dump_buf << "getVirtualSensorInfo:" << std::endl; in dumpVirtualSensorInfo()
315 *dump_buf << " Name: " << sensor_info_pair.first << std::endl; in dumpVirtualSensorInfo()
316 *dump_buf << " LinkedSensorName: ["; in dumpVirtualSensorInfo()
319 *dump_buf << sensor_info_pair.second.virtual_sensor_info->linked_sensors[i] << " "; in dumpVirtualSensorInfo()
321 *dump_buf << "]" << std::endl; in dumpVirtualSensorInfo()
322 *dump_buf << " LinkedSensorCoefficient: ["; in dumpVirtualSensorInfo()
325 *dump_buf << sensor_info_pair.second.virtual_sensor_info->coefficients[i] << " "; in dumpVirtualSensorInfo()
327 *dump_buf << "]" << std::endl; in dumpVirtualSensorInfo()
328 *dump_buf << " Offset: " << sensor_info_pair.second.virtual_sensor_info->offset in dumpVirtualSensorInfo()
330 *dump_buf << " Trigger Sensor: "; in dumpVirtualSensorInfo()
332 *dump_buf << "N/A" << std::endl; in dumpVirtualSensorInfo()
336 *dump_buf << sensor_info_pair.second.virtual_sensor_info->trigger_sensors[i] in dumpVirtualSensorInfo()
339 *dump_buf << std::endl; in dumpVirtualSensorInfo()
341 *dump_buf << " Formula: "; in dumpVirtualSensorInfo()
344 *dump_buf << "COUNT_THRESHOLD"; in dumpVirtualSensorInfo()
347 *dump_buf << "WEIGHTED_AVG"; in dumpVirtualSensorInfo()
350 *dump_buf << "MAXIMUM"; in dumpVirtualSensorInfo()
353 *dump_buf << "MINIMUM"; in dumpVirtualSensorInfo()
356 *dump_buf << "NONE"; in dumpVirtualSensorInfo()
360 *dump_buf << std::endl; in dumpVirtualSensorInfo()
365 void Thermal::dumpVtEstimatorInfo(std::ostringstream *dump_buf) { in dumpVtEstimatorInfo() argument
366 *dump_buf << "getVtEstimatorInfo:" << std::endl; in dumpVtEstimatorInfo()
369 thermal_helper_->dumpVtEstimatorStatus(name_info_pair.first, dump_buf); in dumpVtEstimatorInfo()
373 void Thermal::dumpThrottlingInfo(std::ostringstream *dump_buf) { in dumpThrottlingInfo() argument
374 *dump_buf << "getThrottlingInfo:" << std::endl; in dumpThrottlingInfo()
386 *dump_buf << " Name: " << name_info_pair.first << std::endl; in dumpThrottlingInfo()
389 *dump_buf << " PID Info:" << std::endl; in dumpThrottlingInfo()
390 *dump_buf << " K_po: ["; in dumpThrottlingInfo()
392 *dump_buf << name_info_pair.second.throttling_info->k_po[i] << " "; in dumpThrottlingInfo()
394 *dump_buf << "]" << std::endl; in dumpThrottlingInfo()
395 *dump_buf << " K_pu: ["; in dumpThrottlingInfo()
397 *dump_buf << name_info_pair.second.throttling_info->k_pu[i] << " "; in dumpThrottlingInfo()
399 *dump_buf << "]" << std::endl; in dumpThrottlingInfo()
400 *dump_buf << " K_i: ["; in dumpThrottlingInfo()
402 *dump_buf << name_info_pair.second.throttling_info->k_i[i] << " "; in dumpThrottlingInfo()
404 *dump_buf << "]" << std::endl; in dumpThrottlingInfo()
405 *dump_buf << " K_d: ["; in dumpThrottlingInfo()
407 *dump_buf << name_info_pair.second.throttling_info->k_d[i] << " "; in dumpThrottlingInfo()
409 *dump_buf << "]" << std::endl; in dumpThrottlingInfo()
410 *dump_buf << " i_max: ["; in dumpThrottlingInfo()
412 *dump_buf << name_info_pair.second.throttling_info->i_max[i] << " "; in dumpThrottlingInfo()
414 *dump_buf << "]" << std::endl; in dumpThrottlingInfo()
415 *dump_buf << " max_alloc_power: ["; in dumpThrottlingInfo()
417 *dump_buf << name_info_pair.second.throttling_info->max_alloc_power[i] << " "; in dumpThrottlingInfo()
419 *dump_buf << "]" << std::endl; in dumpThrottlingInfo()
420 *dump_buf << " min_alloc_power: ["; in dumpThrottlingInfo()
422 *dump_buf << name_info_pair.second.throttling_info->min_alloc_power[i] << " "; in dumpThrottlingInfo()
424 *dump_buf << "]" << std::endl; in dumpThrottlingInfo()
425 *dump_buf << " s_power: ["; in dumpThrottlingInfo()
427 *dump_buf << name_info_pair.second.throttling_info->s_power[i] << " "; in dumpThrottlingInfo()
429 *dump_buf << "]" << std::endl; in dumpThrottlingInfo()
430 *dump_buf << " i_cutoff: ["; in dumpThrottlingInfo()
432 *dump_buf << name_info_pair.second.throttling_info->i_cutoff[i] << " "; in dumpThrottlingInfo()
434 *dump_buf << "]" << std::endl; in dumpThrottlingInfo()
437 *dump_buf << " Binded CDEV Info:" << (profile.empty() ? "default" : profile) in dumpThrottlingInfo()
444 *dump_buf << " Cooling device name: " << binded_cdev_info_pair.first << std::endl; in dumpThrottlingInfo()
447 *dump_buf << " WeightForPID: ["; in dumpThrottlingInfo()
449 *dump_buf << binded_cdev_info_pair.second.cdev_weight_for_pid[i] << " "; in dumpThrottlingInfo()
451 *dump_buf << "]" << std::endl; in dumpThrottlingInfo()
453 *dump_buf << " Ceiling: ["; in dumpThrottlingInfo()
455 *dump_buf << binded_cdev_info_pair.second.cdev_ceiling[i] << " "; in dumpThrottlingInfo()
457 *dump_buf << "]" << std::endl; in dumpThrottlingInfo()
458 *dump_buf << " Hard limit: ["; in dumpThrottlingInfo()
460 *dump_buf << binded_cdev_info_pair.second.limit_info[i] << " "; in dumpThrottlingInfo()
462 *dump_buf << "]" << std::endl; in dumpThrottlingInfo()
465 *dump_buf << " Binded power rail: " in dumpThrottlingInfo()
467 *dump_buf << " Power threshold: ["; in dumpThrottlingInfo()
469 *dump_buf << binded_cdev_info_pair.second.power_thresholds[i] << " "; in dumpThrottlingInfo()
471 *dump_buf << "]" << std::endl; in dumpThrottlingInfo()
472 *dump_buf << " Floor with PowerLink: ["; in dumpThrottlingInfo()
474 *dump_buf << binded_cdev_info_pair.second.cdev_floor_with_power_link[i] in dumpThrottlingInfo()
477 *dump_buf << "]" << std::endl; in dumpThrottlingInfo()
478 *dump_buf << " Release logic: "; in dumpThrottlingInfo()
481 *dump_buf << "INCREASE"; in dumpThrottlingInfo()
484 *dump_buf << "DECREASE"; in dumpThrottlingInfo()
487 *dump_buf << "STEPWISE"; in dumpThrottlingInfo()
490 *dump_buf << "RELEASE_TO_FLOOR"; in dumpThrottlingInfo()
493 *dump_buf << "NONE"; in dumpThrottlingInfo()
496 *dump_buf << std::endl; in dumpThrottlingInfo()
497 *dump_buf << " high_power_check: " << std::boolalpha in dumpThrottlingInfo()
499 *dump_buf << " throttling_with_power_link: " << std::boolalpha in dumpThrottlingInfo()
508 void Thermal::dumpThrottlingRequestStatus(std::ostringstream *dump_buf) { in dumpThrottlingRequestStatus() argument
513 *dump_buf << "getThrottlingRequestStatus:" << std::endl; in dumpThrottlingRequestStatus()
515 *dump_buf << " Name: " << thermal_throttling_status_pair.first << std::endl; in dumpThrottlingRequestStatus()
517 *dump_buf << " power budget request state" << std::endl; in dumpThrottlingRequestStatus()
520 *dump_buf << " " << request_pair.first << ": " << request_pair.second in dumpThrottlingRequestStatus()
525 *dump_buf << " pid cdev request state" << std::endl; in dumpThrottlingRequestStatus()
528 *dump_buf << " " << request_pair.first << ": " << request_pair.second in dumpThrottlingRequestStatus()
533 *dump_buf << " hard limit cdev request state" << std::endl; in dumpThrottlingRequestStatus()
536 *dump_buf << " " << request_pair.first << ": " << request_pair.second in dumpThrottlingRequestStatus()
541 *dump_buf << " cdev release state" << std::endl; in dumpThrottlingRequestStatus()
544 *dump_buf << " " << request_pair.first << ": " << request_pair.second in dumpThrottlingRequestStatus()
549 *dump_buf << " cdev request state" << std::endl; in dumpThrottlingRequestStatus()
551 *dump_buf << " " << request_pair.first << ": " << request_pair.second in dumpThrottlingRequestStatus()
558 void Thermal::dumpPowerRailInfo(std::ostringstream *dump_buf) { in dumpPowerRailInfo() argument
562 *dump_buf << "getPowerRailInfo:" << std::endl; in dumpPowerRailInfo()
564 *dump_buf << " Power Rail: " << power_rail_pair.first << std::endl; in dumpPowerRailInfo()
565 *dump_buf << " Power Sample Count: " << power_rail_pair.second.power_sample_count in dumpPowerRailInfo()
567 *dump_buf << " Power Sample Delay: " << power_rail_pair.second.power_sample_delay.count() in dumpPowerRailInfo()
571 *dump_buf << " Last Updated AVG Power: " in dumpPowerRailInfo()
575 *dump_buf << " Formula="; in dumpPowerRailInfo()
578 *dump_buf << "COUNT_THRESHOLD"; in dumpPowerRailInfo()
581 *dump_buf << "WEIGHTED_AVG"; in dumpPowerRailInfo()
584 *dump_buf << "MAXIMUM"; in dumpPowerRailInfo()
587 *dump_buf << "MINIMUM"; in dumpPowerRailInfo()
590 *dump_buf << "NONE"; in dumpPowerRailInfo()
593 *dump_buf << std::endl; in dumpPowerRailInfo()
597 *dump_buf in dumpPowerRailInfo()
601 *dump_buf << " Coefficient=" in dumpPowerRailInfo()
604 *dump_buf << " Power Samples: "; in dumpPowerRailInfo()
606 *dump_buf << " Power Samples: "; in dumpPowerRailInfo()
611 *dump_buf << "(T=" << power_sample.duration in dumpPowerRailInfo()
614 *dump_buf << std::endl; in dumpPowerRailInfo()
620 void Thermal::dumpStatsRecord(std::ostringstream *dump_buf, const StatsRecord &stats_record, in dumpStatsRecord() argument
623 *dump_buf << line_prefix << "Time Since Last Stats Report: " in dumpStatsRecord()
628 *dump_buf << line_prefix << "Time in State ms: ["; in dumpStatsRecord()
630 *dump_buf << time_in_state.count() << " "; in dumpStatsRecord()
632 *dump_buf << "]" << std::endl; in dumpStatsRecord()
635 void Thermal::dumpThermalStats(std::ostringstream *dump_buf) { in dumpThermalStats() argument
636 *dump_buf << "getThermalStatsInfo:" << std::endl; in dumpThermalStats()
637 *dump_buf << " Sensor Temp Stats Info:" << std::endl; in dumpThermalStats()
641 *dump_buf << " Sensor Name: " << sensor_temp_stats_pair.first << std::endl; in dumpThermalStats()
643 *dump_buf << " Max Temp: " << sensor_temp_stats.max_temp << ", TimeStamp: " in dumpThermalStats()
645 *dump_buf << " Min Temp: " << sensor_temp_stats.min_temp << ", TimeStamp: " in dumpThermalStats()
648 *dump_buf << " Record by Threshold: ["; in dumpThermalStats()
650 *dump_buf << threshold << " "; in dumpThermalStats()
652 *dump_buf << "]" << std::endl; in dumpThermalStats()
654 *dump_buf << " Logging Name: " << stats_by_threshold.logging_name.value() in dumpThermalStats()
657 dumpStatsRecord(dump_buf, stats_by_threshold.stats_record, in dumpThermalStats()
662 *dump_buf << " Record by Severity:" << std::endl; in dumpThermalStats()
663 dumpStatsRecord(dump_buf, sensor_temp_stats.stats_by_default_threshold.value(), in dumpThermalStats()
667 *dump_buf << " Sensor Cdev Request Stats Info:" << std::endl; in dumpThermalStats()
672 *dump_buf << " Sensor Name: " << sensor_cdev_request_stats_pair.first << std::endl; in dumpThermalStats()
674 *dump_buf << " Cooling Device Name: " << cdev_request_stats_pair.first << std::endl; in dumpThermalStats()
677 *dump_buf << " Record by Threshold: ["; in dumpThermalStats()
679 *dump_buf << threshold << " "; in dumpThermalStats()
681 *dump_buf << "]" << std::endl; in dumpThermalStats()
683 *dump_buf << " Logging Name: " << stats_by_threshold.logging_name.value() in dumpThermalStats()
686 dumpStatsRecord(dump_buf, stats_by_threshold.stats_record, in dumpThermalStats()
690 *dump_buf << " Record by All State" << std::endl; in dumpThermalStats()
691 dumpStatsRecord(dump_buf, request_stats.stats_by_default_threshold.value(), in dumpThermalStats()
699 std::ostringstream dump_buf; in dumpThermalData() local
702 dump_buf << "ThermalHAL not initialized properly." << std::endl; in dumpThermalData()
706 dump_buf << "getCachedTemperatures:" << std::endl; in dumpThermalData()
713 dump_buf << " Name: " << sensor_status_pair.first in dumpThermalData()
723 dump_buf << "getEmulSettings:" << std::endl; in dumpThermalData()
728 dump_buf << " Name: " << sensor_status_pair.first << " EmulTemp: " in dumpThermalData()
738 dump_buf << "getCurrentTemperatures:" << std::endl; in dumpThermalData()
742 dump_buf << " Type: " << toString(temp_2_0.type) in dumpThermalData()
747 dump_buf << "getTemperatureThresholds:" << std::endl; in dumpThermalData()
752 dump_buf << " Type: " << toString(name_info_pair.second.type) in dumpThermalData()
754 dump_buf << " hotThrottlingThreshold: ["; in dumpThermalData()
756 dump_buf << name_info_pair.second.hot_thresholds[i] << " "; in dumpThermalData()
758 dump_buf << "] coldThrottlingThreshold: ["; in dumpThermalData()
760 dump_buf << name_info_pair.second.cold_thresholds[i] << " "; in dumpThermalData()
762 dump_buf << "] vrThrottlingThreshold: " << name_info_pair.second.vr_threshold; in dumpThermalData()
763 dump_buf << std::endl; in dumpThermalData()
765 dump_buf << "getHysteresis:" << std::endl; in dumpThermalData()
770 dump_buf << " Name: " << name_info_pair.first; in dumpThermalData()
771 dump_buf << " hotHysteresis: ["; in dumpThermalData()
773 dump_buf << name_info_pair.second.hot_hysteresis[i] << " "; in dumpThermalData()
775 dump_buf << "] coldHysteresis: ["; in dumpThermalData()
777 dump_buf << name_info_pair.second.cold_hysteresis[i] << " "; in dumpThermalData()
779 dump_buf << "]" << std::endl; in dumpThermalData()
783 dump_buf << "getCurrentCoolingDevices:" << std::endl; in dumpThermalData()
787 dump_buf << " Failed to getCurrentCoolingDevices." << std::endl; in dumpThermalData()
791 dump_buf << " Type: " << toString(c.type) << " Name: " << c.name in dumpThermalData()
796 dump_buf << "getCallbacks:" << std::endl; in dumpThermalData()
797 dump_buf << " Total: " << callbacks_.size() << std::endl; in dumpThermalData()
799 dump_buf << " IsFilter: " << c.is_filter_type << " Type: " << toString(c.type) in dumpThermalData()
804 dump_buf << "sendCallback:" << std::endl; in dumpThermalData()
805 dump_buf << " Enabled List: "; in dumpThermalData()
809 dump_buf << name_info_pair.first << " "; in dumpThermalData()
812 dump_buf << std::endl; in dumpThermalData()
815 dump_buf << "sendPowerHint:" << std::endl; in dumpThermalData()
816 dump_buf << " Enabled List: "; in dumpThermalData()
820 dump_buf << name_info_pair.first << " "; in dumpThermalData()
823 dump_buf << std::endl; in dumpThermalData()
825 dumpVirtualSensorInfo(&dump_buf); in dumpThermalData()
826 dumpVtEstimatorInfo(&dump_buf); in dumpThermalData()
827 dumpThrottlingInfo(&dump_buf); in dumpThermalData()
828 dumpThrottlingRequestStatus(&dump_buf); in dumpThermalData()
829 dumpPowerRailInfo(&dump_buf); in dumpThermalData()
830 dumpThermalStats(&dump_buf); in dumpThermalData()
832 dump_buf << "getAIDLPowerHalInfo:" << std::endl; in dumpThermalData()
833 dump_buf << " Exist: " << std::boolalpha << thermal_helper_->isAidlPowerHalExist() in dumpThermalData()
835 dump_buf << " Connected: " << std::boolalpha << thermal_helper_->isPowerHalConnected() in dumpThermalData()
837 dump_buf << " Ext connected: " << std::boolalpha in dumpThermalData()
841 dumpVtEstimatorInfo(&dump_buf); in dumpThermalData()
844 std::string buf = dump_buf.str(); in dumpThermalData()