Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ Perl:

https://github.com/chrisa/perl-Devel-DTrace-Provider

Python:

https://github.com/nshalman/python-usdt

To Do
-----

Expand Down
7 changes: 7 additions & 0 deletions usdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,3 +319,10 @@ usdt_errstr(usdt_provider_t *provider)
{
return (provider->error);
}

void
usdt_fire_probedef(usdt_probedef_t *probedef, int argc, void **argv)
{
if (usdt_is_enabled(probedef->probe))
usdt_fire_probe(probedef->probe, argc, argv);
}
1 change: 1 addition & 0 deletions usdt.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,4 @@ void usdt_provider_free(usdt_provider_t *provider);
void usdt_error(usdt_provider_t *provider, usdt_error_t error, ...);
char *usdt_errstr(usdt_provider_t *provider);

void usdt_fire_probedef(usdt_probedef_t *probedef, int argc, void **argv);