qdf_trace.h 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492
  1. /*
  2. * Copyright (c) 2014-2016 The Linux Foundation. All rights reserved.
  3. *
  4. * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
  5. *
  6. *
  7. * Permission to use, copy, modify, and/or distribute this software for
  8. * any purpose with or without fee is hereby granted, provided that the
  9. * above copyright notice and this permission notice appear in all
  10. * copies.
  11. *
  12. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  13. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  14. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  15. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  16. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  17. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  18. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  19. * PERFORMANCE OF THIS SOFTWARE.
  20. */
  21. /*
  22. * This file was originally distributed by Qualcomm Atheros, Inc.
  23. * under proprietary terms before Copyright ownership was assigned
  24. * to the Linux Foundation.
  25. */
  26. #if !defined(__QDF_TRACE_H)
  27. #define __QDF_TRACE_H
  28. /**
  29. * DOC: qdf_trace
  30. * QCA driver framework trace APIs
  31. * Trace, logging, and debugging definitions and APIs
  32. */
  33. /* Include Files */
  34. #include <qdf_types.h> /* For QDF_MODULE_ID... */
  35. #include <stdarg.h> /* For va_list... */
  36. #include <qdf_status.h>
  37. #include <qdf_nbuf.h>
  38. #include <i_qdf_types.h>
  39. /* Type declarations */
  40. #define FL(x) "%s: %d: " x, __func__, __LINE__
  41. /**
  42. * typedef enum QDF_TRACE_LEVEL - Debug Trace level
  43. * @QDF_TRACE_LEVEL_NONE: no trace will be logged. This value is in place
  44. * for the qdf_trace_setlevel() to allow the user to turn off all traces
  45. * @QDF_TRACE_LEVEL_FATAL: enable trace for fatal Error
  46. * @QDF_TRACE_LEVEL_ERROR: enable trace for errors
  47. * @QDF_TRACE_LEVEL_WARN: enable trace for warnings
  48. * @QDF_TRACE_LEVEL_INFO: enable trace for information
  49. * @QDF_TRACE_LEVEL_INFO_HIGH: enable high level trace information
  50. * @QDF_TRACE_LEVEL_INFO_MED: enable middle level trace information
  51. * @QDF_TRACE_LEVEL_INFO_LOW: enable low level trace information
  52. * @QDF_TRACE_LEVEL_DEBUG: enable trace for debugging
  53. * @QDF_TRACE_LEVEL_ALL: enable all trace
  54. * @QDF_TRACE_LEVEL_MAX: enable max level trace
  55. */
  56. typedef enum {
  57. QDF_TRACE_LEVEL_NONE = 0,
  58. QDF_TRACE_LEVEL_FATAL,
  59. QDF_TRACE_LEVEL_ERROR,
  60. QDF_TRACE_LEVEL_WARN,
  61. QDF_TRACE_LEVEL_INFO,
  62. QDF_TRACE_LEVEL_INFO_HIGH,
  63. QDF_TRACE_LEVEL_INFO_MED,
  64. QDF_TRACE_LEVEL_INFO_LOW,
  65. QDF_TRACE_LEVEL_DEBUG,
  66. QDF_TRACE_LEVEL_ALL,
  67. QDF_TRACE_LEVEL_MAX
  68. } QDF_TRACE_LEVEL;
  69. /*
  70. * Log levels
  71. */
  72. #define QDF_DEBUG_FUNCTRACE 0x01
  73. #define QDF_DEBUG_LEVEL0 0x02
  74. #define QDF_DEBUG_LEVEL1 0x04
  75. #define QDF_DEBUG_LEVEL2 0x08
  76. #define QDF_DEBUG_LEVEL3 0x10
  77. #define QDF_DEBUG_ERROR 0x20
  78. #define QDF_DEBUG_CFG 0x40
  79. #ifdef CONFIG_MCL
  80. /* By default Data Path module will have all log levels enabled, except debug
  81. * log level. Debug level will be left up to the framework or user space modules
  82. * to be enabled when issue is detected
  83. */
  84. #define QDF_DATA_PATH_TRACE_LEVEL \
  85. ((1 << QDF_TRACE_LEVEL_FATAL) | (1 << QDF_TRACE_LEVEL_ERROR) | \
  86. (1 << QDF_TRACE_LEVEL_WARN) | (1 << QDF_TRACE_LEVEL_INFO) | \
  87. (1 << QDF_TRACE_LEVEL_INFO_HIGH) | (1 << QDF_TRACE_LEVEL_INFO_MED) | \
  88. (1 << QDF_TRACE_LEVEL_INFO_LOW))
  89. /* Preprocessor definitions and constants */
  90. #define ASSERT_BUFFER_SIZE (512)
  91. #define MAX_QDF_TRACE_RECORDS 4000
  92. #define INVALID_QDF_TRACE_ADDR 0xffffffff
  93. #define DEFAULT_QDF_TRACE_DUMP_COUNT 0
  94. #include <i_qdf_trace.h>
  95. #define DUMP_DP_TRACE 0
  96. #define ENABLE_DP_TRACE_LIVE_MODE 1
  97. #define CLEAR_DP_TRACE_BUFFER 2
  98. #ifdef TRACE_RECORD
  99. #define MTRACE(p) p
  100. #define NO_SESSION 0xFF
  101. #else
  102. #define MTRACE(p) { }
  103. #endif
  104. /**
  105. * typedef struct qdf_trace_record_s - keep trace record
  106. * @time: timestamp
  107. * @module: module name
  108. * @code: hold record of code
  109. * @session: hold record of session
  110. * @data: hold data
  111. * @pid: hold pid of the process
  112. */
  113. typedef struct qdf_trace_record_s {
  114. uint64_t time;
  115. uint8_t module;
  116. uint8_t code;
  117. uint16_t session;
  118. uint32_t data;
  119. uint32_t pid;
  120. } qdf_trace_record_t, *tp_qdf_trace_record;
  121. /**
  122. * typedef struct s_qdf_trace_data - MTRACE logs are stored in ring buffer
  123. * @head: position of first record
  124. * @tail: position of last record
  125. * @num: count of total record
  126. * @num_since_last_dump: count from last dump
  127. * @enable: config for controlling the trace
  128. * @dump_count: Dump after number of records reach this number
  129. */
  130. typedef struct s_qdf_trace_data {
  131. uint32_t head;
  132. uint32_t tail;
  133. uint32_t num;
  134. uint16_t num_since_last_dump;
  135. uint8_t enable;
  136. uint16_t dump_count;
  137. } t_qdf_trace_data;
  138. #define CASE_RETURN_STRING(str) case ((str)): return (uint8_t *)(# str);
  139. /* DP Trace Implementation */
  140. #ifdef FEATURE_DP_TRACE
  141. #define DPTRACE(p) p
  142. #else
  143. #define DPTRACE(p)
  144. #endif
  145. #define MAX_QDF_DP_TRACE_RECORDS 4000
  146. #define QDF_DP_TRACE_RECORD_SIZE 16
  147. #define INVALID_QDF_DP_TRACE_ADDR 0xffffffff
  148. #define QDF_DP_TRACE_VERBOSITY_HIGH 3
  149. #define QDF_DP_TRACE_VERBOSITY_MEDIUM 2
  150. #define QDF_DP_TRACE_VERBOSITY_LOW 1
  151. #define QDF_DP_TRACE_VERBOSITY_DEFAULT 0
  152. /**
  153. * enum QDF_DP_TRACE_ID - Generic ID to identify various events in data path
  154. * @QDF_DP_TRACE_INVALID - invalid
  155. * @QDF_DP_TRACE_DROP_PACKET_RECORD - record drop packet
  156. * @QDF_DP_TRACE_EAPOL_PACKET_RECORD - record EAPOL packet
  157. * @QDF_DP_TRACE_DHCP_PACKET_RECORD - record DHCP packet
  158. * @QDF_DP_TRACE_ARP_PACKET_RECORD - record ARP packet
  159. * @QDF_DP_TRACE_MGMT_PACKET_RECORD - record MGMT pacekt
  160. * @QDF_DP_TRACE_DEFAULT_VERBOSITY - below this are part of default verbosity
  161. * @QDF_DP_TRACE_HDD_TX_TIMEOUT - HDD tx timeout
  162. * @QDF_DP_TRACE_HDD_SOFTAP_TX_TIMEOUT- SOFTAP HDD tx timeout
  163. * @QDF_DP_TRACE_HDD_TX_PACKET_PTR_RECORD - HDD layer ptr record
  164. * @QDF_DP_TRACE_CE_PACKET_PTR_RECORD - CE layer ptr record
  165. * @QDF_DP_TRACE_CE_FAST_PACKET_PTR_RECORD- CE fastpath ptr record
  166. * @QDF_DP_TRACE_FREE_PACKET_PTR_RECORD - tx completion ptr record
  167. * @QDF_DP_TRACE_RX_HTT_PACKET_PTR_RECORD - HTT RX record
  168. * @QDF_DP_TRACE_RX_OFFLOAD_HTT_PACKET_PTR_RECORD- HTT RX offload record
  169. * @QDF_DP_TRACE_RX_HDD_PACKET_PTR_RECORD - HDD RX record
  170. * @QDF_DP_TRACE_LOW_VERBOSITY - below this are part of low verbosity
  171. * @QDF_DP_TRACE_TXRX_QUEUE_PACKET_PTR_RECORD -tx queue ptr record
  172. * @QDF_DP_TRACE_TXRX_PACKET_PTR_RECORD - txrx packet ptr record
  173. * @QDF_DP_TRACE_TXRX_FAST_PACKET_PTR_RECORD - txrx fast path record
  174. * @QDF_DP_TRACE_HTT_PACKET_PTR_RECORD - htt packet ptr record
  175. * @QDF_DP_TRACE_HTC_PACKET_PTR_RECORD - htc packet ptr record
  176. * @QDF_DP_TRACE_HIF_PACKET_PTR_RECORD - hif packet ptr record
  177. * @QDF_DP_TRACE_RX_TXRX_PACKET_PTR_RECORD - txrx packet ptr record
  178. * @QDF_DP_TRACE_MED_VERBOSITY - below this are part of med verbosity
  179. * @QDF_DP_TRACE_HDD_TX_PACKET_RECORD - record 32 bytes at HDD
  180. * @QDF_DP_TRACE_HIGH_VERBOSITY - below this are part of high verbosity
  181. */
  182. enum QDF_DP_TRACE_ID {
  183. QDF_DP_TRACE_INVALID,
  184. QDF_DP_TRACE_DROP_PACKET_RECORD,
  185. QDF_DP_TRACE_EAPOL_PACKET_RECORD,
  186. QDF_DP_TRACE_DHCP_PACKET_RECORD,
  187. QDF_DP_TRACE_ARP_PACKET_RECORD,
  188. QDF_DP_TRACE_MGMT_PACKET_RECORD,
  189. QDF_DP_TRACE_DEFAULT_VERBOSITY,
  190. QDF_DP_TRACE_HDD_TX_TIMEOUT,
  191. QDF_DP_TRACE_HDD_SOFTAP_TX_TIMEOUT,
  192. QDF_DP_TRACE_HDD_TX_PACKET_PTR_RECORD,
  193. QDF_DP_TRACE_CE_PACKET_PTR_RECORD,
  194. QDF_DP_TRACE_CE_FAST_PACKET_PTR_RECORD,
  195. QDF_DP_TRACE_FREE_PACKET_PTR_RECORD,
  196. QDF_DP_TRACE_RX_HTT_PACKET_PTR_RECORD,
  197. QDF_DP_TRACE_RX_OFFLOAD_HTT_PACKET_PTR_RECORD,
  198. QDF_DP_TRACE_RX_HDD_PACKET_PTR_RECORD,
  199. QDF_DP_TRACE_LOW_VERBOSITY,
  200. QDF_DP_TRACE_TXRX_QUEUE_PACKET_PTR_RECORD,
  201. QDF_DP_TRACE_TXRX_PACKET_PTR_RECORD,
  202. QDF_DP_TRACE_TXRX_FAST_PACKET_PTR_RECORD,
  203. QDF_DP_TRACE_HTT_PACKET_PTR_RECORD,
  204. QDF_DP_TRACE_HTC_PACKET_PTR_RECORD,
  205. QDF_DP_TRACE_HIF_PACKET_PTR_RECORD,
  206. QDF_DP_TRACE_RX_TXRX_PACKET_PTR_RECORD,
  207. QDF_DP_TRACE_MED_VERBOSITY,
  208. QDF_DP_TRACE_HDD_TX_PACKET_RECORD,
  209. QDF_DP_TRACE_HIGH_VERBOSITY,
  210. QDF_DP_TRACE_MAX
  211. };
  212. /**
  213. * qdf_proto_dir - direction
  214. * @QDF_TX: TX direction
  215. * @QDF_RX: RX direction
  216. * @QDF_NA: not applicable
  217. */
  218. enum qdf_proto_dir {
  219. QDF_TX,
  220. QDF_RX,
  221. QDF_NA
  222. };
  223. /**
  224. * struct qdf_dp_trace_ptr_buf - pointer record buffer
  225. * @cookie: cookie value
  226. * @msdu_id: msdu_id
  227. * @status: completion status
  228. */
  229. struct qdf_dp_trace_ptr_buf {
  230. uint64_t cookie;
  231. uint16_t msdu_id;
  232. uint16_t status;
  233. };
  234. /**
  235. * struct qdf_dp_trace_proto_buf - proto packet buffer
  236. * @sa: source address
  237. * @da: destination address
  238. * @vdev_id : vdev id
  239. * @type: packet type
  240. * @subtype: packet subtype
  241. * @dir: direction
  242. */
  243. struct qdf_dp_trace_proto_buf {
  244. struct qdf_mac_addr sa;
  245. struct qdf_mac_addr da;
  246. uint8_t vdev_id;
  247. uint8_t type;
  248. uint8_t subtype;
  249. uint8_t dir;
  250. };
  251. /**
  252. * struct qdf_dp_trace_mgmt_buf - mgmt packet buffer
  253. * @vdev_id : vdev id
  254. * @type: packet type
  255. * @subtype: packet subtype
  256. */
  257. struct qdf_dp_trace_mgmt_buf {
  258. uint8_t vdev_id;
  259. uint8_t type;
  260. uint8_t subtype;
  261. };
  262. /**
  263. * struct qdf_dp_trace_record_s - Describes a record in DP trace
  264. * @time: time when it got stored
  265. * @code: Describes the particular event
  266. * @data: buffer to store data
  267. * @size: Length of the valid data stored in this record
  268. * @pid : process id which stored the data in this record
  269. */
  270. struct qdf_dp_trace_record_s {
  271. uint64_t time;
  272. uint8_t code;
  273. uint8_t data[QDF_DP_TRACE_RECORD_SIZE];
  274. uint8_t size;
  275. uint32_t pid;
  276. };
  277. /**
  278. * struct qdf_dp_trace_data - Parameters to configure/control DP trace
  279. * @head: Position of first record
  280. * @tail: Position of last record
  281. * @num: Current index
  282. * @proto_bitmap: defines which protocol to be traced
  283. * @no_of_record: defines every nth packet to be traced
  284. * @verbosity : defines verbosity level
  285. * @enable: enable/disable DP trace
  286. * @count: current packet number
  287. */
  288. struct s_qdf_dp_trace_data {
  289. uint32_t head;
  290. uint32_t tail;
  291. uint32_t num;
  292. uint8_t proto_bitmap;
  293. uint8_t no_of_record;
  294. uint8_t verbosity;
  295. bool enable;
  296. uint32_t tx_count;
  297. uint32_t rx_count;
  298. bool live_mode;
  299. };
  300. /* Function declarations and documenation */
  301. /**
  302. * qdf_trace_set_level() - Set the trace level for a particular module
  303. * @level : trace level
  304. *
  305. * Trace level is a member of the QDF_TRACE_LEVEL enumeration indicating
  306. * the severity of the condition causing the trace message to be issued.
  307. * More severe conditions are more likely to be logged.
  308. *
  309. * This is an external API that allows trace levels to be set for each module.
  310. *
  311. * Return: nothing
  312. */
  313. void qdf_trace_set_level(QDF_MODULE_ID module, QDF_TRACE_LEVEL level);
  314. /**
  315. * qdf_trace_get_level() - get the trace level
  316. * @level : trace level
  317. *
  318. * This is an external API that returns a bool value to signify if a
  319. * particular trace level is set for the specified module.
  320. * A member of the QDF_TRACE_LEVEL enumeration indicating the severity
  321. * of the condition causing the trace message to be issued.
  322. *
  323. * Note that individual trace levels are the only valid values
  324. * for this API. QDF_TRACE_LEVEL_NONE and QDF_TRACE_LEVEL_ALL
  325. * are not valid input and will return false
  326. *
  327. * Return:
  328. * false - the specified trace level for the specified module is OFF
  329. * true - the specified trace level for the specified module is ON
  330. */
  331. bool qdf_trace_get_level(QDF_MODULE_ID module, QDF_TRACE_LEVEL level);
  332. typedef void (*tp_qdf_trace_cb)(void *p_mac, tp_qdf_trace_record, uint16_t);
  333. typedef void (*tp_qdf_state_info_cb) (char **buf, uint16_t *size);
  334. void qdf_register_debugcb_init(void);
  335. void qdf_register_debug_callback(QDF_MODULE_ID module_id,
  336. tp_qdf_state_info_cb qdf_state_infocb);
  337. QDF_STATUS qdf_state_info_dump_all(char *buf, uint16_t size,
  338. uint16_t *driver_dump_size);
  339. void qdf_trace(uint8_t module, uint8_t code, uint16_t session, uint32_t data);
  340. void qdf_trace_register(QDF_MODULE_ID, tp_qdf_trace_cb);
  341. QDF_STATUS qdf_trace_spin_lock_init(void);
  342. void qdf_trace_init(void);
  343. void qdf_trace_enable(uint32_t, uint8_t enable);
  344. void qdf_trace_dump_all(void *, uint8_t, uint8_t, uint32_t, uint32_t);
  345. #ifdef FEATURE_DP_TRACE
  346. void qdf_dp_trace_log_pkt(uint8_t session_id, struct sk_buff *skb,
  347. enum qdf_proto_dir dir);
  348. void qdf_dp_trace_init(void);
  349. void qdf_dp_trace_spin_lock_init(void);
  350. void qdf_dp_trace_set_value(uint8_t proto_bitmap, uint8_t no_of_records,
  351. uint8_t verbosity);
  352. void qdf_dp_trace_set_track(qdf_nbuf_t nbuf, enum qdf_proto_dir dir);
  353. void qdf_dp_trace(qdf_nbuf_t nbuf, enum QDF_DP_TRACE_ID code,
  354. uint8_t *data, uint8_t size, enum qdf_proto_dir dir);
  355. void qdf_dp_trace_dump_all(uint32_t count);
  356. typedef void (*tp_qdf_dp_trace_cb)(struct qdf_dp_trace_record_s* , uint16_t);
  357. void qdf_dp_display_record(struct qdf_dp_trace_record_s *record,
  358. uint16_t index);
  359. void qdf_dp_trace_ptr(qdf_nbuf_t nbuf, enum QDF_DP_TRACE_ID code,
  360. uint8_t *data, uint8_t size, uint16_t msdu_id, uint16_t status);
  361. void qdf_dp_display_ptr_record(struct qdf_dp_trace_record_s *pRecord,
  362. uint16_t recIndex);
  363. uint8_t qdf_dp_get_proto_bitmap(void);
  364. void
  365. qdf_dp_trace_proto_pkt(enum QDF_DP_TRACE_ID code, uint8_t vdev_id,
  366. uint8_t *sa, uint8_t *da, enum qdf_proto_type type,
  367. enum qdf_proto_subtype subtype, enum qdf_proto_dir dir);
  368. void qdf_dp_display_proto_pkt(struct qdf_dp_trace_record_s *record,
  369. uint16_t index);
  370. void qdf_dp_trace_enable_live_mode(void);
  371. void qdf_dp_trace_clear_buffer(void);
  372. void qdf_dp_trace_mgmt_pkt(enum QDF_DP_TRACE_ID code, uint8_t vdev_id,
  373. enum qdf_proto_type type, enum qdf_proto_subtype subtype);
  374. void qdf_dp_display_mgmt_pkt(struct qdf_dp_trace_record_s *record,
  375. uint16_t index);
  376. #else
  377. static inline
  378. void qdf_dp_trace_log_pkt(uint8_t session_id, struct sk_buff *skb,
  379. enum qdf_proto_dir dir)
  380. {
  381. }
  382. static inline
  383. void qdf_dp_trace_init(void)
  384. {
  385. }
  386. static inline
  387. void qdf_dp_trace_set_track(qdf_nbuf_t nbuf, enum qdf_proto_dir dir)
  388. {
  389. }
  390. static inline
  391. void qdf_dp_trace_set_value(uint8_t proto_bitmap, uint8_t no_of_records,
  392. uint8_t verbosity)
  393. {
  394. }
  395. static inline
  396. void qdf_dp_trace_dump_all(uint32_t count)
  397. {
  398. }
  399. static inline
  400. void qdf_dp_trace_enable_live_mode(void)
  401. {
  402. }
  403. static inline
  404. void qdf_dp_trace_clear_buffer(void)
  405. {
  406. }
  407. #endif
  408. /**
  409. * qdf_trace_msg()- logging API
  410. * @module: Module identifier. A member of the QDF_MODULE_ID enumeration that
  411. * identifies the module issuing the trace message.
  412. * @level: Trace level. A member of the QDF_TRACE_LEVEL enumeration indicating
  413. * the severity of the condition causing the trace message to be issued.
  414. * More severe conditions are more likely to be logged.
  415. * @str_format: Format string. The message to be logged. This format string
  416. * contains printf-like replacement parameters, which follow this
  417. * parameter in the variable argument list.
  418. *
  419. * Users wishing to add tracing information to their code should use
  420. * QDF_TRACE. QDF_TRACE() will compile into a call to qdf_trace_msg() when
  421. * tracing is enabled.
  422. *
  423. * Return: nothing
  424. *
  425. */
  426. void __printf(3, 4) qdf_trace_msg(QDF_MODULE_ID module, QDF_TRACE_LEVEL level,
  427. char *str_format, ...);
  428. void qdf_trace_hex_dump(QDF_MODULE_ID module, QDF_TRACE_LEVEL level,
  429. void *data, int buf_len);
  430. void qdf_trace_display(void);
  431. void qdf_trace_set_value(QDF_MODULE_ID module, QDF_TRACE_LEVEL level,
  432. uint8_t on);
  433. void qdf_trace_set_module_trace_level(QDF_MODULE_ID module, uint32_t level);
  434. void __printf(3, 4) qdf_snprintf(char *str_buffer, unsigned int size,
  435. char *str_format, ...);
  436. #define QDF_SNPRINTF qdf_snprintf
  437. #else
  438. #define DPTRACE(x)
  439. #define qdf_trace_hex_dump(x, y, z, q)
  440. #endif /* CONFIG_MCL */
  441. #endif /* __QDF_TRACE_H */