/*
- * Copyright (C) 2007 Mathieu Desnoyers
+ * Copyright (C) 2007-2011 Mathieu Desnoyers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
#include <ust/core.h>
#include <ust/marker.h>
+#include <ust/marker-internal.h>
#include <ust/tracepoint.h>
+#include <ust/tracepoint-internal.h>
#include "usterr_signal_safe.h"
#include "channels.h"
char *format;
char *name;
/* Probe wrapper */
- void (*call)(const struct ust_marker *mdata, void *call_private, struct registers *regs, ...);
+ void (*call)(const struct ust_marker *mdata, void *call_private, ...);
struct ust_marker_probe_closure single;
struct ust_marker_probe_closure *multi;
int refcount; /* Number of times armed. 0 if disarmed. */
* execution flow of preemptible code.
*/
notrace void __ust_marker_empty_function(const struct ust_marker *mdata,
- void *probe_private, struct registers *regs, void *call_private, const char *fmt, va_list *args)
+ void *probe_private, void *call_private, const char *fmt, va_list *args)
{
}
//ust// EXPORT_SYMBOL_GPL(__ust_marker_empty_function);
* rcu_dereference() for the pointer read.
*/
notrace void ust_marker_probe_cb(const struct ust_marker *mdata,
- void *call_private, struct registers *regs, ...)
+ void *call_private, ...)
{
va_list args;
char ptype;
/* Must read the ptr before private data. They are not data
* dependant, so we put an explicit cmm_smp_rmb() here. */
cmm_smp_rmb();
- va_start(args, regs);
- func(mdata, mdata->single.probe_private, regs, call_private,
+ va_start(args, call_private);
+ func(mdata, mdata->single.probe_private, call_private,
mdata->format, &args);
va_end(args);
} else {
*/
cmm_smp_read_barrier_depends();
for (i = 0; multi[i].func; i++) {
- va_start(args, regs);
+ va_start(args, call_private);
multi[i].func(mdata, multi[i].probe_private,
- regs, call_private, mdata->format, &args);
+ call_private, mdata->format, &args);
va_end(args);
}
}
* Should be connected to ust_marker "UST_MARKER_NOARGS".
*/
static notrace void ust_marker_probe_cb_noarg(const struct ust_marker *mdata,
- void *call_private, struct registers *regs, ...)
+ void *call_private, ...)
{
va_list args; /* not initialized */
char ptype;
/* Must read the ptr before private data. They are not data
* dependant, so we put an explicit cmm_smp_rmb() here. */
cmm_smp_rmb();
- func(mdata, mdata->single.probe_private, regs, call_private,
+ func(mdata, mdata->single.probe_private, call_private,
mdata->format, &args);
} else {
struct ust_marker_probe_closure *multi;
*/
cmm_smp_read_barrier_depends();
for (i = 0; multi[i].func; i++)
- multi[i].func(mdata, multi[i].probe_private, regs,
+ multi[i].func(mdata, multi[i].probe_private,
call_private, mdata->format, &args);
}
//ust// rcu_read_unlock_sched_notrace();