blob: 9f1883b6814dcbd68afd94b2483f1acb48a237c4 [file]
# this file can be used with the rmem -branch_targets argument
#
# syntax:
# <thread-id>:<loc-source> -> {<loc-target-1>[,<loc-target-2>[,...]]};
# where <thread-id> is a thread number, <loc-source> is the location of a
# branch-register/ret instruction and <loc-target-i> are the locations the
# instruction from <loc-source> can jump to. You can specify locations
# using decimal numbers, hexadecimal numbers (with 0x prefix) and symbols
# from the ELF header, with an offset, e.g.:
# _start - 4
# 0xfffff0 + 8
#
# When running rmem with the -v argument, when a new jump is observed it
# will be printed to the screen, and after every iteration of exhaustive
# search is completed all the observed jumps will be printed to the screen.
# You can copy/paste those into a file.
#
# If you under specify the targets, rmem will need more iterations to reach
# a fixed point; if you specify targets that are not reachable, each iteration
# will take longer.
0:0x4001d4 -> {0x40039c}; # ret from call to queued_read_lock_slowpath
1:0x4002a0 -> {0x4002e4}; # ret from call to queued_write_lock_slowpath