30.01.2013 Views

TotalView Users Guide - CI Wiki

TotalView Users Guide - CI Wiki

TotalView Users Guide - CI Wiki

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Specifying Arenas<br />

Setting Process and Thread Focus<br />

A P/T identifier often indicates a number of groups, processes, and threads.<br />

For example, assume that two threads executing in process 2 are stopped<br />

at the same statement. This means that <strong>TotalView</strong> places the two stopped<br />

threads into lockstep groups. If the default focus is process 2, stepping this<br />

process actually steps both of these threads.<br />

<strong>TotalView</strong> uses the term arena to define the processes and threads that are<br />

the target of an action. In this case, the arena has two threads. Many CLI<br />

commands can act on one or more arenas. For example, the following<br />

command has two arenas:<br />

dfocus {p1 p2}<br />

The two arenas are process 1 and process 2.<br />

When there is an arena list, each arena in the list has its own GOI, POI, and<br />

TOI.<br />

Specifying Processes and Threads<br />

The previous sections described P/T sets as being lists; however, these discussions<br />

ignored what the individual elements of the list are. A better definition<br />

is that a P/T set is a list of arenas, where an arena consists of the processes,<br />

threads, and groups that are affected by a debugging command.<br />

Each arena specifier describes a single arena in which a command acts; the<br />

list is just a collection of arenas. Most commands iterate over the list, acting<br />

individually on an arena. Some CLI output commands, however, combine<br />

arenas and act on them as a single target.<br />

An arena specifier includes a width and a TOI. (Widths are discussed later in<br />

this section.) In the P/T set, the TOI specifies a target thread, while the width<br />

specifies how many threads surrounding the thread of interest are affected.<br />

Defining the Thread of Interest (TOI)<br />

The TOI is specified as p.t, where p is the <strong>TotalView</strong> process ID (PID) and t is<br />

the <strong>TotalView</strong> thread ID (TID). The p.t combination identifies the POI (Process<br />

of Interest) and TOI. The TOI is the primary thread affected by a command.<br />

This means that it is the primary focus for a <strong>TotalView</strong> command. For<br />

example, while the dstep command always steps the TOI, it can run the rest<br />

of the threads in the POI and step other processes in the group.<br />

In addition to using numerical values, you can also use two special symbols:<br />

� The less-than character (

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!