Skip to content

Commit

Permalink
run_with_pt.py: run arbitry application with pt to collect its contro…
Browse files Browse the repository at this point in the history
…l flow info.
  • Loading branch information
zhouxucs committed May 20, 2018
1 parent 8f87e12 commit f206579
Show file tree
Hide file tree
Showing 10 changed files with 84 additions and 863 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ add_subdirectory(pt)
add_subdirectory(msr)
add_subdirectory(afl-pt)

install(FILES run_with_pt.py DESTINATION bin)

4 changes: 2 additions & 2 deletions afl-pt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ add_executable(afl-ptfuzz ${SRC})
target_link_libraries(afl-ptfuzz pt msr capstone dl)

install(TARGETS afl-ptfuzz
RUNTIME DESTINATION .
)
RUNTIME DESTINATION bin
)
10 changes: 5 additions & 5 deletions pt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ set ( CMAKE_CXX_FLAGS "-std=c++11 -O3 -D_FILE_OFFSET_BITS=64 -g")
set(PT_SRC pt_decoder.cpp disassembler.cpp tnt_cache.cpp)

add_library(pt STATIC ${PT_SRC})
add_executable(test_pt test_pt.cpp)
target_link_libraries(test_pt pt msr capstone)
add_executable(run_pt run_pt.cpp)
target_link_libraries(run_pt pt msr capstone)

add_executable(test_disassemble test_disassemble.cpp)
target_link_libraries(test_disassemble pt capstone)

install(TARGETS pt test_pt test_disassemble
RUNTIME DESTINATION .
ARCHIVE DESTINATION .
install(TARGETS pt run_pt test_disassemble
RUNTIME DESTINATION bin
ARCHIVE DESTINATION bin
)

Loading

0 comments on commit f206579

Please sign in to comment.