Blame SOURCES/libruby.stp

e076ba
/* SystemTap tapset to make it easier to trace Ruby 2.0
e076ba
 *
e076ba
 * All probes provided by Ruby can be listed using following command
e076ba
 * (the path to the library must be adjuste appropriately):
e076ba
 *
e076ba
 * stap -L 'process("@LIBRARY_PATH@").mark("*")'
e076ba
 */
e076ba
e076ba
/**
e076ba
 * probe ruby.array.create - Allocation of new array.
e076ba
 *
e076ba
 * @size: Number of elements (an int)
e076ba
 * @file: The file name where the method is being called (string)
e076ba
 * @line: The line number where the method is being called (int)
e076ba
 */
e076ba
probe ruby.array.create =
e076ba
      process("@LIBRARY_PATH@").mark("array__create")
e076ba
{
e076ba
	size = $arg1
e076ba
	file = user_string($arg2)
e076ba
	line = $arg3
e076ba
}
e076ba
e076ba
/**
e076ba
 * probe ruby.cmethod.entry - Fired just before a method implemented in C is entered.
e076ba
 *
e076ba
 * @classname: Name of the class (string)
e076ba
 * @methodname: The method about bo be executed (string)
e076ba
 * @file: The file name where the method is being called (string)
e076ba
 * @line: The line number where the method is being called (int)
e076ba
 */
e076ba
probe ruby.cmethod.entry =
e076ba
      process("@LIBRARY_PATH@").mark("cmethod__entry")
e076ba
{
e076ba
	classname  = user_string($arg1)
e076ba
	methodname = user_string($arg2)
e076ba
	file = user_string($arg3)
e076ba
	line = $arg4
e076ba
}
e076ba
e076ba
/**
e076ba
 * probe ruby.cmethod.return - Fired just after a method implemented in C has returned.
e076ba
 *
e076ba
 * @classname: Name of the class (string)
e076ba
 * @methodname: The executed method (string)
e076ba
 * @file: The file name where the method is being called (string)
e076ba
 * @line: The line number where the method is being called (int)
e076ba
 */
e076ba
probe ruby.cmethod.return =
e076ba
      process("@LIBRARY_PATH@").mark("cmethod__return")
e076ba
{
e076ba
	classname  = user_string($arg1)
e076ba
	methodname = user_string($arg2)
e076ba
	file = user_string($arg3)
e076ba
	line = $arg4
e076ba
}
e076ba
e076ba
/**
e076ba
 * probe ruby.find.require.entry - Fired when require starts to search load
e076ba
 * path for suitable file to require.
e076ba
 *
e076ba
 * @requiredfile: The name of the file to be required (string)
e076ba
 * @file: The file name where the method is being called (string)
e076ba
 * @line: The line number where the method is being called (int)
e076ba
 */
e076ba
probe ruby.find.require.entry =
e076ba
      process("@LIBRARY_PATH@").mark("find__require__entry")
e076ba
{
e076ba
	requiredfile = user_string($arg1)
e076ba
	file = user_string($arg2)
e076ba
	line = $arg3
e076ba
}
e076ba
e076ba
/**
e076ba
 * probe ruby.find.require.return - Fired just after require has finished
e076ba
 * search of load path for suitable file to require.
e076ba
 *
e076ba
 * @requiredfile: The name of the file to be required (string)
e076ba
 * @file: The file name where the method is being called (string)
e076ba
 * @line: The line number where the method is being called (int)
e076ba
 */
e076ba
probe ruby.find.require.return =
e076ba
      process("@LIBRARY_PATH@").mark("find__require__return")
e076ba
{
e076ba
	requiredfile = user_string($arg1)
e076ba
	file = user_string($arg2)
e076ba
	line = $arg3
e076ba
}
e076ba
e076ba
/**
e076ba
 * probe ruby.gc.mark.begin - Fired when a GC mark phase is about to start.
e076ba
 *
e076ba
 * It takes no arguments.
e076ba
 */
e076ba
probe ruby.gc.mark.begin =
e076ba
      process("@LIBRARY_PATH@").mark("gc__mark__begin")
