Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

Jdb_tbuf_show Class Reference

#include <jdb_tbuf_show_i.h>

Inheritance diagram for Jdb_tbuf_show:

Jdb_module List of all members.

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]

Member Enumeration Documentation

anonymous enum [private]
 

Enumeration values:
Index_mode 
Tsc_delta_mode 
Tsc_ref_mode 
Tsc_start_mode 
Kclock_ref_mode 
Kclock_start_mode 
Pmc1_delta_mode 
Pmc2_delta_mode 
Pmc1_ref_mode 
Pmc2_ref_mode 

anonymous enum [private]
 

Enumeration values:
Tbuf_start_line 

anonymous enum [private]
 

Enumeration values:
Status_ok 
Status_redraw 
Status_error 

anonymous enum [private]
 

Enumeration values:
Nil 


Constructor & Destructor Documentation

Jdb_tbuf_show::Jdb_tbuf_show  ) 
 


Member Function Documentation

Jdb_module::Action_code Jdb_tbuf_show::action int  cmd,
void *&  ,
char const *&  ,
int & 
[virtual]
 

The actual handler of the module.

Parameters:
cmd the command ID (see Cmd::id) of the executed command.
args a reference to the argument buffer pointer.
fmt a reference to the format string pointer.
This method is pure virtual and must be provided by the specific derivate of the Jdb_module. action() is called if one of the module's commands was issued and the input according to the format string is read.

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.

Jdb_module::Cmd const *const Jdb_tbuf_show::cmds  )  const [virtual]
 

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.

See also:
num_cmds()

Cmd

action()

Implements Jdb_module.

void Jdb_tbuf_show::error const char *const   msg  )  [static, private]
 

int Jdb_tbuf_show::get_string char *  string,
unsigned  size
[static, private]
 

int const Jdb_tbuf_show::num_cmds  )  const [virtual]
 

The number of commands this modules provides.

This method must return how many Cmd structures can be found in the array returned by cmds().

See also:
cmds()

Implements Jdb_module.

Mword Jdb_tbuf_show::search Mword  start,
Mword  entries,
const char *  str,
Unsigned8  direction
[static, private]
 

Mword Jdb_tbuf_show::select_perf_event Mword  event  )  [static, private]
 

Mword Jdb_tbuf_show::select_perf_event_unit_mask Mword  nr,
Mword  unit_mask
[static, private]
 

void Jdb_tbuf_show::show  )  [static, private]
 

void Jdb_tbuf_show::show_events Mword  n,
Mword  ref,
Mword  count,
Unsigned8  mode,
Unsigned8  time_mode,
int  long_output
[static, private]
 

void Jdb_tbuf_show::show_perf_event Mword  nr  )  [static, private]
 

void Jdb_tbuf_show::show_perf_event_unit_mask_entry Mword  nr,
Mword  idx,
Mword  unit_mask,
int  exclusive
[static, private]
 


Member Data Documentation

Mword Jdb_tbuf_show::_absy [static, private]
 

char Jdb_tbuf_show::_buffer_str [static, private]
 

char Jdb_tbuf_show::_filter_str [static, private]
 

Mword Jdb_tbuf_show::_nr_cur [static, private]
 

Mword Jdb_tbuf_show::_nr_pos [static, private]
 

Initial value:

 { Nil, Nil, Nil, Nil, Nil,
                                     Nil, Nil, Nil, Nil, Nil }

Mword Jdb_tbuf_show::_nr_ref [static, private]
 

char Jdb_tbuf_show::_search_str [static, private]
 

Mword Jdb_tbuf_show::_status_type [static, private]
 


The documentation for this class was generated from the following files:
Generated on Mon Sep 26 14:20:16 2005 for Fiasco by  doxygen 1.4.2