MCPcopy Create free account
hub / github.com/iovisor/bcc / Get_libc_path

Function Get_libc_path

tests/python/test_stackid.py:43–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41 self.assertEqual(b.ksym(stack[0]), b"htab_map_lookup_elem")
42
43def 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")
51class TestStackBuildid(unittest.TestCase):

Callers 1

test_simpleMethod · 0.70

Calls 1

decodeMethod · 0.80

Tested by

no test coverage detected