e076ba
{
e076ba
}
e076ba
e076ba
/**
e076ba
 * probe ruby.gc.mark.end - Fired when a GC mark phase has ended.
e076ba
 *
e076ba
 * It takes no arguments.
e076ba
 */
e076ba
probe ruby.gc.mark.end =
e076ba
      process("@LIBRARY_PATH@").mark("gc__mark__end")
e076ba
{
e076ba
}
e076ba
e076ba
/**
e076ba
 * probe ruby.gc.sweep.begin - Fired when a GC sweep phase is about to start.
e076ba
 *
e076ba
 * It takes no arguments.
e076ba
 */
e076ba
probe ruby.gc.sweep.begin =
e076ba
      process("@LIBRARY_PATH@").mark("gc__sweep__begin")
e076ba
{
e076ba
}
e076ba
e076ba
/**
e076ba
 * probe ruby.gc.sweep.end - Fired when a GC sweep phase has ended.
e076ba
 *
e076ba
 * It takes no arguments.
e076ba
 */
e076ba
probe ruby.gc.sweep.end =
e076ba
      process("@LIBRARY_PATH@").mark("gc__sweep__end")
e076ba
{
e076ba
}
e076ba
e076ba
/**
e076ba
 * probe ruby.hash.create - Allocation of new hash.
e076ba
 *
e076ba
 * @size: Number of elements (int)
e076ba
 * @file: The file name where the method is being called (string)
e076ba
 * @line: The line number where the method is being called (int)
e076ba
 */
e076ba
probe ruby.hash.create =
e076ba
      process("@LIBRARY_PATH@").mark("hash__create")
e076ba
{
e076ba
	size = $arg1
e076ba
	file = user_string($arg2)
e076ba
	line = $arg3
e076ba
}
e076ba
e076ba
/**
e076ba
 * probe ruby.load.entry - Fired when calls to "load" are made.
e076ba
 *
e076ba
 * @loadedfile: The name of the file to be loaded (string)
e076ba
 * @file: The file name where the method is being called (string)
e076ba
 * @line: The line number where the method is being called (int)
e076ba
 */
e076ba
probe ruby.load.entry =
e076ba
      process("@LIBRARY_PATH@").mark("load__entry")
e076ba
{
e076ba
	loadedfile = user_string($arg1)
e076ba
	file = user_string($arg2)
e076ba
	line = $arg3
e076ba
}
e076ba
e076ba
/**
e076ba
 * probe ruby.load.return - Fired just after require has finished
e076ba
 * search of load path for suitable file to require.
e076ba
 *
e076ba
 * @loadedfile: The name of the file that was loaded (string)
e076ba
 */
e076ba
probe ruby.load.return =
e076ba
      process("@LIBRARY_PATH@").mark("load__return")
e076ba
{
e076ba
	loadedfile = user_string($arg1)
e076ba
}
e076ba
e076ba
/**
e076ba
 * probe ruby.method.entry - Fired just before a method implemented in Ruby is entered.
e076ba
 *
e076ba
 * @classname: Name of the class (string)
e076ba
 * @methodname: The method about bo be executed (string)
e076ba
 * @file: The file name where the method is being called (string)
e076ba
 * @line: The line number where the method is being called (int)
e076ba
 */
e076ba
probe ruby.method.entry =
e076ba
      process("@LIBRARY_PATH@").mark("method__entry")
e076ba
{
e076ba
	classname  = user_string($arg1)
e076ba
	methodname = user_string($arg2)
e076ba
	file = user_string($arg3)
e076ba
	line = $arg4
e076ba
}
e076ba
e076ba
/**
e076ba
 * probe ruby.method.return - Fired just after a method implemented in Ruby has returned.
e076ba
 *
e076ba
 * @classname: Name of the class (string)
e076ba
 * @methodname: The executed method (string)
e076ba
 * @file: The file name where the method is being called (string)
e076ba
 * @line: The line number where the method is being called (int)
e076ba
 */
e076ba
probe ruby.method.return =
e076ba
      process("@LIBRARY_PATH@").mark("method__return")
