diff options
Diffstat (limited to 'driver/gator_events_mali_common.c')
-rw-r--r-- | driver/gator_events_mali_common.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/driver/gator_events_mali_common.c b/driver/gator_events_mali_common.c index 4f2cce4..c3d0503 100644 --- a/driver/gator_events_mali_common.c +++ b/driver/gator_events_mali_common.c @@ -17,7 +17,11 @@ extern int gator_mali_create_file_system(const char *mali_name, const char *even /* If the counter name is empty ignore it */ if (strlen(event_name) != 0) { /* Set up the filesystem entry for this event. */ - snprintf(buf, sizeof(buf), "ARM_%s_%s", mali_name, event_name); + if (mali_name == NULL) { + snprintf(buf, sizeof(buf), "ARM_Mali-%s", event_name); + } else { + snprintf(buf, sizeof(buf), "ARM_Mali-%s_%s", mali_name, event_name); + } dir = gatorfs_mkdir(sb, root, buf); |