# Copyright 2023 The ChromiumOS Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. ACTION=="change", SUBSYSTEM=="drm", KERNEL=="card0", ENV{ERROR}=="1", \ RUN+="/sbin/crash_reporter --udev=KERNEL=card0:SUBSYSTEM=drm:ACTION=change" # For detecting cypress trackpad issue. Passing into crash_reporter # SUBSYSTEM=i2c-cyapa since crash_reporter does not handle DRIVER string. ACTION=="change", SUBSYSTEM=="i2c", DRIVER=="cyapa", ENV{ERROR}=="1", \ RUN+="/sbin/crash_reporter --udev=SUBSYSTEM=i2c-cyapa:ACTION=change" # For detecting Atmel trackpad/touchscreen issue. Passing into crash_reporter # SUBSYSTEM=i2c-atmel_mxt_ts since crash_reporter does not handle DRIVER string. ACTION=="change", SUBSYSTEM=="i2c", DRIVER=="atmel_mxt_ts", ENV{ERROR}=="1", \ RUN+="/sbin/crash_reporter --udev=SUBSYSTEM=i2c-atmel_mxt_ts:ACTION=change" ACTION=="add", SUBSYSTEM=="devcoredump", \ RUN+="/sbin/crash_reporter --udev=SUBSYSTEM=devcoredump:ACTION=add:KERNEL_NUMBER=%n" # For detecting usb controller issues. ACTION=="offline", SUBSYSTEM=="usb", ENV{ERROR}=="DEAD", \ RUN+="/sbin/crash_reporter --udev=SUBSYSTEM=usb:ACTION=dead" # This rule is used only in Tast integration tests to test crash reporting # via udev. ACTION=="change", ENV{DEVNAME}=="/dev/mapper/control", \ ENV{TAST_UDEV_TEST}=="crash", \ RUN+="/sbin/crash_reporter --udev=SUBSYSTEM=tast_udev_crash_test"