1#!/bin/bash 2# 3# config: 2 20 4# @brief: Get the pldm flight recorder 5# 6 7. $DREPORT_INCLUDE/functions 8 9desc="pldm flight recorder" 10 11# collect data only if pldmd is enabled 12if [ -e "/usr/bin/pldmd" ]; then 13 command="rm -rf /tmp/pldm_flight_recorder; killall -s SIGUSR1 pldmd; \ 14 sleep 5; cat /tmp/pldm_flight_recorder" 15 16 file_name="pldmflightrecorder.log" 17 18 add_cmd_output "$command" "$file_name" "$desc" 19 20 rm -rf /tmp/pldm_flight_recorder 21else 22 log_warning "skipping pldm flight recorder: pldmd is not enabled" 23fi 24