[ruby/strscan] jruby: Check if len++ walked off the end
[ruby.git] / probes.d
blob0762a2d25f3e6dce90f2d8291e14d3bcdc1d203d
1 /* -*- c -*- */
2 #include "vm_opts.h"
4 provider ruby {
5 /*
6 ruby:::method-entry(classname, methodname, filename, lineno);
8 This probe is fired just before a method is entered.
10 * `classname` name of the class (a string)
11 * `methodname` name of the method about to be executed (a string)
12 * `filename` the file name where the method is _being called_ (a string)
13 * `lineno` the line number where the method is _being called_ (an int)
15 probe method__entry(const char *classname, const char *methodname, const char *filename, int lineno);
17 ruby:::method-return(classname, methodname, filename, lineno);
19 This probe is fired just after a method has returned. The arguments are
20 the same as "ruby:::method-entry".
22 probe method__return(const char *classname, const char *methodname, const char *filename, int lineno);
25 ruby:::cmethod-entry(classname, methodname, filename, lineno);
27 This probe is fired just before a C method is entered. The arguments are
28 the same as "ruby:::method-entry".
30 probe cmethod__entry(const char *classname, const char *methodname, const char *filename, int lineno);
32 ruby:::cmethod-return(classname, methodname, filename, lineno);
34 This probe is fired just before a C method returns. The arguments are
35 the same as "ruby:::method-entry".
37 probe cmethod__return(const char *classname, const char *methodname, const char *filename, int lineno);
40 ruby:::require-entry(requiredfile, filename, lineno);
42 This probe is fired on calls to `rb_require_safe` (when a file is
43 required).
45 * `requiredfile` is the name of the file to be required (string).
46 * `filename` is the file that called "require" (string).
47 * `lineno` is the line number where the call to require was made (int).
49 probe require__entry(const char *rquiredfile, const char *filename, int lineno);
52 ruby:::require-return(requiredfile, filename, lineno);
54 This probe is fired just before `rb_require_safe` (when a file is required)
55 returns. The arguments are the same as "ruby:::require-entry". This
56 probe will not fire if there was an exception during file require.
58 probe require__return(const char *requiredfile, const char *filename, int lineno);
61 ruby:::find-require-entry(requiredfile, filename, lineno);
63 This probe is fired right before `search_required` is called.
64 `search_required` determines whether the file has already been required by
65 searching loaded features ($"), and if not, figures out which file must be
66 loaded.
68 * `requiredfile` is the file to be required (string).
69 * `filename` is the file that called "require" (string).
70 * `lineno` is the line number where the call to require was made (int).
72 probe find__require__entry(const char *requiredfile, const char *filename, int lineno);
75 ruby:::find-require-return(requiredfile, filename, lineno);
77 This probe is fired right after `search_required` returns. See the
78 documentation for "ruby:::find-require-entry" for more details. Arguments
79 for this probe are the same as "ruby:::find-require-entry".
81 probe find__require__return(const char *requiredfile, const char *filename, int lineno);