class Syscall_frame;
class Trap_state;
class Tb_entry_formatter;
+class String_buffer;
struct Tb_log_table_entry
{
struct Tb_entry_empty : public Tb_entry
{
- unsigned print(int, char *) const { return 0; }
+ void print(String_buffer *) const {}
};
class Tb_entry_formatter
public:
typedef Tb_entry::Group_order Group_order;
- virtual unsigned print(Tb_entry const *e, int max, char *buf) const = 0;
+ virtual void print(String_buffer *, Tb_entry const *e) const = 0;
virtual Group_order has_partner(Tb_entry const *e) const = 0;
virtual Group_order is_pair(Tb_entry const *e, Tb_entry const *n) const = 0;
virtual Mword partner(Tb_entry const *e) const = 0;
typedef T const *Const_ptr;
typedef T *Ptr;
- unsigned print(Tb_entry const *e, int max, char *buf) const
- { return static_cast<Const_ptr>(e)->print(max, buf); }
+ void print(String_buffer *buf, Tb_entry const *e) const
+ { static_cast<Const_ptr>(e)->print(buf); }
Group_order has_partner(Tb_entry const *e) const
{ return static_cast<Const_ptr>(e)->has_partner(); }
L4_timeout_pair _timeout; ///< timeout
public:
Tb_entry_ipc() : _timeout(0) {}
- unsigned print(int max, char *buf) const;
+ void print(String_buffer *buf) const;
};
/** logged ipc result. */
Unsigned8 _have_snd; ///< ipc had send part
Unsigned8 _is_np; ///< next period bit set
public:
- unsigned print(int max, char *buf) const;
+ void print(String_buffer *buf) const;
};
/** logged ipc for user level tracing with Vampir. */
Unsigned8 _snd_desc;
Unsigned8 _rcv_desc;
public:
- unsigned print(int max, char *buf) const;
+ void print(String_buffer *buf) const;
};
#if 0
Mword _error; ///< pagefault error code
Space *_space;
public:
- unsigned print(int max, char *buf) const;
+ void print(String_buffer *buf) const;
};
/** pagefault result. */
L4_error _err;
L4_error _ret;
public:
- unsigned print(int max, char *buf) const;
+ void print(String_buffer *buf) const;
};
Mword _value; ///< value at address
int _mode; ///< breakpoint mode
public:
- unsigned print(int max, char *buf) const;
+ void print(String_buffer *buf) const;
};
/** logged binary kernel event. */