print "    thread_offset %d" % tracker.thread_offset
    print "    pid_offset    %d" % tracker.pid_offset


new_command(
    "new-" + class_name,
    new_ppc32_linux_process_tracker_cmd, [
        arg(str_t, "name", "?", None),
        arg(int_t, "thread_offset", "?", None),
        arg(int_t, "pid_offset", "?", None),
        arg(str_t, "kernel", "?", None, expander=ppc32_linux_kernel_expander)
    ],
    type="Debugging",
    see_also=["new-context-switcher", "<tracker>.add-processor"],
    short="create new ppc32-linux process tracker",
    doc="""

Create a new ppc32-linux process tracker. You must either specify the
<i>thread_offset</i> and <i>pid_offset</i> integer parameters, or
choose a named set of parameters by giving the <i>kernel</i>
argument.

The tracker's set of processors will initially be empty. You can add
the processors you want it to watch with its add-processors
command.""",
    filename=
    "/mp/simics-3.0/src/extensions/ppc32-linux-process-tracker/gcommands.py",
    linenumber="78")

register_tracker(class_name)
Example #2
0
            print "There is no named set of parameters called '%s'." % kernel
            SIM_command_has_problem()
            return

    # Finally, create the tracker.
    tracker = SIM_create_object(class_name, name, [])
    if kernel:
        ptrack_settings_ifc().use_settings(tracker, kernel)
    if SIM_is_interactive():
        print "New process tracker %s created." % name
    return (name,)

new_command("new-" + class_name, new_linux_process_tracker_cmd,
            [arg(str_t, "name", "?", None),
             arg(str_t, "kernel", "?", None,
                 expander = linux_kernel_expander)],
            type = "Debugging",
            see_also = ["new-context-switcher", "<tracker>.add-processor"],
            short = "create new Linux process tracker",
            doc = """

Create a new Linux process tracker. You may choose a named set of
parameters by giving the <i>kernel</i> argument; otherwise, you must
set the parameters manually, or use the autodetect-parameters command.

The tracker's set of processors will initially be empty. You can add
the processors you want it to watch with its add-processors
command.""", filename="/mp/simics-3.0/src/extensions/linux-process-tracker/gcommands.py", linenumber="64")

register_tracker(class_name)