bcc_syms.cc: bug fix; identify VDSO using 'name' vs. 'path' (use of path incorrectly...
authorPete Stevenson <jps@pixielabs.ai>
Thu, 6 Jan 2022 23:09:54 +0000 (15:09 -0800)
committerPete Stevenson <jps@pixielabs.ai>
Fri, 7 Jan 2022 17:23:38 +0000 (09:23 -0800)
Signed-off-by: Pete Stevenson <jps@pixielabs.ai>
src/cc/bcc_syms.cc

index 24f4277bf106684c0430b911a27255a7a8b1f2e6..12c8250b2910ce0c6636126980d9d15222a35093 100644 (file)
@@ -238,7 +238,7 @@ ProcSyms::Module::Module(const char *name, const char *path,
   // Other symbol files
   if (bcc_is_valid_perf_map(path_.c_str()) == 1)
     type_ = ModuleType::PERF_MAP;
-  else if (bcc_elf_is_vdso(path_.c_str()) == 1)
+  else if (bcc_elf_is_vdso(name_.c_str()) == 1)
     type_ = ModuleType::VDSO;
 
   // Will be stored later