1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

Fix VFIO logger names

Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com>
This commit is contained in:
Steffen Vogel 2023-09-08 10:24:30 +02:00 committed by Steffen Vogel
parent 14a6a0fcdb
commit a5ab5ebc65
3 changed files with 3 additions and 3 deletions

View file

@ -74,7 +74,7 @@ Container::Container() :
iova_next(0),
hasIommu(false),
groups(),
log(logging.get("kernel:vfio::Container"))
log(logging.get("kernel:vfio:container"))
{
for (const char* module : requiredKernelModules) {
if (kernel::loadModule(module) != 0) {

View file

@ -56,7 +56,7 @@ Device::Device(const std::string &name, int groupFileDescriptor,
const kernel::pci::Device *pci_device)
: name(name), fd(-1), attachedToGroup(false), groupFd(groupFileDescriptor),
info(), irqs(), regions(), mappings(), pci_device(pci_device),
log(logging.get("kernel:vfio::Device")) {
log(logging.get("kernel:vfio:device")) {
if (groupFileDescriptor < 0)
throw RuntimeError("Invalid group file descriptor");

View file

@ -36,7 +36,7 @@ using namespace villas::kernel::vfio;
Group::Group(int index, bool iommuEnabled)
: fd(-1), index(index), attachedToContainer(false), status(), devices(),
log(logging.get("kernel:vfio::Group")) {
log(logging.get("kernel:vfio:group")) {
// Open group fd
std::stringstream groupPath;
groupPath << VFIO_PATH << (iommuEnabled ? "" : "noiommu-") << index;