e076ba
{
e076ba
	classname  = user_string($arg1)
e076ba
	methodname = user_string($arg2)
e076ba
	file = user_string($arg3)
e076ba
	line = $arg4
e076ba
}
e076ba
e076ba
/**
e076ba
 * probe ruby.object.create - Allocation of new object.
e076ba
 *
e076ba
 * @classname: Name of the class (string)
e076ba
 * @file: The file name where the method is being called (string)
e076ba
 * @line: The line number where the method is being called (int)
e076ba
 */
e076ba
probe ruby.object.create =
e076ba
      process("@LIBRARY_PATH@").mark("object__create")
e076ba
{
e076ba
	classname = user_string($arg1)
e076ba
	file = user_string($arg2)
e076ba
	line = $arg3
e076ba
}
e076ba
e076ba
/**
e076ba
 * probe ruby.parse.begin - Fired just before a Ruby source file is parsed.
e076ba
 *
e076ba
 * @parsedfile: The name of the file to be parsed (string)
e076ba
 * @parsedline: The line number of beginning of parsing (int)
e076ba
 */
e076ba
probe ruby.parse.begin =
e076ba
      process("@LIBRARY_PATH@").mark("parse__begin")
e076ba
{
e076ba
	parsedfile = user_string($arg1)
e076ba
	parsedline = $arg2
e076ba
}
e076ba
e076ba
/**
e076ba
 * probe ruby.parse.end - Fired just after a Ruby source file was parsed.
e076ba
 *
e076ba
 * @parsedfile: The name of parsed the file (string)
e076ba
 * @parsedline: The line number of beginning of parsing (int)
e076ba
 */
e076ba
probe ruby.parse.end =
e076ba
      process("@LIBRARY_PATH@").mark("parse__end")
e076ba
{
e076ba
	parsedfile = user_string($arg1)
e076ba
	parsedline = $arg2
e076ba
}
e076ba
e076ba
/**
e076ba
 * probe ruby.raise - Fired when an exception is raised.
e076ba
 *
e076ba
 * @classname: The class name of the raised exception (string)
e076ba
 * @file: The name of the file where the exception was raised (string)
e076ba
 * @line: The line number in the file where the exception was raised (int)
e076ba
 */
e076ba
probe ruby.raise =
e076ba
      process("@LIBRARY_PATH@").mark("raise")
e076ba
{
e076ba
	classname  = user_string($arg1)
e076ba
	file = user_string($arg2)
e076ba
	line = $arg3
e076ba
}
e076ba
e076ba
/**
e076ba
 * probe ruby.require.entry - Fired on calls to rb_require_safe (when a file
e076ba
 * is required).
e076ba
 *
e076ba
 * @requiredfile: The name of the file to be required (string)
e076ba
 * @file: The file that called "require" (string)
e076ba
 * @line: The line number where the call to require was made(int)
e076ba
 */
e076ba
probe ruby.require.entry =
e076ba
      process("@LIBRARY_PATH@").mark("require__entry")
e076ba
{
e076ba
	requiredfile = user_string($arg1)
e076ba
	file = user_string($arg2)
e076ba
	line = $arg3
e076ba
}
e076ba
e076ba
/**
e076ba
 * probe ruby.require.return - Fired just after require has finished
e076ba
 * search of load path for suitable file to require.
e076ba
 *
e076ba
 * @requiredfile: The file that was required (string)
e076ba
 */
e076ba
probe ruby.require.return =
e076ba
      process("@LIBRARY_PATH@").mark("require__return")
e076ba
{
e076ba
	requiredfile = user_string($arg1)
e076ba
}
e076ba
e076ba
/**
e076ba
 * probe ruby.string.create - Allocation of new string.
e076ba
 *
e076ba
 * @size: Number of elements (an int)
e076ba
 * @file: The file name where the method is being called (string)
e076ba
 * @line: The line number where the method is being called (int)
e076ba
 */
e076ba
probe ruby.string.create =
e076ba
      process("@LIBRARY_PATH@").mark("string__create")
e076ba
{
e076ba
	size = $arg1
e076ba
	file = user_string($arg2)
e076ba
	line = $arg3
e076ba
}