()
| 41 | self.assertEqual(b.ksym(stack[0]), b"htab_map_lookup_elem") |
| 42 | |
| 43 | def Get_libc_path(): |
| 44 | cmd = 'cat /proc/self/maps | grep libc | awk \'{print $6}\' | uniq' |
| 45 | output = subprocess.check_output(cmd, shell=True) |
| 46 | if not isinstance(output, str): |
| 47 | output = output.decode() |
| 48 | return output.split('\n')[0] |
| 49 | |
| 50 | @unittest.skipUnless(kernel_version_ge(4,17), "requires kernel >= 4.17") |
| 51 | class TestStackBuildid(unittest.TestCase): |