Large cleanup, mostly removal of all printk's and printfs in libust
[ust.git] / include / ust / marker.h
index d9c0e5f0f48bdce650fa9b380b9acd7b20af7a3a..641df8fd6f9460d3ff667479d58b991604f504d7 100644 (file)
@@ -32,6 +32,8 @@
 #include <kcompat/list.h>
 #include <ust/processor.h>
 
+#include <bits/wordsize.h>
+
 //ust// struct module;
 //ust// struct task_struct;
 struct marker;
@@ -113,7 +115,7 @@ struct marker {
                     ".byte 0\n\t" /* ptype */                                                  \
                     ".word 0\n\t" /* channel_id */                                             \
                     ".word 0\n\t" /* event_id */                                               \
-                    ".align " XSTR(__SIZEOF_POINTER__) "\n\t" /* alignment */                  \
+                    ".align " XSTR(__WORDSIZE) " / 8\n\t" /* alignment */                      \
                     _ASM_PTR "(marker_probe_cb)\n\t" /* call */                                \
                     _ASM_PTR "(__mark_empty_function)\n\t" /* marker_probe_closure single.field1 */ \
                     _ASM_PTR "0\n\t" /* marker_probe_closure single.field2 */                  \
@@ -234,8 +236,7 @@ static inline void marker_update_probe_range(struct marker *begin,
  *
  * Places a marker using a standard memory read (_imv_read()) to be
  * enabled. Should be used for markers in code paths where instruction
- * modification based enabling is not welcome. (__init and __exit functions,
- * lockdep, some traps, printk).
+ * modification based enabling is not welcome.
  */
 #define _trace_mark(channel, name, format, args...) \
        __trace_mark(1, channel, name, NULL, format, ## args)
This page took 0.024918 seconds and 4 git commands to generate.