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

Jdb_tbuf Class Reference

#include <jdb_tbuf.h>

Inheritance diagram for Jdb_tbuf:

Jdb_tbuf_init List of all members.

Public Types

enum  { Event = 1, Result = 2 }

Static Public Member Functions

static Tracebuffer_status
*const 
status ()
static void clear_tbuf ()
 Clear tracebuffer.
static Tb_entrynew_entry ()
 Return pointer to new tracebuffer entry.
static void commit_entry ()
 Commit tracebuffer entry.
static Mword unfiltered_entries ()
 Return number of entries currently allocated in tracebuffer.
static Mword entries ()
static Mword max_entries ()
 Return maximum number of entries in tracebuffer.
static void max_entries (Mword num)
 Set maximum number of entries in tracebuffer.
static int event_valid (Mword idx)
 Check if event is valid.
static Tb_entryunfiltered_lookup (Mword idx)
 Return pointer to tracebuffer event.
static Tb_entrylookup (Mword look_idx)
 Return pointer to tracebuffer event.
static Mword unfiltered_idx (Tb_entry *e)
static Mword idx (Tb_entry *e)
 Tb_entry => tracebuffer index.
static Tb_entrysearch (Mword nr)
 Event number => Tb_entry.
static Mword search_to_idx (Mword nr)
 Event number => tracebuffer index.
static int event (Mword idx, Mword *number, Unsigned32 *kclock, Unsigned64 *tsc, Unsigned32 *pmc1, Unsigned32 *pmc2)
 Return some information about log event.
static Tb_entryipc_pair_event (Mword idx, Unsigned8 *type)
 Search the paired event to an ipc event or ipc result event.
static Tb_entrypf_pair_event (Mword idx, Unsigned8 *type)
 Search the paired event to a pagefault / result event.
static int diff_tsc (Mword idx, Signed64 *delta)
 Get difference CPU cycles between event idx and event idx+1.
static int diff_pmc (Mword idx, Mword nr, Signed32 *delta)
 Get difference perfcnt cycles between event idx and event idx+1.
static void enable_filter ()
static void disable_filter ()

Static Public Attributes

static void(* direct_log_entry )(Tb_entry *, const char *) = &direct_log_dummy

Static Protected Member Functions

static Tb_entry_fit *const buffer ()

Static Protected Attributes

static Tb_entry_fittbuf_act
static Tb_entry_fittbuf_max
static Mword _entries
static Mword _max_entries
static Mword _filter_enabled
static Mword number
static Mword count_mask1
static Mword count_mask2
static Observerobserver

Member Enumeration Documentation

anonymous enum
 

Enumeration values:
Event 
Result 


Member Function Documentation

Tb_entry_fit *const Jdb_tbuf::buffer  )  [inline, static, protected]
 

void Jdb_tbuf::clear_tbuf  )  [static]
 

Clear tracebuffer.

void Jdb_tbuf::commit_entry  )  [static]
 

Commit tracebuffer entry.

int Jdb_tbuf::diff_pmc Mword  idx,
Mword  nr,
Signed32 *  delta
[static]
 

Get difference perfcnt cycles between event idx and event idx+1.

Parameters:
idx position of first event in tracebuffer
nr number of perfcounter (0=first, 1=second)
Return values:
difference in perfcnt cycles
Returns:
0 if something wrong, 1 if everything ok

int Jdb_tbuf::diff_tsc Mword  idx,
Signed64 *  delta
[static]
 

Get difference CPU cycles between event idx and event idx+1.

Parameters:
idx position of first event in tracebuffer
Return values:
difference in CPU cycles
Returns:
0 if something wrong, 1 if everything ok

void Jdb_tbuf::disable_filter  )  [inline, static]
 

void Jdb_tbuf::enable_filter  )  [inline, static]
 

Mword Jdb_tbuf::entries  )  [static]
 

