Environment Variable

HB_VP_LOG_LEVEL                 // Set the VP module log level, the value is 0, 1, 2, 3, 4, 5, 6, corresponding to Verbose, Debug, Info, Warning, Error, Critical, Never, the default is Warning
HB_DSP_LOG_LEVEL                // Set the DSP module ARM side log level, the value is 0, 1, 2, 3, 4, 5, 6, corresponding to Verbose, Debug, Info, Warning, Error, Critical, Never, the default is Warning
HB_DSP_VDSP_LOG_LEVEL           // Set the DSP module DSP side log level, the value is 1, 2, 3, 4, 5, corresponding to Debug, Info, Warning, Error, Always, the default is Warning

Log Level Setting Instruction

  • Log level:

The logs in VP module are mainly divided into 7 levels:

The log level can be set to 0, 1, 2, 3, 4, 5 and 6, corresponding to Verbose, Debug, Info, Warning, Error, Critical, and Never, with the default being Warning.

The logs in DSP module ARM side are mainly divided into 7 levels:

The log level can be set to 0, 1, 2, 3, 4, 5 and 6, corresponding to Verbose, Debug, Info, Warning, Error, Critical, and Never, with the default being Warning.

The logs in DSP module DSP side are mainly divided into 5 levels:

The log level can be set to 1, 2, 3, 4, 5, corresponding to Debug, Info, Warning, Error, Always, with the default being Warning.

  • Log level setting rules:

    • If the occurring log level is greater than or equal to the set level, then the log can be printed, otherwise, it will be shielded.
    • The smaller the set log level, the more information is printed. For example, if the log level is set to 3, which is the Warning level, then log at levels 3, 4, 5 can all be printed. The default log level of the VP module is Warning, i.e. the following log levels can be printed: Warning, Error, Critical.
Note

DSP side logs can be obtained by following the steps as belows:

  • Configure environment variables to enable DSP logging outputs.

    export HB_DSP_ENABLE_CONFIG_VDSP=true
    export HB_DSP_WRITE_VDSP_LOG_TO_ARM=true
  • Start the log listening service.

    # VDSP0's logging service:
    hrut_remoteproc_log -b /sys/class/remoteproc/remoteproc1/log