MCPcopy Create free account
hub / github.com/bloomberg/pystack / test_maps_for_binary_libpython_with_bss

Function test_maps_for_binary_libpython_with_bss

tests/unit/test_maps.py:492–565  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

490
491
492def test_maps_for_binary_libpython_with_bss():
493 # GIVEN
494
495 python = VirtualMap(
496 start=140728765599744,
497 end=140728765603840,
498 filesize=4096,
499 offset=0,
500 device="00:00",
501 flags="r-xp",
502 inode=0,
503 path=Path("the_executable"),
504 )
505
506 bss = VirtualMap(
507 start=139752898736128,
508 end=139752898887680,
509 filesize=4096,
510 offset=0,
511 device="08:12",
512 flags="r--p",
513 inode=8398159,
514 path=None,
515 )
516
517 libpython = VirtualMap(
518 start=140728765587456,
519 end=140728765599744,
520 filesize=4096,
521 offset=0,
522 device="00:00",
523 flags="r--p",
524 inode=0,
525 path=Path("/some/path/to/libpython.so"),
526 )
527
528 libpython_bss = VirtualMap(
529 start=18446744073699065856,
530 end=18446744073699069952,
531 filesize=4096,
532 offset=0,
533 device="00:00",
534 flags="r-xp",
535 inode=0,
536 path=None,
537 )
538
539 maps = [
540 python,
541 bss,
542 VirtualMap(
543 start=18446744073699065856,
544 end=18446744073699069952,
545 filesize=4096,
546 offset=0,
547 device="00:00",
548 flags="--xp",
549 inode=0,

Callers

nothing calls this directly

Calls 2

VirtualMapClass · 0.90

Tested by

no test coverage detected