Skip to content

Commit

Permalink
docs: update README with new command
Browse files Browse the repository at this point in the history
Signed-off-by: Alessio Greggi <[email protected]>
  • Loading branch information
alegrey91 committed Apr 22, 2024
1 parent ae45981 commit 9a118fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This tool is designed to provide fine-grained visibility into the syscalls made

## Getting Started

First of all, identify the symbol of the function you want to trace from the binary. Let's suppose you want to trace the function `doSomething()` present in the example program `./binary`. In order to get the symbol from the binary itself, you need to use the following command:
First of all, let's identify the symbol of the function you want to trace from the binary. Suppose you want to trace the function `doSomething()` present in the example program `./binary`. In order to get the symbol from the binary itself, you need to use the following command:

```sh
objdump --syms ./binary | grep doSomething
Expand All @@ -26,7 +26,7 @@ So, `main.doSomething` is the symbol of the function we want to trace using `har
Then, let's run `harpoon` to extract the syscalls from the function `main.doSomething`:

```shell
harpoon -fn main.doSomething ./binary
harpoon capture -f main.doSomething ./binary
read
sigaltstack
gettid
Expand Down

0 comments on commit 9a118fa

Please sign in to comment.