Blame SOURCES/libruby.stp

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