1 #ifndef __LINUX_CORESIGHT_STM_H_
2 #define __LINUX_CORESIGHT_STM_H_
4 #include <uapi/linux/coresight-stm.h>
6 #define stm_log_inv(entity_id, proto_id, data, size) \
7 stm_trace(STM_OPTION_NONE, entity_id, proto_id, data, size)
9 #define stm_log_inv_ts(entity_id, proto_id, data, size) \
10 stm_trace(STM_OPTION_TIMESTAMPED, entity_id, proto_id, \
13 #define stm_log_gtd(entity_id, proto_id, data, size) \
14 stm_trace(STM_OPTION_GUARANTEED, entity_id, proto_id, \
17 #define stm_log_gtd_ts(entity_id, proto_id, data, size) \
18 stm_trace(STM_OPTION_GUARANTEED | STM_OPTION_TIMESTAMPED, \
19 entity_id, proto_id, data, size)
21 #define stm_log(entity_id, data, size) \
22 stm_log_inv_ts(entity_id, 0, data, size)
24 #ifdef CONFIG_CORESIGHT_STM
25 extern int stm_trace(uint32_t options, uint8_t entity_id, uint8_t proto_id,
26 const void *data, uint32_t size);
28 static inline int stm_trace(uint32_t options, uint8_t entity_id,
29 uint8_t proto_id, const void *data, uint32_t size)