GDB (xrefs)
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 frame_info *frame)=0
 
virtual bool can_evaluate_arguments () const =0
 
virtual struct valueevaluate_argument (unsigned n, struct frame_info *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::stringget_name () const
 
const std::stringget_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 112 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 116 of file probe.h.

◆ ~probe()

virtual probe::~probe ( )
inlinevirtual

Definition at line 123 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 162 of file probe.h.

Referenced by bkpt_probe_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 stap_probe, and dtrace_probe.

Referenced by compile_probe_arg().

◆ disable()

virtual void probe::disable ( )
inlinevirtual

Reimplemented in dtrace_probe.

Definition at line 193 of file probe.h.

Referenced by disable_probes_command().

◆ enable()

virtual void probe::enable ( )
inlinevirtual

Reimplemented in dtrace_probe.

Definition at line 187 of file probe.h.

Referenced by enable_probes_command().

◆ evaluate_argument()

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

◆ gen_info_probes_table_values()

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

Reimplemented in stap_probe, and dtrace_probe.

Definition at line 180 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 frame_info frame)
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

◆ 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 155 of file probe.h.

Referenced by bkpt_probe_insert_location().

Member Data Documentation

◆ m_address

CORE_ADDR probe::m_address
private

Definition at line 230 of file probe.h.

Referenced by get_address().

◆ m_arch

struct gdbarch* probe::m_arch
private

Definition at line 233 of file probe.h.

Referenced by get_gdbarch().

◆ m_name

std::string probe::m_name
private

Definition at line 222 of file probe.h.

Referenced by get_name().

◆ m_provider

std::string probe::m_provider
private

Definition at line 226 of file probe.h.

Referenced by get_provider().


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