auparse_normalize_get_event_kind - Linux
Overview
auparse_normalize_get_event_kind normalizes the event kind of a given AU event. This is useful for comparing events from different sources or for filtering events based on their kind.
Syntax
auparse_normalize_get_event_kind <au_event>
Options/Flags
None
Examples
Normalize the event kind of an AU event:
auparse_normalize_get_event_kind "AU_EVENT_ACPI_AUDIO_STREAM_STARTED"
# Output: ACPI_AUDIO_STREAM_STARTED
Filter AU events based on their normalized event kind:
auparse -e "auparse_normalize_get_event_kind(kind) = 'ACPI_AUDIO_STREAM_STARTED'"
Common Issues
None
Integration
This command can be used with other Linux commands and tools for advanced tasks. For example, it can be used with grep
to filter AU events based on their normalized event kind:
auparse -e "auparse_normalize_get_event_kind(kind) = 'ACPI_AUDIO_STREAM_STARTED'" | grep "Sample Rate"