[stdlog] 2025-08-03 14:45:25,795 avocado.test INFO | INIT 1-./pcache.py:PcacheTest.test [stdlog] 2025-08-03 14:45:25,797 avocado.test DEBUG| PARAMS (key=timeout, path=*, default=None) => None [stdlog] 2025-08-03 14:45:25,798 avocado.test DEBUG| Test metadata: [stdlog] 2025-08-03 14:45:25,798 avocado.test DEBUG| filename: /workspace/dtg-tests/pcache.py [stdlog] 2025-08-03 14:45:25,798 avocado.test DEBUG| teststmpdir: /var/tmp/avocado_g1ec7hjc [stdlog] 2025-08-03 14:45:25,800 avocado.test INFO | START 1-./pcache.py:PcacheTest.test [stdlog] 2025-08-03 14:45:25,800 avocado.test DEBUG| PARAMS (key=striped, path=*, default=false) => False [stdlog] 2025-08-03 14:45:25,800 avocado.test DEBUG| PARAMS (key=gcov, path=*, default=false) => True [stdlog] 2025-08-03 14:45:25,800 avocado.test INFO | env_dict: {'linux_path': '/workspace/linux_compile', 'covdir': '/workspace/datatravelguide/covdir', 'gcov': 'true', 'cache_dev0': '/dev/pmem0', 'cache_dev1': '/dev/pmem1', 'cache_dev2': '/dev/pmem2', 'cache_dev3': '/dev/pmem3', 'striped': 'false', 'data_dev0': '/dev/ram0p1', 'data_dev1': '/dev/ram0p2', 'cache_mode': 'writeback', 'gc_percent': '80', 'data_crc': 'true', 'test_script': './pcache.py.data/pcache_misc.sh'} [stdlog] 2025-08-03 14:45:25,801 avocado.test DEBUG| PARAMS (key=test_script, path=*, default=None) => './pcache.py.data/pcache_misc.sh' [stdout] /workspace/dtg-tests [stdout] ===== Running case01_invalid_cache_mode.sh ===== [stdout] DEBUG: case 1 - invalid cache mode should fail [stdout] ===== Finished case01_invalid_cache_mode.sh ===== [stdout] ===== Running case02_invalid_data_crc.sh ===== [stdout] DEBUG: case 2 - invalid data_crc should fail [stdout] ===== Finished case02_invalid_data_crc.sh ===== [stdout] ===== Running case03_empty_cache_mode.sh ===== [stdout] DEBUG: case 3 - empty cache_mode should fail [stdout] ===== Finished case03_empty_cache_mode.sh ===== [stdout] ===== Running case04_empty_data_crc.sh ===== [stdout] DEBUG: case 4 - empty data_crc should fail [stdout] ===== Finished case04_empty_data_crc.sh ===== [stdout] ===== Running case05_create_no_optional_args.sh ===== [stdout] DEBUG: case 5 - create without optional arguments [stdout] ===== Finished case05_create_no_optional_args.sh ===== [stdout] ===== Running case06_cache_mode_only.sh ===== [stdout] DEBUG: case 6 - cache_mode only [stdout] ===== Finished case06_cache_mode_only.sh ===== [stdout] ===== Running case07_data_crc_only.sh ===== [stdout] DEBUG: case 7 - data_crc only [stdout] ===== Finished case07_data_crc_only.sh ===== [stdout] ===== Running case08_invalid_optional_args.sh ===== [stdout] DEBUG: case 8 - invalid number_of_optional_arguments should fail [stdout] ===== Finished case08_invalid_optional_args.sh ===== [stdout] ===== Running case09_gc_percent_checks.sh ===== [stdout] DEBUG: case 9 - basic create and gc_percent message checks [stdout] ===== Finished case09_gc_percent_checks.sh ===== [stdout] ===== Running case10_persistence_after_recreate.sh ===== [stdout] DEBUG: case 10 - data persistence after remove and recreate [stdout] Creating filesystem with 2621440 4k blocks and 655360 inodes [stdout] Filesystem UUID: 4f0a60d0-b2b4-49e1-a483-f6c3edabb65d [stdout] Superblock backups stored on blocks: [stdout] 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632 [stdout] [stdout] Allocating group tables: 0/80 done [stdout] Writing inode tables: 0/80 done [stdout] Creating journal (16384 blocks): done [stdout] Writing superblocks and filesystem accounting information: 0/80 done [stdout] [stdout] ===== Finished case10_persistence_after_recreate.sh ===== [stdout] ===== Running case11_remove_while_fio.sh ===== [stdout] DEBUG: case 11 - remove pcache while fio running [stdout] pcachetest: (g=0): rw=randwrite, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=libaio, iodepth=1 [stdout] fio-3.36 [stdout] Starting 1 process [stdout] fio: pid=1746897, err=5/file:io_u.c:1896, func=io_u error, error=Input/output error [stdout] [stdout] pcachetest: (groupid=0, jobs=1): err= 5 (file:io_u.c:1896, func=io_u error, error=Input/output error): pid=1746897: Sun Aug 3 14:45:50 2025 [stdout] write: IOPS=92.8k, BW=362MiB/s (380MB/s)(678MiB/1872msec); 0 zone resets [stdout] slat (usec): min=6, max=455, avg= 7.87, stdev= 3.17 [stdout] clat (nsec): min=1147, max=93950, avg=1305.73, stdev=748.79 [stdout] lat (usec): min=7, max=476, avg= 9.18, stdev= 3.43 [stdout] clat percentiles (nsec): [stdout] | 1.00th=[ 1192], 5.00th=[ 1192], 10.00th=[ 1208], 20.00th=[ 1208], [stdout] | 30.00th=[ 1224], 40.00th=[ 1224], 50.00th=[ 1224], 60.00th=[ 1240], [stdout] | 70.00th=[ 1240], 80.00th=[ 1256], 90.00th=[ 1304], 95.00th=[ 1400], [stdout] | 99.00th=[ 3504], 99.50th=[ 3568], 99.90th=[10304], 99.95th=[13632], [stdout] | 99.99th=[27520] [stdout] bw ( KiB/s): min=379409, max=410896, per=100.00%, avg=397040.33, stdev=16079.48, samples=3 [stdout] iops : min=94852, max=102724, avg=99260.00, stdev=4020.01, samples=3 [stdout] lat (usec) : 2=97.77%, 4=2.01%, 10=0.11%, 20=0.09%, 50=0.02% [stdout] lat (usec) : 100=0.01% [stdout] cpu : usr=22.61%, sys=70.98%, ctx=22, majf=0, minf=21 [stdout] IO depths : 1=100.0%, 2=0.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.0%, >=64=0.0% [stdout] submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% [stdout] complete : 0=0.1%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% [stdout] issued rwts: total=0,173659,0,0 short=0,0,0,0 dropped=0,0,0,0 [stdout] latency : target=0, window=0, percentile=100.00%, depth=1 [stdout] [stdout] Run status group 0 (all jobs): [stdout] WRITE: bw=362MiB/s (380MB/s), 362MiB/s-362MiB/s (380MB/s-380MB/s), io=678MiB (711MB), run=1872-1872msec [stdout] ===== Finished case11_remove_while_fio.sh ===== [stdout] ===== Running case12_fail_after_crc_change.sh ===== [stdout] DEBUG: case 12 - dmsetup create should fail after data_crc change [stdout] ===== Finished case12_fail_after_crc_change.sh ===== [stdout] ===== Running case13_flush_cache_persistence.sh ===== [stdout] DEBUG: case 13 - flush cached data and verify persistence [stdout] Creating filesystem with 2621440 4k blocks and 655360 inodes [stdout] Filesystem UUID: c5622464-97fc-496a-8d07-11c21b4dc5df [stdout] Superblock backups stored on blocks: [stdout] 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632 [stdout] [stdout] Allocating group tables: 0/80 done [stdout] Writing inode tables: 0/80 done [stdout] Creating journal (16384 blocks): done [stdout] Writing superblocks and filesystem accounting information: 0/80 done [stdout] [stdout] ===== Finished case13_flush_cache_persistence.sh ===== [stdout] ===== Running case14_heavy_io_consistency.sh ===== [stdout] DEBUG: case 14 - verify data consistency under heavy IO [stdout] Creating filesystem with 2621440 4k blocks and 655360 inodes [stdout] Filesystem UUID: 6e1ee1d8-f219-414a-b55d-8e56e410fbe9 [stdout] Superblock backups stored on blocks: [stdout] 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632 [stdout] [stdout] Allocating group tables: 0/80 done [stdout] Writing inode tables: 0/80 done [stdout] Creating journal (16384 blocks): done [stdout] Writing superblocks and filesystem accounting information: 0/80 done [stdout] [stdout] pcacheheavy: (g=0): rw=randwrite, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=libaio, iodepth=16 [stdout] ... [stdout] fio-3.36 [stdout] Starting 4 processes [stdout] pcacheheavy: Laying out IO file (1 file / 100MiB) [stdout] [stdout] pcacheheavy: (groupid=0, jobs=1): err= 0: pid=1747792: Sun Aug 3 14:46:30 2025 [stdout] write: IOPS=23.9k, BW=93.5MiB/s (98.1MB/s)(1871MiB/20001msec); 0 zone resets [stdout] slat (usec): min=5, max=3042, avg=14.57, stdev= 7.95 [stdout] clat (usec): min=4, max=4215.0k, avg=652.55, stdev=39394.95 [stdout] lat (usec): min=21, max=4215.0k, avg=667.11, stdev=39394.88 [stdout] clat percentiles (usec): [stdout] | 1.00th=[ 210], 5.00th=[ 215], 10.00th=[ 219], [stdout] | 20.00th=[ 227], 30.00th=[ 233], 40.00th=[ 239], [stdout] | 50.00th=[ 243], 60.00th=[ 249], 70.00th=[ 255], [stdout] | 80.00th=[ 262], 90.00th=[ 273], 95.00th=[ 310], [stdout] | 99.00th=[ 685], 99.50th=[ 766], 99.90th=[ 1352], [stdout] | 99.95th=[ 1500], 99.99th=[3539993] [stdout] bw ( KiB/s): min=31800, max=268528, per=51.86%, avg=200538.68, stdev=73527.98, samples=19 [stdout] iops : min= 7950, max=67132, avg=50134.84, stdev=18381.99, samples=19 [stdout] lat (usec) : 10=0.01%, 50=0.01%, 100=0.01%, 250=62.09%, 500=35.71% [stdout] lat (usec) : 750=1.65%, 1000=0.29% [stdout] lat (msec) : 2=0.23%, 4=0.01%, 10=0.01%, 20=0.01%, >=2000=0.01% [stdout] cpu : usr=6.00%, sys=34.69%, ctx=730, majf=0, minf=15 [stdout] IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=100.0%, 32=0.0%, >=64=0.0% [stdout] submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% [stdout] complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.1%, 32=0.0%, 64=0.0%, >=64=0.0% [stdout] issued rwts: total=0,478889,0,0 short=0,0,0,0 dropped=0,0,0,0 [stdout] latency : target=0, window=0, percentile=100.00%, depth=16 [stdout] pcacheheavy: (groupid=0, jobs=1): err= 0: pid=1747793: Sun Aug 3 14:46:30 2025 [stdout] write: IOPS=23.8k, BW=92.9MiB/s (97.4MB/s)(1858MiB/20001msec); 0 zone resets [stdout] slat (usec): min=5, max=3310, avg=14.80, stdev= 7.37 [stdout] clat (usec): min=3, max=4180.6k, avg=656.67, stdev=39345.56 [stdout] lat (usec): min=18, max=4180.6k, avg=671.47, stdev=39345.49 [stdout] clat percentiles (usec): [stdout] | 1.00th=[ 217], 5.00th=[ 223], 10.00th=[ 229], [stdout] | 20.00th=[ 235], 30.00th=[ 241], 40.00th=[ 245], [stdout] | 50.00th=[ 249], 60.00th=[ 253], 70.00th=[ 260], [stdout] | 80.00th=[ 265], 90.00th=[ 277], 95.00th=[ 310], [stdout] | 99.00th=[ 660], 99.50th=[ 717], 99.90th=[ 1287], [stdout] | 99.95th=[ 1418], 99.99th=[3539993] [stdout] bw ( KiB/s): min=36055, max=258200, per=51.25%, avg=198188.11, stdev=68270.52, samples=19 [stdout] iops : min= 9013, max=64550, avg=49546.95, stdev=17067.79, samples=19 [stdout] lat (usec) : 4=0.01%, 50=0.01%, 100=0.01%, 250=51.46%, 500=46.62% [stdout] lat (usec) : 750=1.56%, 1000=0.20% [stdout] lat (msec) : 2=0.14%, 4=0.01%, 10=0.01%, 20=0.01%, >=2000=0.01% [stdout] cpu : usr=6.74%, sys=34.48%, ctx=30, majf=0, minf=14 [stdout] IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=100.0%, 32=0.0%, >=64=0.0% [stdout] submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% [stdout] complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.1%, 32=0.0%, 64=0.0%, >=64=0.0% [stdout] issued rwts: total=0,475764,0,0 short=0,0,0,0 dropped=0,0,0,0 [stdout] latency : target=0, window=0, percentile=100.00%, depth=16 [stdout] pcacheheavy: (groupid=0, jobs=1): err= 0: pid=1747794: Sun Aug 3 14:46:30 2025 [stdout] write: IOPS=24.3k, BW=94.9MiB/s (99.5MB/s)(1898MiB/20001msec); 0 zone resets [stdout] slat (usec): min=5, max=1477, avg=14.34, stdev= 6.69 [stdout] clat (usec): min=3, max=4165.3k, avg=643.01, stdev=38807.25 [stdout] lat (usec): min=17, max=4165.3k, avg=657.35, stdev=38807.18 [stdout] clat percentiles (usec): [stdout] | 1.00th=[ 212], 5.00th=[ 219], 10.00th=[ 223], 20.00th=[ 227], [stdout] | 30.00th=[ 231], 40.00th=[ 235], 50.00th=[ 239], 60.00th=[ 243], [stdout] | 70.00th=[ 249], 80.00th=[ 255], 90.00th=[ 273], 95.00th=[ 330], [stdout] | 99.00th=[ 676], 99.50th=[ 734], 99.90th=[ 1336], 99.95th=[ 1483], [stdout] | 99.99th=[20055] [stdout] bw ( KiB/s): min=37852, max=259464, per=52.38%, avg=202550.42, stdev=72873.98, samples=19 [stdout] iops : min= 9463, max=64866, avg=50637.58, stdev=18218.53, samples=19 [stdout] lat (usec) : 4=0.01%, 50=0.01%, 100=0.01%, 250=73.13%, 500=23.81% [stdout] lat (usec) : 750=2.66%, 1000=0.24% [stdout] lat (msec) : 2=0.14%, 4=0.01%, 10=0.01%, 20=0.01%, 50=0.01% [stdout] lat (msec) : >=2000=0.01% [stdout] cpu : usr=6.79%, sys=34.49%, ctx=114, majf=0, minf=13 [stdout] IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=100.0%, 32=0.0%, >=64=0.0% [stdout] submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% [stdout] complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.1%, 32=0.0%, 64=0.0%, >=64=0.0% [stdout] issued rwts: total=0,485964,0,0 short=0,0,0,0 dropped=0,0,0,0 [stdout] latency : target=0, window=0, percentile=100.00%, depth=16 [stdout] pcacheheavy: (groupid=0, jobs=1): err= 0: pid=1747795: Sun Aug 3 14:46:30 2025 [stdout] write: IOPS=24.6k, BW=96.3MiB/s (101MB/s)(1926MiB/20001msec); 0 zone resets [stdout] slat (usec): min=4, max=3314, avg=14.26, stdev= 8.16 [stdout] clat (usec): min=3, max=4180.4k, avg=633.69, stdev=38504.29 [stdout] lat (usec): min=18, max=4180.4k, avg=647.95, stdev=38504.22 [stdout] clat percentiles (usec): [stdout] | 1.00th=[ 210], 5.00th=[ 215], 10.00th=[ 219], 20.00th=[ 223], [stdout] | 30.00th=[ 227], 40.00th=[ 231], 50.00th=[ 235], 60.00th=[ 239], [stdout] | 70.00th=[ 245], 80.00th=[ 251], 90.00th=[ 273], 95.00th=[ 338], [stdout] | 99.00th=[ 693], 99.50th=[ 799], 99.90th=[ 1303], 99.95th=[ 1483], [stdout] | 99.99th=[19006] [stdout] bw ( KiB/s): min=32207, max=263392, per=53.04%, avg=205093.58, stdev=73939.67, samples=19 [stdout] iops : min= 8051, max=65848, avg=51273.32, stdev=18485.06, samples=19 [stdout] lat (usec) : 4=0.01%, 50=0.01%, 100=0.01%, 250=78.06%, 500=18.93% [stdout] lat (usec) : 750=2.35%, 1000=0.40% [stdout] lat (msec) : 2=0.23%, 4=0.01%, 10=0.01%, 20=0.01%, >=2000=0.01% [stdout] cpu : usr=6.62%, sys=34.81%, ctx=35, majf=0, minf=15 [stdout] IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=100.0%, 32=0.0%, >=64=0.0% [stdout] submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% [stdout] complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.1%, 32=0.0%, 64=0.0%, >=64=0.0% [stdout] issued rwts: total=0,493004,0,0 short=0,0,0,0 dropped=0,0,0,0 [stdout] latency : target=0, window=0, percentile=100.00%, depth=16 [stdout] [stdout] Run status group 0 (all jobs): [stdout] WRITE: bw=378MiB/s (396MB/s), 92.9MiB/s-96.3MiB/s (97.4MB/s-101MB/s), io=7553MiB (7920MB), run=20001-20001msec [stdout] [stdout] Disk stats (read/write): [stdout] dm-0: ios=6/1915643, sectors=48/15651496, merge=0/0, ticks=0/503752, in_queue=503752, util=91.65%, aggrios=0/0, aggsectors=0/0, aggrmerge=0/0, aggrticks=0/0, aggrin_queue=0, aggrutil=0.00% [stdout] pmem0: ios=0/0, sectors=0/0, merge=0/0, ticks=0/0, in_queue=0, util=0.00% [stdout] ram0: ios=0/0, sectors=0/0, merge=0/0, ticks=0/0, in_queue=0, util=0.00% [stdout] ===== Finished case14_heavy_io_consistency.sh ===== [stdout] ===== Running case15_fail_after_cache_mode_change.sh ===== [stdout] DEBUG: case 15 - dmsetup create should fail after cache_mode change [stdout] ===== Finished case15_fail_after_cache_mode_change.sh ===== [stdout] ===== Running case16_writethrough_persistence.sh ===== [stdout] cache_mode is writeback, skipping writethrough test [stdout] ===== Finished case16_writethrough_persistence.sh ===== [stdout] ===== Running case17_writearound_behavior.sh ===== [stdout] cache_mode is writeback, skipping writearound test [stdout] ===== Finished case17_writearound_behavior.sh ===== [stdout] ===== Running case18_writeonly_behavior.sh ===== [stdout] cache_mode is writeback, skipping writeonly test [stdout] ===== Finished case18_writeonly_behavior.sh ===== [stdout] ===== Running case19_dmsetup_table_output.sh ===== [stdout] DEBUG: case 19 - verify dmsetup table output matches create parameters [stdout] ===== Finished case19_dmsetup_table_output.sh ===== [stdout] [stdout] + : /workspace/datatravelguide/covdir [stdout] + : true [stdout] + : /workspace/linux_compile [stdout] + : false [stdout] + : /dev/pmem0 [stdout] + : /dev/pmem1 [stdout] + : true [stdout] + : 80 [stdout] + : /dev/ram0p1 [stdout] + : /dev/ram0p2 [stdout] + : writeback [stdout] ++ basename /dev/ram0p1 [stdout] + dm_name0=pcache_ram0p1 [stdout] ++ basename /dev/ram0p2 [stdout] + dm_name1=pcache_ram0p2 [stdout] + pmem_a=/dev/pmem0 [stdout] + pmem_b=/dev/pmem1 [stdout] + export pmem_a pmem_b [stdout] + [[ false == \t\r\u\e ]] [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754232325 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232325 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232325 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + true [stdout] + pcache_insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00223205 s, 470 MB/s [stdout] ++ sudo blockdev --getsz /dev/ram0p1 [stdout] + SEC_NR=20971520 [stdout] + sudo dmsetup create pcache_ram0p1_probe --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc true' [stdout] + sudo dmsetup remove pcache_ram0p1_probe [stdout] + export linux_path cache_dev0 data_crc gc_percent data_dev0 data_dev1 cache_mode dm_name0 dm_name1 [stdout] + export -f reset_pmem [stdout] ++ dirname ./pcache.py.data/pcache_misc.sh [stdout] + test_dir=./pcache.py.data/pcache_misc_tests [stdout] + for tc in "$test_dir"/*.sh [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case01_invalid_cache_mode.sh [stdout] + echo '===== Running case01_invalid_cache_mode.sh =====' [stdout] + bash ./pcache.py.data/pcache_misc_tests/case01_invalid_cache_mode.sh [stdout] + : /workspace/datatravelguide/covdir [stdout] + : true [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754232326 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232326 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232326 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + pcache_insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + : writeback [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00212166 s, 494 MB/s [stdout] + sync [stdout] ++ sudo blockdev --getsz /dev/ram0p1 [stdout] + SEC_NR=20971520 [stdout] + sudo dmsetup create pcache_ram0p1_probe --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc true' [stdout] + sudo dmsetup remove pcache_ram0p1_probe [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00220692 s, 475 MB/s [stdout] + sync [stdout] + echo 'DEBUG: case 1 - invalid cache mode should fail' [stdout] + sudo dmsetup create pcache_invalid --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode invalid data_crc true' [stdout] device-mapper: reload ioctl on pcache_invalid (252:0) failed: Invalid argument [stdout] Command failed. [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754232328 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232328 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232328 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case01_invalid_cache_mode.sh [stdout] + echo '===== Finished case01_invalid_cache_mode.sh =====' [stdout] + for tc in "$test_dir"/*.sh [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case02_invalid_data_crc.sh [stdout] + echo '===== Running case02_invalid_data_crc.sh =====' [stdout] + bash ./pcache.py.data/pcache_misc_tests/case02_invalid_data_crc.sh [stdout] + : /workspace/datatravelguide/covdir [stdout] + : true [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754232328 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232328 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232328 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + true [stdout] + pcache_insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + : writeback [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00196326 s, 534 MB/s [stdout] + sync [stdout] ++ sudo blockdev --getsz /dev/ram0p1 [stdout] + SEC_NR=20971520 [stdout] + sudo dmsetup create pcache_ram0p1_probe --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc true' [stdout] + sudo dmsetup remove pcache_ram0p1_probe [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00222034 s, 472 MB/s [stdout] + sync [stdout] + echo 'DEBUG: case 2 - invalid data_crc should fail' [stdout] + sudo dmsetup create pcache_invalid --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc invalid' [stdout] device-mapper: reload ioctl on pcache_invalid (252:0) failed: Invalid argument [stdout] Command failed. [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754232329 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232329 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232329 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case02_invalid_data_crc.sh [stdout] + echo '===== Finished case02_invalid_data_crc.sh =====' [stdout] + for tc in "$test_dir"/*.sh [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case03_empty_cache_mode.sh [stdout] + echo '===== Running case03_empty_cache_mode.sh =====' [stdout] + bash ./pcache.py.data/pcache_misc_tests/case03_empty_cache_mode.sh [stdout] + : /workspace/datatravelguide/covdir [stdout] + : true [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754232330 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232330 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232330 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + true [stdout] + pcache_insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + : writeback [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00192345 s, 545 MB/s [stdout] + sync [stdout] ++ sudo blockdev --getsz /dev/ram0p1 [stdout] + SEC_NR=20971520 [stdout] + sudo dmsetup create pcache_ram0p1_probe --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc true' [stdout] + sudo dmsetup remove pcache_ram0p1_probe [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00212541 s, 493 MB/s [stdout] + sync [stdout] + echo 'DEBUG: case 3 - empty cache_mode should fail' [stdout] + sudo dmsetup create pcache_invalid --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 data_crc true' [stdout] device-mapper: reload ioctl on pcache_invalid (252:0) failed: Invalid argument [stdout] Command failed. [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754232331 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232331 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232331 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case03_empty_cache_mode.sh [stdout] + echo '===== Finished case03_empty_cache_mode.sh =====' [stdout] + for tc in "$test_dir"/*.sh [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case04_empty_data_crc.sh [stdout] + echo '===== Running case04_empty_data_crc.sh =====' [stdout] + bash ./pcache.py.data/pcache_misc_tests/case04_empty_data_crc.sh [stdout] + : /workspace/datatravelguide/covdir [stdout] + : true [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754232332 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232332 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232332 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + true [stdout] + pcache_insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + : writeback [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00271473 s, 386 MB/s [stdout] + sync [stdout] ++ sudo blockdev --getsz /dev/ram0p1 [stdout] + SEC_NR=20971520 [stdout] + sudo dmsetup create pcache_ram0p1_probe --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc true' [stdout] + sudo dmsetup remove pcache_ram0p1_probe [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00202722 s, 517 MB/s [stdout] + sync [stdout] + echo 'DEBUG: case 4 - empty data_crc should fail' [stdout] + sudo dmsetup create pcache_invalid --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback' [stdout] device-mapper: reload ioctl on pcache_invalid (252:0) failed: Invalid argument [stdout] Command failed. [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754232333 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232333 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232333 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case04_empty_data_crc.sh [stdout] + echo '===== Finished case04_empty_data_crc.sh =====' [stdout] + for tc in "$test_dir"/*.sh [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case05_create_no_optional_args.sh [stdout] + echo '===== Running case05_create_no_optional_args.sh =====' [stdout] + bash ./pcache.py.data/pcache_misc_tests/case05_create_no_optional_args.sh [stdout] + : /workspace/datatravelguide/covdir [stdout] + : true [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754232334 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232334 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232334 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + true [stdout] + pcache_insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + : writeback [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00219255 s, 478 MB/s [stdout] + sync [stdout] ++ sudo blockdev --getsz /dev/ram0p1 [stdout] + SEC_NR=20971520 [stdout] + sudo dmsetup create pcache_ram0p1_probe --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc true' [stdout] + sudo dmsetup remove pcache_ram0p1_probe [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00211881 s, 495 MB/s [stdout] + sync [stdout] + echo 'DEBUG: case 5 - create without optional arguments' [stdout] + sudo dmsetup create pcache_ram0p1 --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1' [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754232335 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232335 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232335 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case05_create_no_optional_args.sh [stdout] + echo '===== Finished case05_create_no_optional_args.sh =====' [stdout] + for tc in "$test_dir"/*.sh [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case06_cache_mode_only.sh [stdout] + echo '===== Running case06_cache_mode_only.sh =====' [stdout] + bash ./pcache.py.data/pcache_misc_tests/case06_cache_mode_only.sh [stdout] + : /workspace/datatravelguide/covdir [stdout] + : true [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754232336 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232336 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232336 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + true [stdout] + pcache_insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + : writeback [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00206668 s, 507 MB/s [stdout] + sync [stdout] ++ sudo blockdev --getsz /dev/ram0p1 [stdout] + SEC_NR=20971520 [stdout] + sudo dmsetup create pcache_ram0p1_probe --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc true' [stdout] + sudo dmsetup remove pcache_ram0p1_probe [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00227413 s, 461 MB/s [stdout] + sync [stdout] + echo 'DEBUG: case 6 - cache_mode only' [stdout] + sudo dmsetup create pcache_ram0p1 --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 2 cache_mode writeback' [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754232337 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232337 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232337 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case06_cache_mode_only.sh [stdout] + echo '===== Finished case06_cache_mode_only.sh =====' [stdout] + for tc in "$test_dir"/*.sh [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case07_data_crc_only.sh [stdout] + echo '===== Running case07_data_crc_only.sh =====' [stdout] + bash ./pcache.py.data/pcache_misc_tests/case07_data_crc_only.sh [stdout] + : /workspace/datatravelguide/covdir [stdout] + : true [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754232338 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232338 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232338 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + true [stdout] + pcache_insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + : writeback [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00202102 s, 519 MB/s [stdout] + sync [stdout] ++ sudo blockdev --getsz /dev/ram0p1 [stdout] + SEC_NR=20971520 [stdout] + sudo dmsetup create pcache_ram0p1_probe --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc true' [stdout] + sudo dmsetup remove pcache_ram0p1_probe [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00218283 s, 480 MB/s [stdout] + sync [stdout] + echo 'DEBUG: case 7 - data_crc only' [stdout] + sudo dmsetup create pcache_ram0p1 --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 2 data_crc true' [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754232339 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232339 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232339 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case07_data_crc_only.sh [stdout] + echo '===== Finished case07_data_crc_only.sh =====' [stdout] + for tc in "$test_dir"/*.sh [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case08_invalid_optional_args.sh [stdout] + echo '===== Running case08_invalid_optional_args.sh =====' [stdout] + bash ./pcache.py.data/pcache_misc_tests/case08_invalid_optional_args.sh [stdout] + : /workspace/datatravelguide/covdir [stdout] + : true [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754232340 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232340 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232340 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + true [stdout] + pcache_insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + : writeback [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00231559 s, 453 MB/s [stdout] + sync [stdout] ++ sudo blockdev --getsz /dev/ram0p1 [stdout] + SEC_NR=20971520 [stdout] + sudo dmsetup create pcache_ram0p1_probe --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc true' [stdout] + sudo dmsetup remove pcache_ram0p1_probe [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00212374 s, 494 MB/s [stdout] + sync [stdout] + echo 'DEBUG: case 8 - invalid number_of_optional_arguments should fail' [stdout] + sudo dmsetup create pcache_invalid --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 INVAL cache_mode writeback data_crc true' [stdout] device-mapper: reload ioctl on pcache_invalid (252:0) failed: Invalid argument [stdout] Command failed. [stdout] + sudo dmsetup create pcache_invalid --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 100 cache_mode writeback data_crc true' [stdout] device-mapper: reload ioctl on pcache_invalid (252:0) failed: Invalid argument [stdout] Command failed. [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754232341 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232341 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232341 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case08_invalid_optional_args.sh [stdout] + echo '===== Finished case08_invalid_optional_args.sh =====' [stdout] + for tc in "$test_dir"/*.sh [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case09_gc_percent_checks.sh [stdout] + echo '===== Running case09_gc_percent_checks.sh =====' [stdout] + bash ./pcache.py.data/pcache_misc_tests/case09_gc_percent_checks.sh [stdout] + : /workspace/datatravelguide/covdir [stdout] + : true [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754232342 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232342 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232342 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + true [stdout] + pcache_insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + : writeback [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00202566 s, 518 MB/s [stdout] + sync [stdout] ++ sudo blockdev --getsz /dev/ram0p1 [stdout] + SEC_NR=20971520 [stdout] + sudo dmsetup create pcache_ram0p1_probe --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc true' [stdout] + sudo dmsetup remove pcache_ram0p1_probe [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00215661 s, 486 MB/s [stdout] + sync [stdout] + echo 'DEBUG: case 9 - basic create and gc_percent message checks' [stdout] + sudo dmsetup create pcache_ram0p1 --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc true' [stdout] + sudo dmsetup message pcache_ram0p1 0 gc_percent 91 [stdout] device-mapper: message ioctl on pcache_ram0p1 failed: Invalid argument [stdout] Command failed. [stdout] + sudo dmsetup message pcache_ram0p1 0 gc_percent -1 [stdout] dmsetup: invalid option -- '1' [stdout] Couldn't process command line. [stdout] + sudo dmsetup message pcache_ram0p1 0 gc_percent '' [stdout] device-mapper: message ioctl on pcache_ram0p1 failed: Invalid argument [stdout] Command failed. [stdout] + sudo dmsetup message pcache_ram0p1 0 gc_percent bad [stdout] device-mapper: message ioctl on pcache_ram0p1 failed: Invalid argument [stdout] Command failed. [stdout] + [[ -n 80 ]] [stdout] + sudo dmsetup message pcache_ram0p1 0 gc_percent 80 [stdout] + sudo dmsetup message pcache_ram0p1 0 invalid_cmd 1 [stdout] device-mapper: message ioctl on pcache_ram0p1 failed: Invalid argument [stdout] Command failed. [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754232343 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232343 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232343 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case09_gc_percent_checks.sh [stdout] + echo '===== Finished case09_gc_percent_checks.sh =====' [stdout] + for tc in "$test_dir"/*.sh [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case10_persistence_after_recreate.sh [stdout] + echo '===== Running case10_persistence_after_recreate.sh =====' [stdout] + bash ./pcache.py.data/pcache_misc_tests/case10_persistence_after_recreate.sh [stdout] + : /workspace/datatravelguide/covdir [stdout] + : true [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754232344 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232344 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232344 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + true [stdout] + pcache_insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + : writeback [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.0020726 s, 506 MB/s [stdout] + sync [stdout] ++ sudo blockdev --getsz /dev/ram0p1 [stdout] + SEC_NR=20971520 [stdout] + sudo dmsetup create pcache_ram0p1_probe --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc true' [stdout] + sudo dmsetup remove pcache_ram0p1_probe [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00223772 s, 469 MB/s [stdout] + sync [stdout] ++ sudo blockdev --getsz /dev/ram0p1 [stdout] + SEC_NR=20971520 [stdout] + sudo dmsetup create pcache_ram0p1 --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc true' [stdout] + echo 'DEBUG: case 10 - data persistence after remove and recreate' [stdout] + sudo mkfs.ext4 -F /dev/mapper/pcache_ram0p1 [stdout] mke2fs 1.47.0 (5-Feb-2023) [stdout] + sudo mkdir -p /mnt/pcache [stdout] + sudo mount /dev/mapper/pcache_ram0p1 /mnt/pcache [stdout] + dd if=/dev/urandom of=/mnt/pcache/testfile bs=1M count=10 [stdout] 10+0 records in [stdout] 10+0 records out [stdout] 10485760 bytes (10 MB, 10 MiB) copied, 0.0882868 s, 119 MB/s [stdout] ++ md5sum /mnt/pcache/testfile [stdout] ++ awk '{print $1}' [stdout] + orig_md5=37f09abefcbbe64dcd45b435146b74f4 [stdout] + sudo umount /mnt/pcache [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + sudo dmsetup create pcache_ram0p1 --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc true' [stdout] + sudo mount /dev/mapper/pcache_ram0p1 /mnt/pcache [stdout] ++ md5sum /mnt/pcache/testfile [stdout] ++ awk '{print $1}' [stdout] + new_md5=37f09abefcbbe64dcd45b435146b74f4 [stdout] + [[ 37f09abefcbbe64dcd45b435146b74f4 != \3\7\f\0\9\a\b\e\f\c\b\b\e\6\4\d\c\d\4\5\b\4\3\5\1\4\6\b\7\4\f\4 ]] [stdout] + sudo umount /mnt/pcache [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754232346 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232346 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232346 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case10_persistence_after_recreate.sh [stdout] + echo '===== Finished case10_persistence_after_recreate.sh =====' [stdout] + for tc in "$test_dir"/*.sh [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case11_remove_while_fio.sh [stdout] + echo '===== Running case11_remove_while_fio.sh =====' [stdout] + bash ./pcache.py.data/pcache_misc_tests/case11_remove_while_fio.sh [stdout] + : /workspace/datatravelguide/covdir [stdout] + : true [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754232347 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232347 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232347 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + true [stdout] + pcache_insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + : writeback [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00231362 s, 453 MB/s [stdout] + sync [stdout] ++ sudo blockdev --getsz /dev/ram0p1 [stdout] + SEC_NR=20971520 [stdout] + sudo dmsetup create pcache_ram0p1_probe --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc true' [stdout] + sudo dmsetup remove pcache_ram0p1_probe [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00227931 s, 460 MB/s [stdout] + sync [stdout] + echo 'DEBUG: case 11 - remove pcache while fio running' [stdout] ++ sudo blockdev --getsz /dev/ram0p1 [stdout] + SEC_NR=20971520 [stdout] + sudo dmsetup create pcache_ram0p1 --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc true' [stdout] + fio_pid=1746889 [stdout] + fio --name=pcachetest --filename=/dev/mapper/pcache_ram0p1 --rw=randwrite --bs=4k --runtime=10 --time_based=1 --ioengine=libaio --direct=1 [stdout] + sleep 2 [stdout] + sudo dmsetup remove --force pcache_ram0p1 [stdout] fio: io_u error on file /dev/mapper/pcache_ram0p1: Input/output error: write offset=8308670464, buflen=4096 [stdout] + wait 1746889 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754232350 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232350 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232350 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case11_remove_while_fio.sh [stdout] + echo '===== Finished case11_remove_while_fio.sh =====' [stdout] + for tc in "$test_dir"/*.sh [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case12_fail_after_crc_change.sh [stdout] + echo '===== Running case12_fail_after_crc_change.sh =====' [stdout] + bash ./pcache.py.data/pcache_misc_tests/case12_fail_after_crc_change.sh [stdout] + : /workspace/datatravelguide/covdir [stdout] + : true [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754232351 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232351 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232351 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + true [stdout] + pcache_insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + : writeback [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00222065 s, 472 MB/s [stdout] + sync [stdout] ++ sudo blockdev --getsz /dev/ram0p1 [stdout] + SEC_NR=20971520 [stdout] + sudo dmsetup create pcache_ram0p1_probe --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc true' [stdout] + sudo dmsetup remove pcache_ram0p1_probe [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00227714 s, 460 MB/s [stdout] + sync [stdout] + echo 'DEBUG: case 12 - dmsetup create should fail after data_crc change' [stdout] ++ sudo blockdev --getsz /dev/ram0p1 [stdout] + SEC_NR=20971520 [stdout] + sudo dmsetup create pcache_ram0p1 --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc true' [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + [[ true == \t\r\u\e ]] [stdout] + new_crc=false [stdout] + sudo dmsetup create pcache_ram0p1 --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc false' [stdout] device-mapper: reload ioctl on pcache_ram0p1 (252:0) failed: Invalid argument [stdout] Command failed. [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754232352 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232352 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232352 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case12_fail_after_crc_change.sh [stdout] + echo '===== Finished case12_fail_after_crc_change.sh =====' [stdout] + for tc in "$test_dir"/*.sh [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case13_flush_cache_persistence.sh [stdout] + echo '===== Running case13_flush_cache_persistence.sh =====' [stdout] + bash ./pcache.py.data/pcache_misc_tests/case13_flush_cache_persistence.sh [stdout] + : /workspace/datatravelguide/covdir [stdout] + : true [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754232353 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232353 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232353 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + true [stdout] + pcache_insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + : writeback [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00222783 s, 471 MB/s [stdout] + sync [stdout] ++ sudo blockdev --getsz /dev/ram0p1 [stdout] + SEC_NR=20971520 [stdout] + sudo dmsetup create pcache_ram0p1_probe --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc true' [stdout] + sudo dmsetup remove pcache_ram0p1_probe [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00224498 s, 467 MB/s [stdout] + sync [stdout] + echo 'DEBUG: case 13 - flush cached data and verify persistence' [stdout] ++ sudo blockdev --getsz /dev/ram0p1 [stdout] + SEC_NR=20971520 [stdout] + sudo dmsetup create pcache_ram0p1 --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc true' [stdout] + sudo mkfs.ext4 -F /dev/mapper/pcache_ram0p1 [stdout] mke2fs 1.47.0 (5-Feb-2023) [stdout] + sudo mkdir -p /mnt/pcache [stdout] + sudo mount /dev/mapper/pcache_ram0p1 /mnt/pcache [stdout] + dd if=/dev/urandom of=/mnt/pcache/persistfile bs=1M count=5 [stdout] 5+0 records in [stdout] 5+0 records out [stdout] 5242880 bytes (5.2 MB, 5.0 MiB) copied, 0.053219 s, 98.5 MB/s [stdout] ++ md5sum /mnt/pcache/persistfile [stdout] ++ awk '{print $1}' [stdout] + orig_md5=cab0144f058a298c78d326a3ad80ea54 [stdout] + sudo umount /mnt/pcache [stdout] + sudo dmsetup message pcache_ram0p1 0 gc_percent 0 [stdout] + true [stdout] ++ sudo dmsetup status pcache_ram0p1 [stdout] + status='0 20971520 pcache 0 319 319 10 0 3 0:49600 0:0 0:0' [stdout] + read -ra fields [stdout] + len=12 [stdout] + key_head=0:49600 [stdout] + dirty_tail=0:0 [stdout] + key_tail=0:0 [stdout] + [[ 0:49600 == \0\:\0 ]] [stdout] + sleep 1 [stdout] + true [stdout] ++ sudo dmsetup status pcache_ram0p1 [stdout] + status='0 20971520 pcache 0 319 319 10 0 3 0:49600 0:0 0:0' [stdout] + read -ra fields [stdout] + len=12 [stdout] + key_head=0:49600 [stdout] + dirty_tail=0:0 [stdout] + key_tail=0:0 [stdout] + [[ 0:49600 == \0\:\0 ]] [stdout] + sleep 1 [stdout] + true [stdout] ++ sudo dmsetup status pcache_ram0p1 [stdout] + status='0 20971520 pcache 0 319 319 10 0 3 0:49600 0:0 0:0' [stdout] + read -ra fields [stdout] + len=12 [stdout] + key_head=0:49600 [stdout] + dirty_tail=0:0 [stdout] + key_tail=0:0 [stdout] + [[ 0:49600 == \0\:\0 ]] [stdout] + sleep 1 [stdout] + true [stdout] ++ sudo dmsetup status pcache_ram0p1 [stdout] + status='0 20971520 pcache 0 319 319 10 0 3 0:49600 0:0 0:0' [stdout] + read -ra fields [stdout] + len=12 [stdout] + key_head=0:49600 [stdout] + dirty_tail=0:0 [stdout] + key_tail=0:0 [stdout] + [[ 0:49600 == \0\:\0 ]] [stdout] + sleep 1 [stdout] + true [stdout] ++ sudo dmsetup status pcache_ram0p1 [stdout] + status='0 20971520 pcache 0 319 319 10 0 3 0:49600 0:0 0:0' [stdout] + read -ra fields [stdout] + len=12 [stdout] + key_head=0:49600 [stdout] + dirty_tail=0:0 [stdout] + key_tail=0:0 [stdout] + [[ 0:49600 == \0\:\0 ]] [stdout] + sleep 1 [stdout] + true [stdout] ++ sudo dmsetup status pcache_ram0p1 [stdout] + status='0 20971520 pcache 0 319 319 10 0 3 0:49600 0:49600 0:0' [stdout] + read -ra fields [stdout] + len=12 [stdout] + key_head=0:49600 [stdout] + dirty_tail=0:49600 [stdout] + key_tail=0:0 [stdout] + [[ 0:49600 == \0\:\0 ]] [stdout] + sleep 1 [stdout] + true [stdout] ++ sudo dmsetup status pcache_ram0p1 [stdout] + status='0 20971520 pcache 0 319 319 10 0 3 0:49600 0:49600 0:0' [stdout] + read -ra fields [stdout] + len=12 [stdout] + key_head=0:49600 [stdout] + dirty_tail=0:49600 [stdout] + key_tail=0:0 [stdout] + [[ 0:49600 == \0\:\0 ]] [stdout] + sleep 1 [stdout] + true [stdout] ++ sudo dmsetup status pcache_ram0p1 [stdout] + status='0 20971520 pcache 0 319 319 10 0 3 0:49600 0:49600 0:0' [stdout] + read -ra fields [stdout] + len=12 [stdout] + key_head=0:49600 [stdout] + dirty_tail=0:49600 [stdout] + key_tail=0:0 [stdout] + [[ 0:49600 == \0\:\0 ]] [stdout] + sleep 1 [stdout] + true [stdout] ++ sudo dmsetup status pcache_ram0p1 [stdout] + status='0 20971520 pcache 0 319 319 10 0 3 0:49600 0:49600 0:0' [stdout] + read -ra fields [stdout] + len=12 [stdout] + key_head=0:49600 [stdout] + dirty_tail=0:49600 [stdout] + key_tail=0:0 [stdout] + [[ 0:49600 == \0\:\0 ]] [stdout] + sleep 1 [stdout] + true [stdout] ++ sudo dmsetup status pcache_ram0p1 [stdout] + status='0 20971520 pcache 0 319 319 10 0 3 0:49600 0:49600 0:0' [stdout] + read -ra fields [stdout] + len=12 [stdout] + key_head=0:49600 [stdout] + dirty_tail=0:49600 [stdout] + key_tail=0:0 [stdout] + [[ 0:49600 == \0\:\0 ]] [stdout] + sleep 1 [stdout] + true [stdout] ++ sudo dmsetup status pcache_ram0p1 [stdout] + status='0 20971520 pcache 0 319 319 6 0 3 0:49600 0:49600 0:49600' [stdout] + read -ra fields [stdout] + len=12 [stdout] + key_head=0:49600 [stdout] + dirty_tail=0:49600 [stdout] + key_tail=0:49600 [stdout] + [[ 0:49600 == \0\:\4\9\6\0\0 ]] [stdout] + break [stdout] ++ sudo dmsetup status pcache_ram0p1 [stdout] + status_before_remove='0 20971520 pcache 0 319 319 6 0 3 0:49600 0:49600 0:49600' [stdout] + read -ra status_fields [stdout] + status_before_len=12 [stdout] + before_key_head=0:49600 [stdout] + before_dirty_tail=0:49600 [stdout] + before_key_tail=0:49600 [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + sudo dmsetup create pcache_ram0p1 --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc true' [stdout] + sudo dmsetup suspend pcache_ram0p1 [stdout] + sudo dmsetup reload pcache_ram0p1 --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc true' [stdout] device-mapper: reload ioctl on pcache_ram0p1 failed: Operation not supported [stdout] Command failed. [stdout] + sudo dmsetup resume pcache_ram0p1 [stdout] ++ sudo dmsetup status pcache_ram0p1 [stdout] + status_after_create='0 20971520 pcache 0 319 319 2 70 1183 0:49600 0:49600 0:49600' [stdout] + read -ra status_fields [stdout] + status_after_len=12 [stdout] + after_key_head=0:49600 [stdout] + after_dirty_tail=0:49600 [stdout] + after_key_tail=0:49600 [stdout] + [[ 0:49600 != \0\:\4\9\6\0\0 ]] [stdout] + [[ 0:49600 != \0\:\4\9\6\0\0 ]] [stdout] + [[ 0:49600 != \0\:\4\9\6\0\0 ]] [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + sudo mount /dev/ram0p1 /mnt/pcache [stdout] ++ md5sum /mnt/pcache/persistfile [stdout] ++ awk '{print $1}' [stdout] + new_md5=cab0144f058a298c78d326a3ad80ea54 [stdout] + [[ cab0144f058a298c78d326a3ad80ea54 != \c\a\b\0\1\4\4\f\0\5\8\a\2\9\8\c\7\8\d\3\2\6\a\3\a\d\8\0\e\a\5\4 ]] [stdout] + sudo umount /mnt/pcache [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00224108 s, 468 MB/s [stdout] + sync [stdout] + sudo dmsetup create pcache_ram0p1 --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc true' [stdout] + sudo mount /dev/mapper/pcache_ram0p1 /mnt/pcache [stdout] ++ md5sum /mnt/pcache/persistfile [stdout] ++ awk '{print $1}' [stdout] + new_md5=cab0144f058a298c78d326a3ad80ea54 [stdout] + [[ cab0144f058a298c78d326a3ad80ea54 != \c\a\b\0\1\4\4\f\0\5\8\a\2\9\8\c\7\8\d\3\2\6\a\3\a\d\8\0\e\a\5\4 ]] [stdout] + sudo umount /mnt/pcache [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754232367 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232367 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232367 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case13_flush_cache_persistence.sh [stdout] + echo '===== Finished case13_flush_cache_persistence.sh =====' [stdout] + for tc in "$test_dir"/*.sh [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case14_heavy_io_consistency.sh [stdout] + echo '===== Running case14_heavy_io_consistency.sh =====' [stdout] + bash ./pcache.py.data/pcache_misc_tests/case14_heavy_io_consistency.sh [stdout] + : /workspace/datatravelguide/covdir [stdout] + : true [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754232367 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232367 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232367 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + true [stdout] + pcache_insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + : writeback [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.0021524 s, 487 MB/s [stdout] + sync [stdout] + echo 'DEBUG: case 14 - verify data consistency under heavy IO' [stdout] ++ sudo blockdev --getsz /dev/ram0p1 [stdout] + SEC_NR=20971520 [stdout] + sudo dmsetup create pcache_ram0p1_probe --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc true' [stdout] + sudo dmsetup remove pcache_ram0p1_probe [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00217218 s, 483 MB/s [stdout] + sync [stdout] ++ sudo blockdev --getsz /dev/ram0p1 [stdout] + SEC_NR=20971520 [stdout] + sudo dmsetup create pcache_ram0p1 --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc true' [stdout] + sudo mkfs.ext4 -F /dev/mapper/pcache_ram0p1 [stdout] mke2fs 1.47.0 (5-Feb-2023) [stdout] + sudo mkdir -p /mnt/pcache [stdout] + sudo mount /dev/mapper/pcache_ram0p1 /mnt/pcache [stdout] + dd if=/dev/urandom of=/mnt/pcache/heavyfile bs=1M count=50 [stdout] 50+0 records in [stdout] 50+0 records out [stdout] 52428800 bytes (52 MB, 50 MiB) copied, 0.239459 s, 219 MB/s [stdout] ++ md5sum /mnt/pcache/heavyfile [stdout] ++ awk '{print $1}' [stdout] + orig_md5=21378cce3f987022578ec6cf4924ea11 [stdout] + [[ -n 80 ]] [stdout] + sudo dmsetup message pcache_ram0p1 0 gc_percent 80 [stdout] + dd if=/mnt/pcache/heavyfile of=/mnt/pcache/loadfile bs=4k oflag=direct iflag=fullblock [stdout] 12800+0 records in [stdout] 12800+0 records out [stdout] 52428800 bytes (52 MB, 50 MiB) copied, 0.297553 s, 176 MB/s [stdout] ++ md5sum /mnt/pcache/loadfile [stdout] ++ awk '{print $1}' [stdout] + new_md5=21378cce3f987022578ec6cf4924ea11 [stdout] + [[ 21378cce3f987022578ec6cf4924ea11 != \2\1\3\7\8\c\c\e\3\f\9\8\7\0\2\2\5\7\8\e\c\6\c\f\4\9\2\4\e\a\1\1 ]] [stdout] + fio --name=pcacheheavy --ioengine=libaio --filename=/mnt/pcache/stressfile --rw=randwrite --size=100m --runtime=20 --time_based=1 --bs=4k --direct=1 --numjobs=4 --iodepth=16 [stdout] ++ md5sum /mnt/pcache/loadfile [stdout] ++ awk '{print $1}' [stdout] + new_md5=21378cce3f987022578ec6cf4924ea11 [stdout] + [[ 21378cce3f987022578ec6cf4924ea11 != \2\1\3\7\8\c\c\e\3\f\9\8\7\0\2\2\5\7\8\e\c\6\c\f\4\9\2\4\e\a\1\1 ]] [stdout] + sync [stdout] + sudo umount /mnt/pcache [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + sudo dmsetup create pcache_ram0p1 --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc true' [stdout] + sudo mount /dev/mapper/pcache_ram0p1 /mnt/pcache [stdout] ++ md5sum /mnt/pcache/heavyfile [stdout] ++ awk '{print $1}' [stdout] + new_md5=21378cce3f987022578ec6cf4924ea11 [stdout] + [[ 21378cce3f987022578ec6cf4924ea11 != \2\1\3\7\8\c\c\e\3\f\9\8\7\0\2\2\5\7\8\e\c\6\c\f\4\9\2\4\e\a\1\1 ]] [stdout] + sudo umount /mnt/pcache [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754232393 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232393 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232393 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case14_heavy_io_consistency.sh [stdout] + echo '===== Finished case14_heavy_io_consistency.sh =====' [stdout] + for tc in "$test_dir"/*.sh [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case15_fail_after_cache_mode_change.sh [stdout] + echo '===== Running case15_fail_after_cache_mode_change.sh =====' [stdout] + bash ./pcache.py.data/pcache_misc_tests/case15_fail_after_cache_mode_change.sh [stdout] + : /workspace/datatravelguide/covdir [stdout] + : true [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754232394 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232394 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232394 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + true [stdout] + pcache_insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + : writeback [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00239379 s, 438 MB/s [stdout] + sync [stdout] + echo 'DEBUG: case 15 - dmsetup create should fail after cache_mode change' [stdout] ++ sudo blockdev --getsz /dev/ram0p1 [stdout] + SEC_NR=20971520 [stdout] + sudo dmsetup create pcache_ram0p1_probe --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc true' [stdout] + sudo dmsetup remove pcache_ram0p1_probe [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00208588 s, 503 MB/s [stdout] + sync [stdout] ++ sudo blockdev --getsz /dev/ram0p1 [stdout] + SEC_NR=20971520 [stdout] + sudo dmsetup create pcache_ram0p1 --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc true' [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + [[ writeback == \w\r\i\t\e\b\a\c\k ]] [stdout] + new_mode=writethrough [stdout] + sudo dmsetup create pcache_ram0p1 --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writethrough data_crc true' [stdout] device-mapper: reload ioctl on pcache_ram0p1 (252:0) failed: Invalid argument [stdout] Command failed. [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754232395 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232395 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232395 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case15_fail_after_cache_mode_change.sh [stdout] + echo '===== Finished case15_fail_after_cache_mode_change.sh =====' [stdout] + for tc in "$test_dir"/*.sh [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case16_writethrough_persistence.sh [stdout] + echo '===== Running case16_writethrough_persistence.sh =====' [stdout] + bash ./pcache.py.data/pcache_misc_tests/case16_writethrough_persistence.sh [stdout] + : /workspace/datatravelguide/covdir [stdout] + : true [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754232396 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232396 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232396 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + true [stdout] + pcache_insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + : writeback [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00219428 s, 478 MB/s [stdout] + sync [stdout] + [[ writeback != \w\r\i\t\e\t\h\r\o\u\g\h ]] [stdout] + echo 'cache_mode is writeback, skipping writethrough test' [stdout] + exit 0 [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case16_writethrough_persistence.sh [stdout] + echo '===== Finished case16_writethrough_persistence.sh =====' [stdout] + for tc in "$test_dir"/*.sh [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case17_writearound_behavior.sh [stdout] + echo '===== Running case17_writearound_behavior.sh =====' [stdout] + bash ./pcache.py.data/pcache_misc_tests/case17_writearound_behavior.sh [stdout] + : /workspace/datatravelguide/covdir [stdout] + : true [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754232396 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232396 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232396 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + pcache_insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + : writeback [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00203001 s, 517 MB/s [stdout] + sync [stdout] + [[ writeback != \w\r\i\t\e\a\r\o\u\n\d ]] [stdout] + echo 'cache_mode is writeback, skipping writearound test' [stdout] + exit 0 [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case17_writearound_behavior.sh [stdout] + echo '===== Finished case17_writearound_behavior.sh =====' [stdout] + for tc in "$test_dir"/*.sh [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case18_writeonly_behavior.sh [stdout] + echo '===== Running case18_writeonly_behavior.sh =====' [stdout] + bash ./pcache.py.data/pcache_misc_tests/case18_writeonly_behavior.sh [stdout] + : /workspace/datatravelguide/covdir [stdout] + : true [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754232397 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232397 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232397 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + pcache_insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + : writeback [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00212237 s, 494 MB/s [stdout] + sync [stdout] + [[ writeback != \w\r\i\t\e\o\n\l\y ]] [stdout] + echo 'cache_mode is writeback, skipping writeonly test' [stdout] + exit 0 [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case18_writeonly_behavior.sh [stdout] + echo '===== Finished case18_writeonly_behavior.sh =====' [stdout] + for tc in "$test_dir"/*.sh [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case19_dmsetup_table_output.sh [stdout] + echo '===== Running case19_dmsetup_table_output.sh =====' [stdout] + bash ./pcache.py.data/pcache_misc_tests/case19_dmsetup_table_output.sh [stdout] + : /workspace/datatravelguide/covdir [stdout] + : true [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754232398 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232398 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232398 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + pcache_insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + : writeback [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00225249 s, 466 MB/s [stdout] + sync [stdout] ++ sudo blockdev --getsz /dev/ram0p1 [stdout] + SEC_NR=20971520 [stdout] + sudo dmsetup create pcache_ram0p1_probe --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc true' [stdout] + sudo dmsetup remove pcache_ram0p1_probe [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00217906 s, 481 MB/s [stdout] + sync [stdout] + echo 'DEBUG: case 19 - verify dmsetup table output matches create parameters' [stdout] + sudo dmsetup create pcache_ram0p1 --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc true' [stdout] ++ lsblk -d -no MAJ:MIN /dev/pmem0 [stdout] ++ tr -d ' ' [stdout] + cache_mm=259:0 [stdout] ++ lsblk -d -no MAJ:MIN /dev/ram0p1 [stdout] ++ tr -d ' ' [stdout] + data_mm=259:3 [stdout] + expected='0 20971520 pcache 259:0 259:3 4 cache_mode writeback crc true' [stdout] ++ sudo dmsetup table pcache_ram0p1 [stdout] + actual='0 20971520 pcache 259:0 259:3 4 cache_mode writeback crc true' [stdout] + [[ 0 20971520 pcache 259:0 259:3 4 cache_mode writeback crc true != \0\ \2\0\9\7\1\5\2\0\ \p\c\a\c\h\e\ \2\5\9\:\0\ \2\5\9\:\3\ \4\ \c\a\c\h\e\_\m\o\d\e\ \w\r\i\t\e\b\a\c\k\ \c\r\c\ \t\r\u\e ]] [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754232400 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232400 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232400 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case19_dmsetup_table_output.sh [stdout] + echo '===== Finished case19_dmsetup_table_output.sh =====' [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754232400 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232400 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754232400 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + true [stdout] [stdlog] 2025-08-03 14:46:41,200 avocado.test INFO | pcache script completed successfully [stdlog] 2025-08-03 14:46:41,200 avocado.test INFO | pcache test finished. [stdlog] 2025-08-03 14:46:41,201 avocado.test INFO | PASS 1-./pcache.py:PcacheTest.test [stdlog] 2025-08-03 14:46:41,202 avocado.test INFO |