Allow block filter of the form xx.x

[ROCm/rocprofiler-compute commit: 30752d1547]
Этот коммит содержится в:
vedithal-amd
2025-03-11 13:34:48 -04:00
коммит произвёл GitHub
родитель 0f4b5e91bd
Коммит e4fce70067
+1 -1
Просмотреть файл
@@ -190,7 +190,7 @@ Examples:
def validate_block(value):
# Metric id regex, for example, 10, 4, 4.3, 4.32
# Dont allow more than two digits after decimal point
metric_id_pattern = re.compile(r"^\d+$|^\d\.\d$|^\d+\.\d\d$")
metric_id_pattern = re.compile(r"^\d+$|^\d+\.\d$|^\d+\.\d\d$")
# Allow only the following hardware blocks
hardware_block_pattern = re.compile(r"^(SQ|SQC|TA|TD|TCP|TCC|SPI|CPC|CPF)$")
if metric_id_pattern.match(value):