mirror of
https://github.com/skyline-emu/skyline.git
synced 2025-01-30 19:57:55 +03:00
Add IOCTL trace events
This commit is contained in:
parent
7861968c05
commit
57a4699bd1
@ -107,6 +107,7 @@ namespace skyline::service::nvdrv {
|
|||||||
try {
|
try {
|
||||||
std::shared_lock lock(deviceMutex);
|
std::shared_lock lock(deviceMutex);
|
||||||
Logger::Debug("fd: {}, cmd: 0x{:X}, device: {}", fd, cmd.raw, devices.at(fd)->GetName());
|
Logger::Debug("fd: {}, cmd: 0x{:X}, device: {}", fd, cmd.raw, devices.at(fd)->GetName());
|
||||||
|
TRACE_EVENT("service", "Ioctl", "fd", fd, "cmd", cmd.raw);
|
||||||
return ConvertResult(LogIoctlResult(devices.at(fd)->Ioctl(cmd, buffer), cmd.raw));
|
return ConvertResult(LogIoctlResult(devices.at(fd)->Ioctl(cmd, buffer), cmd.raw));
|
||||||
} catch (const std::out_of_range &) {
|
} catch (const std::out_of_range &) {
|
||||||
throw exception("Ioctl was called with invalid fd: {}", fd);
|
throw exception("Ioctl was called with invalid fd: {}", fd);
|
||||||
@ -117,6 +118,7 @@ namespace skyline::service::nvdrv {
|
|||||||
try {
|
try {
|
||||||
std::shared_lock lock(deviceMutex);
|
std::shared_lock lock(deviceMutex);
|
||||||
Logger::Debug("fd: {}, cmd: 0x{:X}, device: {}", fd, cmd.raw, devices.at(fd)->GetName());
|
Logger::Debug("fd: {}, cmd: 0x{:X}, device: {}", fd, cmd.raw, devices.at(fd)->GetName());
|
||||||
|
TRACE_EVENT("service", "Ioctl", "fd", fd, "cmd", cmd.raw);
|
||||||
return ConvertResult(LogIoctlResult(devices.at(fd)->Ioctl2(cmd, buffer, inlineBuffer), cmd.raw));
|
return ConvertResult(LogIoctlResult(devices.at(fd)->Ioctl2(cmd, buffer, inlineBuffer), cmd.raw));
|
||||||
} catch (const std::out_of_range &) {
|
} catch (const std::out_of_range &) {
|
||||||
throw exception("Ioctl2 was called with invalid fd: {}", fd);
|
throw exception("Ioctl2 was called with invalid fd: {}", fd);
|
||||||
@ -127,6 +129,7 @@ namespace skyline::service::nvdrv {
|
|||||||
try {
|
try {
|
||||||
std::shared_lock lock(deviceMutex);
|
std::shared_lock lock(deviceMutex);
|
||||||
Logger::Debug("fd: {}, cmd: 0x{:X}, device: {}", fd, cmd.raw, devices.at(fd)->GetName());
|
Logger::Debug("fd: {}, cmd: 0x{:X}, device: {}", fd, cmd.raw, devices.at(fd)->GetName());
|
||||||
|
TRACE_EVENT("service", "Ioctl", "fd", fd, "cmd", cmd.raw);
|
||||||
return ConvertResult(LogIoctlResult(devices.at(fd)->Ioctl3(cmd, buffer, inlineBuffer), cmd.raw));
|
return ConvertResult(LogIoctlResult(devices.at(fd)->Ioctl3(cmd, buffer, inlineBuffer), cmd.raw));
|
||||||
} catch (const std::out_of_range &) {
|
} catch (const std::out_of_range &) {
|
||||||
throw exception("Ioctl3 was called with invalid fd: {}", fd);
|
throw exception("Ioctl3 was called with invalid fd: {}", fd);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user