summaryrefslogtreecommitdiffstats
path: root/src/intel/tools
diff options
context:
space:
mode:
authorRafael Antognolli <[email protected]>2018-03-20 09:13:08 -0700
committerRafael Antognolli <[email protected]>2018-03-21 11:35:15 -0700
commit5297a17571b3452ba6d9ec0b78da1769cace018e (patch)
treef089609e8f644420f80a769beeaa5c1b68573285 /src/intel/tools
parent8d5cd91ca0f2a70aa6c883da82f9bcb81f29cb4b (diff)
aubinator_error_decode: Compare only the class_name of the ring.
ring_name is "<class_name> + <instance_id>" (e.g. rcs0). So we need to first compare the class name only, then get the instance id. Without this, INSTDONE is not being decoded. Signed-off-by: Rafael Antognolli <[email protected]> Cc: Chris Wilson <[email protected]> Reviewed-by: Chris Wilson <[email protected]>
Diffstat (limited to 'src/intel/tools')
-rw-r--r--src/intel/tools/aubinator_error_decode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/tools/aubinator_error_decode.c b/src/intel/tools/aubinator_error_decode.c
index 017be5bbc2b..db880d74a9e 100644
--- a/src/intel/tools/aubinator_error_decode.c
+++ b/src/intel/tools/aubinator_error_decode.c
@@ -120,7 +120,7 @@ static int ring_name_to_class(const char *ring_name,
[VECS] = "vecs",
};
for (size_t i = 0; i < ARRAY_SIZE(class_names); i++) {
- if (strcmp(ring_name, class_names[i]))
+ if (strncmp(ring_name, class_names[i], strlen(class_names[i])))
continue;
*class = i;