[sysprof] elf: remove newroot check



commit 1e31e7ce3196df13c9f5f477ec1488cd3c310a29
Author: Christian Hergert <chergert redhat com>
Date:   Sun Feb 26 17:06:28 2017 -0800

    elf: remove newroot check
    
    We don't need this anymore, as the proc source should translate the paths
    for us so we get appropriate maps.

 lib/sp-elf-symbol-resolver.c |   11 ++---------
 1 files changed, 2 insertions(+), 9 deletions(-)
---
diff --git a/lib/sp-elf-symbol-resolver.c b/lib/sp-elf-symbol-resolver.c
index db1d20e..115ece1 100644
--- a/lib/sp-elf-symbol-resolver.c
+++ b/lib/sp-elf-symbol-resolver.c
@@ -281,15 +281,8 @@ sp_elf_symbol_resolver_resolve (SpSymbolResolver *resolver,
 
   g_assert (bin_file != NULL);
 
-  /*
-   * Ensure we have a valid inode mapping, unless it was in a /newroot/, for
-   * which those won't be reliable.
-   */
-  if (!g_str_has_prefix (map->filename, "/newroot/"))
-    {
-      if (map->inode && !bin_file_check_inode (bin_file, map->inode))
-        return g_strdup_printf ("%s: inode mismatch", map->filename);
-    }
+  if (map->inode && !bin_file_check_inode (bin_file, map->inode))
+    return g_strdup_printf ("%s: inode mismatch", map->filename);
 
   bin_sym = bin_file_lookup_symbol (bin_file, address);
   bin_sym_name = bin_symbol_get_name (bin_file, bin_sym);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]