XRef
Documentation menu
xrefcode.com / docs / cli / callers

$ xref callers

On this page
  1. Usage
  2. Arguments and options
  3. Examples
  4. Callers 0xc7d60
  5. Callers
  6. Callers
  7. Callers
  8. Reading the output
  9. Limits
  10. Provenance

Direct calls and jumps to an address, and code taking its address or loading a slot holding it.

Inspects incoming call sites, outgoing direct/PLT calls, and register/stack argument values reaching every call to a target function.

Usage

xref callers [OPTIONS] <ADDR>

Arguments and options

Arguments

<ADDR>
Address whose callers and references to list.

Options

--with-observed <WITH_OBSERVED>
Explicit observed-edge store tied to this binary; sample counts are not call counts.

Examples

All examples were recorded on public binaries; see Provenance.

Callers 0xc7d60

All 6 call sites invoking 0xc7d60 across the stripped binary.

Command
$ xref -b xref.stripped callers 0xc7d60
Output
branches
0xb3955  in 0xb38a0  call 0xc7d60
0xba676  in 0xb43a0  call 0xc7d60
0xbae1a  in 0xb43a0  call 0xc7d60
0xc8157  in 0xc7fc0  call 0xc7d60
0xc9928  in 0xc7fc0  call 0xc7d60
0xd58e2  in 0xd57c0  call 0xc7d60
6 hits
address taken
0 hits
stderr
xref: load 613.7µs, total 2.9ms

Callers

Command
$ xref -b xref.stripped callers 0x9a8a0
Output
branches
0xb9b64  in 0xb43a0  call 0x9a8a0
1 hits
address taken
0 hits
stderr
xref: load 499.4µs, total 2.7ms

Callers

Command
$ xref -b xref.stripped callers 0xfbff0
Output
branches
0xb6ef4  in 0xb43a0  call 0xfbff0
0xb6f8e  in 0xb43a0  call 0xfbff0
2 hits
address taken
0 hits
stderr
xref: load 475.2µs, total 2.7ms

Callers

Command
$ xref -b xref.stripped callers 0xa2270
Output
branches
0x909e6  in 0x8ff70  call 0xa2270
0xbf061  in 0xbeed0  call 0xa2270
0xc063a  in 0xbff20  call 0xa2270
0xc0723  in 0xbff20  call 0xa2270
0xe84f2  in 0xd7740  call 0xa2270
0xe85b1  in 0xd7740  call 0xa2270
0xe91c6  in 0xd7740  call 0xa2270
0xecca0  in 0xd7740  call 0xa2270
8 hits
address taken
0 hits
stderr
xref: load 552.0µs, total 2.7ms

Reading the output

Limits

Provenance

Recorded with a development build of xref after 0.4.0 on Linux x86-64, on xref.stripped = a stripped xref build (the binary of the home-page examples). Output is unchanged except that whitespace at the end of each line and empty lines at the end of the output are removed; long outputs are cut where marked.

Source: docs/cli/callers.md · generated for the site; edit the Markdown, not this page.