diff options
author | Ira Weiny <[email protected]> | 2024-04-01 22:31:58 -0700 |
---|---|---|
committer | Dave Jiang <[email protected]> | 2024-04-30 10:43:48 -0700 |
commit | 364ee9f3265e486772f445f437273a9c94b66d4b (patch) | |
tree | 3fe7d2c3ca82667881047a9dd48a6cc56e60ca8f /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 54e8dd59a76c031317eef61fef93f01d4e76fd3e (diff) |
cxl/test: Enhance event testing
An issue was found in the processing of event logs when the output
buffer length was not reset.[1]
This bug was not caught with cxl-test for 2 reasons. First, the test
harness mbox_send command [mock_get_event()] does not set the output
size based on the amount of data returned like the hardware command
does. Second, the simplistic event log testing always returned the same
number of elements per-get command.
Enhance the simulation of the event log mailbox to better match the bug
found with real hardware to cover potential regressions.
NOTE: These changes will cause cxl-events.sh in ndctl to fail without
the fix from Kwangjin. However, no changes to the user space test was
required. Therefore ndctl itself will be compatible with old or new
kernels once both patches land in the new kernel.
[1] Link: https://lore.kernel.org/all/[email protected]/
Cc: Kwangjin Ko <[email protected]>
Signed-off-by: Ira Weiny <[email protected]>
Reviewed-by: Jonathan Cameron <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Dave Jiang <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions