Skip to content

Commit

Permalink
Add TLB window allocation and access tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joelsmithTT committed Mar 4, 2025
1 parent ec2b27a commit 6deec0f
Show file tree
Hide file tree
Showing 3 changed files with 642 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ PROG := ttkmd_test

TEST_SOURCES := get_driver_info.cpp get_device_info.cpp query_mappings.cpp \
dma_buf.cpp pin_pages.cpp config_space.cpp lock.cpp hwmon.cpp map_peer_bar.cpp \
ioctl_overrun.cpp ioctl_zeroing.cpp
ioctl_overrun.cpp ioctl_zeroing.cpp tlbs.cpp

CORE_SOURCES := enumeration.cpp util.cpp devfd.cpp main.cpp test_failure.cpp
SOURCES := $(CORE_SOURCES) $(TEST_SOURCES)
Expand Down
2 changes: 2 additions & 0 deletions test/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ void TestHwmon(const EnumeratedDevice &dev);
void TestIoctlOverrun(const EnumeratedDevice &dev);
void TestIoctlZeroing(const EnumeratedDevice &dev);
void TestMapPeerBar(const EnumeratedDevice &dev1, const EnumeratedDevice &dev2);
void TestTlbs(const EnumeratedDevice &dev);

int main(int argc, char *argv[])
{
Expand All @@ -44,6 +45,7 @@ int main(int argc, char *argv[])
TestHwmon(d);
TestIoctlOverrun(d);
TestIoctlZeroing(d);
TestTlbs(d);

at_least_one_device = true;
}
Expand Down
Loading

0 comments on commit 6deec0f

Please sign in to comment.