The syntax for the tvscript command is:TotalView and tvscript command-line options. You can use any options described in Chapter 7, “TotalView Command Syntax”. tvscript command-line options are described in the next section.-a program_argsThe command-line options most often used with tvscript are:
![]()
-mpi (The MPI environments supported are those listed in the Parallel tab of the File > New Program dialog box.)
![]()
The syntax for using tvscript with an MPI on Blue Gene/L and Blue Gene/P systems is:tvscript [ options ] -mpi BlueGene - np number-of-instances -starter_args
"filename [ mpi-arguments] [-args program_args]" mpirun-np number-of-instancesRequired, with the arguments following enclosed in quotes; the application executable (filename) to be debugged must be the first argument.Command argument for mpirun that passes to the launched application on the compute node.Required; the executable at the end of the command line.The syntax for using tvscript with an MPI on Blue Gene/Q systems using SLURM is:tvscript [ options ] -mpi BlueGeneQ-SLURM - np number-of-instances -starter_args
"[srun-arguments] filename [program_args]" srun-np number-of-instancesRequired, with the arguments following enclosed in quotes; the application executable (filename) to be debugged must follow the arguments for srun.Required; the executable at the end of the command line.tvscript [ options ] -mpi BlueGeneQ-Cobalt - np number-of-ranks -starter_args
"[runjob-arguments] : filename [program_args]" runjob-np number-of-ranksRequired, with the arguments following enclosed in quotes; the application executable (filename) to be debugged must follow the arguments for runjob and be separated by a colon (:).Required; the executable at the end of the command line.Creates an action point at a source location using an expression. (See “Action Point API” for writing expressions.) When the action point is hit, tvscript can trigger one or more actions. Add one -create_watchpoint command-line option for each action point.Performs an action when an event occurs. Events represent an unanticipated condition, such as free_not_allocated in the Memory Debugger. You can use more than one -event_action command-line option when invoking tvscript.Here is how you enter an event_action_list :
-level level-num sets the level at which information starts being logged.num_levels restricts output to this number of levels in the call stack.If you do not set a level, tvscript displays all levels in the call stack.options is one or more of the following: Writes the value of a variable or an expression into the log file. If the variable is an array, the -slice option limits the amount of data defined by slice_exp. A slice expression is a way to define the slice, such as var[100:130] in C and C++. (This displays all values from var[100] to var[130].) To display every fourth value, add an additional argument; for example, var[100:130:4]. For additional information, see Chapter 14 “Examining Arrays” in the TotalView User Guide.By default, tvscript writes all of the information in the following table to the log file. You can exclude information by using one of the following specifiers:
Enables memory debugging and memory event notification. This option is required with any option that begins with -mem. These options are TotalView command line options, as they can be invoked directly by TotalView.-script_file script_fileNames a file containing tvscript API calls and Tcl callback procedures that you create.-script_log_filename logFilename-script_summary_log_filename summaryLogFilename
![]()
Creates an action point at the beginning of method1. When tvscript reaches that breakpoint, it logs a backtrace and the method’s arguments.
![]()
Creates an action point at line 37 of method2. When tvscript reaches this line, it logs a backtrace and the local variables. The backtrace information starts at level 1.
![]()
Limits tvscript execution time to 30 seconds.
Rogue Wave Software, Inc. |
Voice: (303) 473-9118 |
support@roguewave.com |