}
}
-void EventTrace::set_message_attrs(Message *m, string& oid, string& context, bool incl_oid)
+void EventTrace::set_message_attrs(const Message *m, string& oid, string& context, bool incl_oid)
{
// arg1 = oid, arg2 = message type, arg3 = source!source_addr!tid!sequence
if (m && (m->get_type() == CEPH_MSG_OSD_OP || m->get_type() == CEPH_MSG_OSD_OPREPLY)) {
tracepoint(eventtrace, oid_event, oid, event, context, file, func, line);
}
-void EventTrace::trace_oid_event(Message *m, const char *event, const char *file,
+void EventTrace::trace_oid_event(const Message *m, const char *event, const char *file,
const char *func, int line, bool incl_oid)
{
string oid, context;
tracepoint(eventtrace, oid_elapsed, oid, event, context, elapsed, file, func, line);
}
-void EventTrace::trace_oid_elapsed(Message *m, const char *event, double elapsed,
+void EventTrace::trace_oid_elapsed(const Message *m, const char *event, double elapsed,
const char *file, const char *func, int line, bool incl_oid)
{
string oid, context;
static bool tpinit;
static void init_tp(CephContext *_ctx);
- static void set_message_attrs(Message *m, string& oid, string& context, bool incl_oid);
+ static void set_message_attrs(const Message *m, string& oid, string& context, bool incl_oid);
public:
static void trace_oid_event(const char *oid, const char *event, const char *context,
const char *file, const char *func, int line);
- static void trace_oid_event(Message *m, const char *event, const char *file,
+ static void trace_oid_event(const Message *m, const char *event, const char *file,
const char *func, int line, bool incl_oid);
static void trace_oid_elapsed(const char *oid, const char *event, const char *context,
double elapsed, const char *file, const char *func, int line);
- static void trace_oid_elapsed(Message *m, const char *event, double elapsed,
+ static void trace_oid_elapsed(const Message *m, const char *event, double elapsed,
const char *file, const char *func, int line, bool incl_oid);
};