Method

GumStalkeradd_call_probe

Declaration [src]

GumProbeId
gum_stalker_add_call_probe (
  GumStalker* self,
  gpointer target_address,
  GumCallProbeCallback callback,
  gpointer data,
  GDestroyNotify notify
)

Description [src]

Registers callback to be invoked whenever a followed thread calls target_address, giving it access to the call’s arguments through the supplied GumCallDetails. Cheaper than a transformer when all you need is to observe calls to a specific function.

Parameters

target_address

Type: gpointer

Address of the function whose calls should be probed.

The argument can be NULL.
The data is owned by the caller of the method.
callback

Type: GumCallProbeCallback

Function to call for each observed call.

data

Type: gpointer

Data to pass to callback.

The argument can be NULL.
The data is owned by the caller of the method.
notify

Type: GDestroyNotify

Destroy notify for data.

The argument can be NULL.

Return value

Type: GumProbeId

An ID that can be passed to gum_stalker_remove_call_probe().