Skip to content

Commit

Permalink
Add patchAPI/overview
Browse files Browse the repository at this point in the history
  • Loading branch information
hainest committed Apr 3, 2024
1 parent d021401 commit 7666e4a
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions docs/patchAPI/overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -182,26 +182,23 @@ points.
CFG Traversal
^^^^^^^^^^^^^

..
rli:: https://raw.githubusercontent.com/dyninst/examples/master/patchAPI/CFGTraversal.cpp
.. rli:: https://raw.githubusercontent.com/dyninst/examples/master/patchAPI/CFGTraversal.cpp
:language: cpp
:linenos:


Finding Points
^^^^^^^^^^^^^^

..
rli:: https://raw.githubusercontent.com/dyninst/examples/master/patchAPI/findingPoints.cpp
.. rli:: https://raw.githubusercontent.com/dyninst/examples/master/patchAPI/findingPoints.cpp
:language: cpp
:linenos:


Patching Code
^^^^^^^^^^^^^

..
rli:: https://raw.githubusercontent.com/dyninst/examples/master/patchAPI/nopPatching.cpp
.. rli:: https://raw.githubusercontent.com/dyninst/examples/master/patchAPI/nopPatching.cpp
:language: cpp
:linenos:

Expand All @@ -217,26 +214,23 @@ utilize these memory management methods during the code patching process. For ex
instrumentation engine needs to malloc a buffer in a mutatee’s address space
and then write the code snippet into this buffer.

..
rli:: https://raw.githubusercontent.com/dyninst/examples/master/patchAPI/addressSpace.cpp
.. rli:: https://raw.githubusercontent.com/dyninst/examples/master/patchAPI/addressSpace.cpp
:language: cpp
:linenos:


Custom CFG Generator
^^^^^^^^^^^^^^^^^^^^

..
rli:: https://raw.githubusercontent.com/dyninst/examples/master/patchAPI/CFGMaker.cpp
.. rli:: https://raw.githubusercontent.com/dyninst/examples/master/patchAPI/CFGMaker.cpp
:language: cpp
:linenos:


Making Points
^^^^^^^^^^^^^

..
rli:: https://raw.githubusercontent.com/dyninst/examples/master/patchAPI/PointMaker.cpp
.. rli:: https://raw.githubusercontent.com/dyninst/examples/master/patchAPI/PointMaker.cpp
:language: cpp
:linenos:

Expand All @@ -255,8 +249,7 @@ Finally, modifications to the CFG are represented in that CFG, allowing
users to iteratively combine multiple CFG transformations to achieve
their goals.

..
rli:: https://raw.githubusercontent.com/dyninst/examples/master/patchAPI/PatchModifier.cpp
.. rli:: https://raw.githubusercontent.com/dyninst/examples/master/patchAPI/PatchModifier.cpp
:language: cpp
:linenos:

Expand Down

0 comments on commit 7666e4a

Please sign in to comment.