commit | 43f472ed87e08638d6fb0894e28995ae0e66403a | [log] [tgz] |
---|---|---|
author | Dan Zhang <zhdaniel@google.com> | Sat May 18 08:07:17 2024 +0000 |
committer | Dan Zhang <zhdaniel@google.com> | Wed May 29 21:42:54 2024 +0000 |
tree | 36580595d7861241faa0191e92f4a5d3136e454b | |
parent | 22cc864d3d52a3100a52a43c47315a4862cc656d [diff] |
ttf-console: Add syslog-handler to obmc-console Add syslog-handler to allow enable the obmc-console-server log the console data to syslog when syslogid is configured for the console. This syslog-handler following obmc-console handler structure register as another console data ringbuffer consumer like log-handler. Log the data line by line, filtering out non-printable data. Break the line longer than 1K into multiple syslog message. To mitigate the risk of potential delay of Megapede support ttf-console feature, prepare this backup plan: Support log the host serial console stream to syslog. Tested: The mvt19-n1 reboot console log can get from syslog dashboard: http://dashboards/platforms_gbmc_devtools_plx_syslog_gbmc_syslog?p=TABLE_TYPE:20240518&p=HOSTNAME:mvt19-nfd11&f=program:eq:ttf-console-log All build success: http://fusion2/ci/kokoro/prod%3Agbmc%2Ffirmware-build%2Ffirmware%2Fredacted_gbmc_platforms/activity/72a9e8df-2a5f-412e-bee7-76007c8d1373 Google-Bug-Id: 340958958 Change-Id: I9c68cd47c9e2ad595346dee018cec43c180b7fab Signed-off-by: Dan Zhang <zhdaniel@google.com> (cherry picked from commit 4742f91800454f694eb863b2a28da0f5cd43a90d)