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.

Using P/T Set Controls<br />

Figure 162: The P/T Set<br />

Control in the Process<br />

Window<br />

If you’re running at group width:<br />

Process group <strong>TotalView</strong> examines each process in the process and<br />

share group to determine whether at least one thread<br />

is already at the goal. If a thread is at the goal,<br />

<strong>TotalView</strong> holds its process. Other processes are allowed<br />

to run. When at least one thread from each of<br />

these processes is held, the command completes. This<br />

lets you synchronize at least one thread in each of<br />

these processes at a source line. If you’re running a<br />

control group, this synchronizes all processes in the<br />

share group.<br />

Thread group <strong>TotalView</strong> examines all the threads in the thread group<br />

that are in the same share group as the TOI to determine<br />

whether a thread is already at the goal. If it is,<br />

<strong>TotalView</strong> holds it. Other threads are allowed to run.<br />

When all of the threads in the TOI’s share group reach<br />

the goal, <strong>TotalView</strong> stops the TOI’s control group and the<br />

command completes. This lets you synchronize thread<br />

group members. If you’re running a workers group, this<br />

synchronizes all worker threads in the share group.<br />

The process stops when the TOI and at least one thread from each process<br />

in the group or process being run reach the command stopping point. This<br />

lets you synchronize a group of processes and bring them to one location.<br />

You can also run to a selected line in a nested stack frame, as follows:<br />

1 Select a nested frame in the Stack Trace Pane.<br />

2 Select a source line or instruction in the function.<br />

3 Enter a Run To command.<br />

<strong>TotalView</strong> executes the primary thread until it reaches the selected line in<br />

the selected stack frame.<br />

Using P/T Set Controls<br />

A few GUI windows have P/T set control elements. For example, the following<br />

figure shows the top portion of the Process Window.<br />

256 Chapter 13: Using Groups, Processes, and Threads

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

Saved successfully!

Ooh no, something went wrong!