#include <jdb_tbuf_show_i.h>
Inheritance diagram for Jdb_tbuf_show:
Public Member Functions | |
Jdb_module::Action_code | action (int cmd, void *&, char const *&, int &) |
The actual handler of the module. | |
Jdb_module::Cmd const *const | cmds () const |
The commands this module provides. | |
int const | num_cmds () const |
The number of commands this modules provides. | |
Jdb_tbuf_show () | |
Private Types | |
enum | { Index_mode = 0, Tsc_delta_mode = 1, Tsc_ref_mode = 2, Tsc_start_mode = 3, Kclock_ref_mode = 4, Kclock_start_mode = 5, Pmc1_delta_mode = 6, Pmc2_delta_mode = 7, Pmc1_ref_mode = 8, Pmc2_ref_mode = 9 } |
enum | { Tbuf_start_line = 3 } |
enum | { Status_ok = 0, Status_redraw = 1, Status_error = 2 } |
enum | { Nil = (Mword)-1 } |
Static Private Member Functions | |
static void | error (const char *const msg) |
static int | get_string (char *string, unsigned size) |
static void | show_perf_event_unit_mask_entry (Mword nr, Mword idx, Mword unit_mask, int exclusive) |
static void | show_perf_event (Mword nr) |
static Mword | select_perf_event_unit_mask (Mword nr, Mword unit_mask) |
static Mword | select_perf_event (Mword event) |
static void | show_events (Mword n, Mword ref, Mword count, Unsigned8 mode, Unsigned8 time_mode, int long_output) |
static Mword | search (Mword start, Mword entries, const char *str, Unsigned8 direction) |
static void | show () |
Static Private Attributes | |
static char | _search_str [40] |
static char | _filter_str [40] |
static char | _buffer_str [80] |
static Mword | _status_type |
static Mword | _absy |
static Mword | _nr_cur |
static Mword | _nr_ref |
static Mword | _nr_pos [10] |
|
|
|
|
|
|
|
|
|
|
|
The actual handler of the module.
The args and fmt arguments are references because they may be modified by the action() method and extra input may be requested by returning Action_code::EXTRA_INPUT. In the case where Action_code::EXTRA_INPUT is returned the Jdb_core reads again the values according to the given format (fmt) and enters action(). With this mechanism it is possible to request further input depending on the already given input. Implements Jdb_module. |
|
The commands this module provides. An array of Cmd structures must be returned, where each entry describes a single command. The command IDs (see Cmd::id) should be unique within the module, so that action() can distinguish between the different commands.
Implements Jdb_module. |
|
|
|
|
|
The number of commands this modules provides. This method must return how many Cmd structures can be found in the array returned by cmds().
Implements Jdb_module. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Initial value: |
|
|
|
|
|
|