wsl/hsakmt: Standardize warning logging with pr_warn_once
Signed-off-by: Horatio Zhang <Hongkun.Zhang@amd.com> Reviewed-by: Flora Cui <flora.cui@amd.com> Reviewed-by: Shane Xiao <shane.xiao@amd.com> Part-of: <http://10.67.69.192/wsl/libhsakmt/-/merge_requests/40>
Šī revīzija ir iekļauta:
revīziju iesūtīja
Frank Min
vecāks
c52d47b644
revīzija
6d5324c957
@@ -32,6 +32,7 @@
|
||||
HSAKMT_STATUS HSAKMTAPI hsaKmtPcSamplingSupport(void) {
|
||||
CHECK_DXG_OPEN();
|
||||
// Used for profiling tools
|
||||
pr_warn_once("not supported\n");
|
||||
return HSAKMT_STATUS_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
@@ -40,6 +41,7 @@ hsaKmtPcSamplingQueryCapabilities(HSAuint32 NodeId, void *sample_info,
|
||||
HSAuint32 sample_info_sz, HSAuint32 *size) {
|
||||
CHECK_DXG_OPEN();
|
||||
// Used for profiling tools
|
||||
pr_warn_once("not supported\n");
|
||||
return HSAKMT_STATUS_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
@@ -48,6 +50,7 @@ HSAKMT_STATUS HSAKMTAPI hsaKmtPcSamplingCreate(HSAuint32 NodeId,
|
||||
HsaPcSamplingTraceId *traceId) {
|
||||
CHECK_DXG_OPEN();
|
||||
// Used for profiling tools
|
||||
pr_warn_once("not supported\n");
|
||||
return HSAKMT_STATUS_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
@@ -55,6 +58,7 @@ HSAKMT_STATUS HSAKMTAPI hsaKmtPcSamplingDestroy(HSAuint32 NodeId,
|
||||
HsaPcSamplingTraceId traceId) {
|
||||
CHECK_DXG_OPEN();
|
||||
// Used for profiling tools
|
||||
pr_warn_once("not supported\n");
|
||||
return HSAKMT_STATUS_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
@@ -62,6 +66,7 @@ HSAKMT_STATUS HSAKMTAPI hsaKmtPcSamplingStart(HSAuint32 NodeId,
|
||||
HsaPcSamplingTraceId traceId) {
|
||||
CHECK_DXG_OPEN();
|
||||
// Used for profiling tools
|
||||
pr_warn_once("not supported\n");
|
||||
return HSAKMT_STATUS_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
@@ -69,5 +74,6 @@ HSAKMT_STATUS HSAKMTAPI hsaKmtPcSamplingStop(HSAuint32 NodeId,
|
||||
HsaPcSamplingTraceId traceId) {
|
||||
CHECK_DXG_OPEN();
|
||||
// Used for profiling tools
|
||||
pr_warn_once("not supported\n");
|
||||
return HSAKMT_STATUS_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
Atsaukties uz šo jaunā problēmā
Block a user