OFS / opae-sdk

Open Programmable Acceleration Engine
https://ofs.github.io
BSD 3-Clause "New" or "Revised" License
259 stars 82 forks source link

Feature: Add CXL host exerciser cache application #3009

Closed anandaravuri closed 1 year ago

anandaravuri commented 1 year ago

Description: Host Exerciser (HE) is responsible for generating traffic to create scenarios like Cache Hit/Miss in Device or Host Caches with the intention of exercising the path from AFU to the Host via CXL IP at full bandwidth.

Command line options:

Options: -h,--help Print this help message and exit -p,--pci-address TEXT [:]:. -l,--log-level TEXT:{trace,debug,info,warning,error,critical,off} [warning] stdout logging level -t,--timeout UINT [60000] test timeout (msec) --test UINT:value in {fpgardcachehit->0,fpgardcachemiss->2,fpgawrcachehit->1,fpgawrcachemiss->3,hostrdcachehit->4,hostrdcachemiss->6,hostwrcachehit->5,hostwrcachemiss->7} OR {0,2,1,3,4,6,5,7} [fpgardcachehit] host exerciser cache test {fpgardcachehit, fpgawrcachehit, all} --continuousmode BOOLEAN [false] test rollover or test termination --contmodetime UINT [1] Continuous mode time in seconds --target UINT:value in {fpga->1,host->0} OR {1,0} [host] host exerciser run on host or fpga --stride UINT [0] Enable stride mode --linerepcount UINT:INT in [1 - 256] [10] Line repeat count --testall BOOLEAN [false] Run all tests

Subcommands: cache run simple cxl he cache test

PR Title should start with one of the following tags: [Fix]/[Feature]/[Style]/[Update]

[Fix]- Bug Fix

[Feature]- for new feature

[Style]- Grammar or branding fix

[Update]-For an update to an existing feature

------------- Keep everything below this line -------------------------

Description

Describe the issue, update, change or fix and why

Collateral (docs, reports, design examples, case IDs):

Tests added:

Tests run:

coveralls commented 1 year ago

Pull Request Test Coverage Report for Build 6316884222


Changes Missing Coverage Covered Lines Changed/Added Lines %
samples/cxl_host_exerciser/cxl_host_exerciser.cpp 0 9 0.0%
samples/cxl_host_exerciser/cxl_host_exerciser.h 0 24 0.0%
samples/cxl_host_exerciser/cxl_he_cache_lpbk_cmd.h 0 27 0.0%
samples/cxl_host_exerciser/cxl_he_cmd.h 0 84 0.0%
samples/cxl_host_exerciser/he_cache_test.h 0 401 0.0%
samples/cxl_host_exerciser/cxl_he_cache_cmd.h 0 494 0.0%
<!-- Total: 0 1039 0.0% -->
Files with Coverage Reduction New Missed Lines %
include/ofs/ofs_primitives.h 1 82.61%
<!-- Total: 1 -->
Totals Coverage Status
Change from base Build 6316850918: -3.3%
Covered Lines: 15763
Relevant Lines: 22970

💛 - Coveralls