diff options
author | Fredrik Gustafsson <[email protected]> | 2012-08-20 17:32:40 +0200 |
---|---|---|
committer | Fredrik Gustafsson <[email protected]> | 2012-08-20 17:32:40 +0200 |
commit | e75feb093a37d3b0dfce18c501380ef1b696eedd (patch) | |
tree | 85838d9d39d8e5d9d7ec43a0123dfc6abd6769e7 /lib/runtime_tools/examples/user-probe-n.d | |
parent | f09b615c6a63aa336787be78bb932fc350a1bbc0 (diff) | |
parent | 75552bd3bb4e7f3cf4dab81a5c81cf73b1d3fb99 (diff) | |
download | otp-e75feb093a37d3b0dfce18c501380ef1b696eedd.tar.gz otp-e75feb093a37d3b0dfce18c501380ef1b696eedd.tar.bz2 otp-e75feb093a37d3b0dfce18c501380ef1b696eedd.zip |
Merge branch 'slf/slf-relocate-dtrace-N-probes/OTP-10189' into maint
* slf/slf-relocate-dtrace-N-probes/OTP-10189:
Relocate bodies of DTrace probes to the statically-linked VM.
Diffstat (limited to 'lib/runtime_tools/examples/user-probe-n.d')
-rw-r--r-- | lib/runtime_tools/examples/user-probe-n.d | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/lib/runtime_tools/examples/user-probe-n.d b/lib/runtime_tools/examples/user-probe-n.d new file mode 100644 index 0000000000..06a3e5c9b9 --- /dev/null +++ b/lib/runtime_tools/examples/user-probe-n.d @@ -0,0 +1,44 @@ +/* example usage: dtrace -q -s /path/to/user-probe.d */ +/* + * %CopyrightBegin% + * + * Copyright Scott Lystig Fritchie 2011-2012. All Rights Reserved. + * + * The contents of this file are subject to the Erlang Public License, + * Version 1.1, (the "License"); you may not use this file except in + * compliance with the License. You should have received a copy of the + * Erlang Public License along with this software. If not, it can be + * retrieved online at http://www.erlang.org/. + * + * Software distributed under the License is distributed on an "AS IS" + * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See + * the License for the specific language governing rights and limitations + * under the License. + * + * %CopyrightEnd% + */ + +erlang*:::user_trace-n0 +{ + printf("probe n0: %s %s %d %d %d %d '%s' '%s' '%s' '%s'\n", + copyinstr(arg0), + arg1 == NULL ? "" : copyinstr(arg1), + arg2, arg3, arg4, arg5, + arg6 == NULL ? "" : copyinstr(arg6), + arg7 == NULL ? "" : copyinstr(arg7), + arg8 == NULL ? "" : copyinstr(arg8), + arg9 == NULL ? "" : copyinstr(arg9)); +} + +erlang*:::user_trace-n1 +{ + printf("probe n1: %s %s %d %d %d %d '%s' '%s' '%s' '%s'\n", + copyinstr(arg0), + arg1 == NULL ? "" : copyinstr(arg1), + arg2, arg3, arg4, arg5, + arg6 == NULL ? "" : copyinstr(arg6), + arg7 == NULL ? "" : copyinstr(arg7), + arg8 == NULL ? "" : copyinstr(arg8), + arg9 == NULL ? "" : copyinstr(arg9)); +} + |