Skip to content

Instrumentation is too slow #14

@stephenrkell

Description

@stephenrkell

Our xed-based decode is especially slow, but even with the libx86emulate one, it takes too long to trap a whole segment of a large library like glibc. With xed, the pause time can be a second or so on my (slow) machine.

Some possible techniques for improving this:

  • cache trap sites, probably as an ELF file with .rel/.rela sections;
  • use a really fast decoder (maybe fastBT?);
  • trap in smaller chunks, lazily (this could also simplify away our mmap-time shdr-boundary hackery in bootstrap.c).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions