mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof-analyze: sort overlays before non-overlays
We still need to support mounts that do not include overlay frames, but this fixes some of the cases for captures we already generate.
This commit is contained in:
@ -195,6 +195,11 @@ compare_mount (gconstpointer a,
|
||||
gsize alen = strlen (sysprof_mount_get_mount_point (mount_a));
|
||||
gsize blen = strlen (sysprof_mount_get_mount_point (mount_b));
|
||||
|
||||
if (mount_a->is_overlay && !mount_b->is_overlay)
|
||||
return -1;
|
||||
else if (!mount_a->is_overlay && mount_b->is_overlay)
|
||||
return 1;
|
||||
|
||||
if (alen > blen)
|
||||
return -1;
|
||||
else if (blen > alen)
|
||||
|
||||
Reference in New Issue
Block a user