Lines Matching full:script
3 # Build a systemtap script for a given image, kernel
5 # Effectively script extracts needed information from set of
7 # host to build systemtap script for a given target.
9 # By default script will compile scriptname.ko that could be copied
11 # --remote user@hostname option is specified script will build, load
12 # execute script on target.
14 # This script is very similar and inspired by crosstap shell script.
15 # The major difference that this script supports user-land related
16 # systemtap script, whereas crosstap could deal only with scripts
31 def __init__(self, script, module, remote): argument
32 self.script = script
47 # derive module name from script
48 self.module = os.path.basename(self.script)
90 ret.append(self.script)
345 usage = """usage: %prog -s <systemtap-script> [options] [-- [systemtap options]]
347 %prog cross compile given SystemTap script against given image, kernel
356 Legacy script invocation style supported but deprecated:
357 %prog <user@hostname> <sytemtap-script> [systemtap options]
378 option_parser.add_option("-s", "--script", dest="script",
379 help="specify input script FILE name",
383 help="specify image name for which script should be compiled")
386 help="specify username@hostname of remote target to run script "
391 "if not specified module name will be derived from passed script name")
401 … help="output shell script that equvivalent invocation of this script with "
403 … "separate shell script and could be repeated without incuring bitbake -e "
412 # is invocation follow syntax from orignal crosstap shell script
422 options.script = sys.argv[2]
434 if not options.script or not os.path.exists(options.script):
438 stap = Stap(options.script, options.module, options.remote)