int Jdb_tbuf::event Mword  idx,
Mword *  number,
Unsigned32 *  kclock,
Unsigned64 *  tsc,
Unsigned32 *  pmc1,
Unsigned32 *  pmc2
[static]
 

Return some information about log event.

Parameters:
idx number of event to determine the info
Return values:
number event number
tsc event value of CPU cycles
pmc event value of perf counter cycles
Returns:
0 if something wrong, 1 if everything ok

int Jdb_tbuf::event_valid Mword  idx  )  [inline, static]
 

Check if event is valid.

Parameters:
idx position of event in tracebuffer
Returns:
0 if not valid, 1 if valid

Mword Jdb_tbuf::idx Tb_entry e  )  [static]
 

Tb_entry => tracebuffer index.

Tb_entry * Jdb_tbuf::ipc_pair_event Mword  idx,
Unsigned8 *  type
[static]
 

Search the paired event to an ipc event or ipc result event.

Parameters:
idx number of event to search the pair event for
Return values:
type type of pair event
Returns:
number of pair event

Tb_entry * Jdb_tbuf::lookup Mword  look_idx  )  [static]
 

Return pointer to tracebuffer event.

Don't count hidden events.

Parameters:
position of event in tracebuffer: 0 is last event, 1 the event before and so on
Returns:
pointer to tracebuffer event
event with idx == 0 is the last event queued in event with idx == 1 is the event before

void Jdb_tbuf::max_entries Mword  num  )  [inline, static]
 

Set maximum number of entries in tracebuffer.

Mword Jdb_tbuf::max_entries  )  [inline, static]
 

Return maximum number of entries in tracebuffer.

Returns:
number of entries

Tb_entry * Jdb_tbuf::new_entry  )  [static]
 

Return pointer to new tracebuffer entry.

Tb_entry * Jdb_tbuf::pf_pair_event Mword  idx,
Unsigned8 *  type
[static]
 

Search the paired event to a pagefault / result event.

Parameters:
idx position of event in tracebuffer to search the pair event for
Return values:
type type of pair event
Returns:
number of pair event

Tb_entry * Jdb_tbuf::search Mword  nr  )  [inline, static]
 

Event number => Tb_entry.

Mword Jdb_tbuf::search_to_idx Mword  nr  )  [static]
 

Event number => tracebuffer index.

Parameters:
nr number of event
Returns:
tracebuffer index of event which has the number nr or -1 if there is no event with this number or -2 if the event is currently hidden.

Tracebuffer_status *const Jdb_tbuf::status  )  [inline, static]
 

Mword Jdb_tbuf::unfiltered_entries  )  [inline, static]
 

Return number of entries currently allocated in tracebuffer.

Returns:
number of entries

Mword Jdb_tbuf::unfiltered_idx Tb_entry e  )  [static]
 

Tb_entry * Jdb_tbuf::unfiltered_lookup Mword  idx  )  [static]
 

Return pointer to tracebuffer event.

Parameters:
position of event in tracebuffer: 0 is last event, 1 the event before and so on
Returns:
pointer to tracebuffer event
event with idx == 0 is the last event queued in event with idx == 1 is the event before


Member Data Documentation

Mword Jdb_tbuf::_entries [static, protected]
 

Mword Jdb_tbuf::_filter_enabled [static, protected]
 

Mword Jdb_tbuf::_max_entries [static, protected]
 

Mword Jdb_tbuf::count_mask1 [static, protected]
 

Mword Jdb_tbuf::count_mask2 [static, protected]
 

void(* Jdb_tbuf::direct_log_entry = &direct_log_dummy [static]
 

Mword Jdb_tbuf::number [static, protected]
 

Observer * Jdb_tbuf::observer [static, protected]
 

Tb_entry_fit * Jdb_tbuf::tbuf_act [static, protected]
 

Tb_entry_fit * Jdb_tbuf::tbuf_max [static, protected]
 


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