Messages in this thread | | | Date | Fri, 13 Jan 2023 13:27:03 +0000 | From | Jonathan Cameron <> | Subject | Re: [PATCH v6 6/8] cxl/test: Add generic mock events |
| |
On Mon, 09 Jan 2023 11:42:25 -0800 Ira Weiny <ira.weiny@intel.com> wrote:
> Facilitate testing basic Get/Clear Event functionality by creating > multiple logs and generic events with made up UUID's. > > Data is completely made up with data patterns which should be easy to > spot in trace output. > > A single sysfs entry resets the event data and triggers collecting the > events for testing. > > Test traces are easy to obtain with a small script such as this: > > #!/bin/bash -x > > devices=`find /sys/devices/platform -name cxl_mem*` > > # Turn on tracing > echo "" > /sys/kernel/tracing/trace > echo 1 > /sys/kernel/tracing/events/cxl/enable > echo 1 > /sys/kernel/tracing/tracing_on > > # Generate fake interrupt > for device in $devices; do > echo 1 > $device/event_trigger > done > > # Turn off tracing and report events > echo 0 > /sys/kernel/tracing/tracing_on > cat /sys/kernel/tracing/trace > > Reviewed-by: Dan Williams <dan.j.williams@intel.com> > Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Looks like it will test the kernel functionality in this patch set correctly to me.
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
| |