#include <ust/marker.h>
#include <ust/tracepoint.h>
-#include "usterr.h"
+#include "usterr_signal_safe.h"
#include "channels.h"
#include "tracercore.h"
#include "tracer.h"
e->call = marker_probe_cb_noarg;
else
e->call = marker_probe_cb;
- trace_mark(metadata, core_marker_format,
+ __ust_marker(0, metadata, core_marker_format, NULL,
"channel %s name %s format %s",
e->channel, e->name, e->format);
} else {
return -ENOMEM;
entry->format_allocated = 1;
- trace_mark(metadata, core_marker_format,
+ __ust_marker(0, metadata, core_marker_format, NULL,
"channel %s name %s format %s",
entry->channel, entry->name, entry->format);
return 0;
WARN_ON(!elem->tp_cb);
/*
* It is ok to directly call the probe registration because type
- * checking has been done in the __trace_mark_tp() macro.
+ * checking has been done in the __ust_marker_tp() macro.
*/
if (active) {
WARN_ON(!elem->tp_cb);
/*
* It is ok to directly call the probe registration because type
- * checking has been done in the __trace_mark_tp() macro.
+ * checking has been done in the __ust_marker_tp() macro.
*/
ret = tracepoint_probe_unregister_noupdate(elem->tp_name,
elem->tp_cb, NULL);
goto error_unregister_channel;
entry->event_id = ret;
ret = 0;
- trace_mark(metadata, core_marker_id,
+ __ust_marker(0, metadata, core_marker_id, NULL,
"channel %s name %s event_id %hu "
"int #1u%zu long #1u%zu pointer #1u%zu "
"size_t #1u%zu alignment #1u%u",
for (i = 0; i < MARKER_TABLE_SIZE; i++) {
head = &marker_table[i];
cds_hlist_for_each_entry(entry, node, head, hlist) {
- __trace_mark(0, metadata, core_marker_id,
+ __ust_marker(0, metadata, core_marker_id,
&call_data,
"channel %s name %s event_id %hu "
"int #1u%zu long #1u%zu pointer #1u%zu "
sizeof(void *), sizeof(size_t),
ltt_get_alignment());
if (entry->format)
- __trace_mark(0, metadata,
+ __ust_marker(0, metadata,
core_marker_format,
&call_data,
"channel %s name %s format %s",