Capturing a hardware trace
Hardware traces are intended for use by IBM® Support. Hardware tracing is turned off by default. Turn on the hardware-tracing feature only when instructed to do so by IBM Support.
Before you begin
- The OSA-Express adapter must support the hardware-tracing feature.
- The qeth device must be online to return valid values of the hw_trap attribute.
About this task
Procedure
To activate or deactivate the hardware-tracing feature,
issue a command of the form:
# chzdev <device_bus_id> -a hw_trap=<value>
Where <value> can be:
- arm
- If the hardware-tracing feature is supported, write
arm
to the hw_trap sysfs attribute to activate it. If the hardware-tracing feature is present and activated, the hw_trap sysfs attribute has the valuearm
. - disarm
- Write
disarm
to the hw_trap sysfs attribute to turn off the hardware-tracing feature. If the hardware-tracing feature is not present or is turned off, the hw_trap sysfs attribute has the valuedisarm
. This setting is the default. - trap
- (Write only) Capture a hardware trace. Hardware traces are captured automatically, but if asked
to do so by IBM Support, you can start the capturing yourself
by writing
trap
to the hw_trap sysfs attribute. The hardware trap function must be set to arm.
Alternatively, use the sysfs attribute hw_trap
directly:
# echo <value> > /sys/devices/qeth/<device_bus_id>/hw_trap
Examples
In this example the hardware-tracing feature is activated for qeth device 0.0.a000:
# chzdev <device_bus_id> -a hw_trap=arm
Alternatively, using sysfs directly:
- Check that the hw_trap sysfs attribute is
set to arm:
# cat /sys/devices/qeth/0.0.a000/hw_trap arm
- Start the capture:
# echo trap > /sys/devices/qeth/0.0.a000/hw_trap