Skip to content

Commit 3599589

Browse files
committed
verbose tracing of new telemetry items
1 parent 6ccc717 commit 3599589

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

IntelPresentMon/ControlLib/IntelPowerTelemetryAdapter.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,10 +473,13 @@ namespace pwr::intel
473473
currentSample.vramReadBandwidth,
474474
pm_gpu_power_telemetry_info.gpu_mem_read_bandwidth_bps,
475475
GpuTelemetryCapBits::gpu_mem_read_bandwidth);
476+
pmlog_verb(v::gpu)(std::format("VR read BW bSupported [{}] type [{}] units [{}] data [{}]",
477+
currentSample.vramReadBandwidth.bSupported, (int)currentSample.vramReadBandwidth.type,
478+
(int)currentSample.vramReadBandwidth.units, currentSample.vramReadBandwidth.value.datau64));
476479
if (result != CTL_RESULT_SUCCESS ||
477480
!(HasTelemetryCapBit(GpuTelemetryCapBits::gpu_mem_read_bandwidth))) {
478481
useNewBandwidthTelemetry = false;
479-
pmlog_dbg("V1 vram bandwidth not available, falling back to V0 counters")
482+
pmlog_info("V1 vram bandwidth not available, falling back to V0 counters")
480483
.code(result).pmwatch(HasTelemetryCapBit(GpuTelemetryCapBits::gpu_mem_read_bandwidth));
481484
}
482485
}
@@ -485,10 +488,13 @@ namespace pwr::intel
485488
currentSample.vramWriteBandwidth,
486489
pm_gpu_power_telemetry_info.gpu_mem_write_bandwidth_bps,
487490
GpuTelemetryCapBits::gpu_mem_write_bandwidth);
491+
pmlog_verb(v::gpu)(std::format("VR write BW bSupported [{}] type [{}] units [{}] data [{}]",
492+
currentSample.vramWriteBandwidth.bSupported, (int)currentSample.vramWriteBandwidth.type,
493+
(int)currentSample.vramWriteBandwidth.units, currentSample.vramWriteBandwidth.value.datau64));
488494
if (result != CTL_RESULT_SUCCESS ||
489495
!(HasTelemetryCapBit(GpuTelemetryCapBits::gpu_mem_write_bandwidth))) {
490496
useNewBandwidthTelemetry = false;
491-
pmlog_dbg("V1 vram bandwidth not available, falling back to V0 counters")
497+
pmlog_info("V1 vram bandwidth not available, falling back to V0 counters")
492498
.code(result).pmwatch(HasTelemetryCapBit(GpuTelemetryCapBits::gpu_mem_write_bandwidth));
493499
}
494500
}

IntelPresentMon/ControlLib/Logging.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@
66
#include "igcl_api.h"
77
#include "../CommonUtilities/log/Log.h"
88

9+
namespace pwr::v
10+
{
11+
#ifndef VVV_GPU_TELEMETRY // system that reads power, temperature, etc. telemetry of graphics adapter devices
12+
inline constexpr bool gpu = false;
13+
#else
14+
inline constexpr bool gpu = true;
15+
#endif
16+
}
17+
918
namespace pwr::log
1019
{
1120
inline std::string MakeErrorLocationString(int line, const char* file, const char* function)

0 commit comments

Comments
 (0)