GDB (xrefs)
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
probe Class Referenceabstract

#include "probe.h"

Inheritance diagram for probe:
dtrace_probe stap_probe

Public Member Functions

 probe (std::string &&name_, std::string &&provider_, CORE_ADDR address_, struct gdbarch *arch_)
 
virtual ~probe ()
 
virtual CORE_ADDR get_relocated_address (struct objfile *objfile)=0
 
virtual unsigned get_argument_count (struct gdbarch *gdbarch)=0
 
virtual bool can_evaluate_arguments () const =0
 
virtual struct valueevaluate_argument (unsigned n, frame_info_ptr frame)=0
 
virtual void compile_to_ax (struct agent_expr *aexpr, struct axs_value *axs_value, unsigned n)=0
 
virtual void set_semaphore (struct objfile *objfile, struct gdbarch *gdbarch)
 
virtual void clear_semaphore (struct objfile *objfile, struct gdbarch *gdbarch)
 
virtual const static_probe_opsget_static_ops () const =0
 
virtual std::vector< const char * > gen_info_probes_table_values () const
 
virtual void enable ()
 
virtual void disable ()
 
const std::string & get_name () const
 
const std::string & get_provider () const
 
CORE_ADDR get_address () const
 
struct gdbarchget_gdbarch () const
 

Private Attributes

std::string m_name
 
std::string m_provider
 
CORE_ADDR m_address
 
struct gdbarchm_arch
 

Detailed Description

Definition at line 114 of file probe.h.

Constructor & Destructor Documentation

◆ probe()

probe::probe ( std::string && name_,
std::string && provider_,
CORE_ADDR address_,
struct gdbarch * arch_ )
inline

Definition at line 118 of file probe.h.

◆ ~probe()

virtual probe::~probe ( )
inlinevirtual

Definition at line 125 of file probe.h.

Member Function Documentation

◆ can_evaluate_arguments()

virtual bool probe::can_evaluate_arguments ( ) const
pure virtual

◆ clear_semaphore()

virtual void probe::clear_semaphore ( struct objfile * objfile,
struct gdbarch * gdbarch )
inlinevirtual

Reimplemented in stap_probe.

Definition at line 164 of file probe.h.

Referenced by code_breakpoint::remove_location().

◆ compile_to_ax()

virtual void probe::compile_to_ax ( struct agent_expr * aexpr,
struct axs_value * axs_value,
unsigned n )
pure virtual

Implemented in dtrace_probe, and stap_probe.

Referenced by compile_probe_arg().

◆ disable()

virtual void probe::disable ( )
inlinevirtual

Reimplemented in dtrace_probe.

Definition at line 195 of file probe.h.

Referenced by disable_probes_command().

◆ enable()

virtual void probe::enable ( )
inlinevirtual

Reimplemented in dtrace_probe.

Definition at line 189 of file probe.h.

Referenced by enable_probes_command().

◆ evaluate_argument()

virtual struct value * probe::evaluate_argument ( unsigned n,
frame_info_ptr frame )
pure virtual

◆ gen_info_probes_table_values()

virtual std::vector< const char * > probe::gen_info_probes_table_values ( ) const
inlinevirtual

Reimplemented in dtrace_probe, and stap_probe.

Definition at line 182 of file probe.h.

Referenced by gen_ui_out_table_header_info(), and print_ui_out_info().

◆ get_address()

CORE_ADDR probe::get_address ( ) const
inline

◆ get_argument_count()

virtual unsigned probe::get_argument_count ( struct gdbarch * gdbarch)
pure virtual

◆ get_gdbarch()

struct gdbarch * probe::get_gdbarch ( ) const
inline

◆ get_name()

const std::string & probe::get_name ( ) const
inline

◆ get_provider()

const std::string & probe::get_provider ( ) const
inline

◆ get_relocated_address()

virtual CORE_ADDR probe::get_relocated_address ( struct objfile * objfile)
pure virtual

Implemented in dtrace_probe, and stap_probe.

Referenced by info_probes_for_spops().

◆ get_static_ops()

virtual const static_probe_ops * probe::get_static_ops ( ) const
pure virtual

◆ set_semaphore()

virtual void probe::set_semaphore ( struct objfile * objfile,
struct gdbarch * gdbarch )
inlinevirtual

Reimplemented in stap_probe.

Definition at line 157 of file probe.h.

Referenced by code_breakpoint::insert_location().

Member Data Documentation

◆ m_address

CORE_ADDR probe::m_address
private

Definition at line 232 of file probe.h.

Referenced by get_address().

◆ m_arch

struct gdbarch* probe::m_arch
private

Definition at line 235 of file probe.h.

Referenced by get_gdbarch().

◆ m_name

std::string probe::m_name
private

Definition at line 224 of file probe.h.

Referenced by get_name().

◆ m_provider

std::string probe::m_provider
private

Definition at line 228 of file probe.h.

Referenced by get_provider().


The documentation for this class was generated from the following file: