|
3 | 3 | * |
4 | 4 | * SPDX-License-Identifier: Apache-2.0 |
5 | 5 | */ |
| 6 | + |
| 7 | +/** |
| 8 | + * @file |
| 9 | + * @ingroup subsys_tracing |
| 10 | + * @ingroup subsys_tracing_apis |
| 11 | + * @brief Main header file for tracing subsystem API. |
| 12 | + */ |
| 13 | + |
6 | 14 | #ifndef ZEPHYR_INCLUDE_TRACING_TRACING_H_ |
7 | 15 | #define ZEPHYR_INCLUDE_TRACING_TRACING_H_ |
8 | 16 |
|
|
18 | 26 | #include "tracing_user.h" |
19 | 27 | #else |
20 | 28 | /** |
21 | | - * @brief Tracing |
| 29 | + * @brief Interfaces for the tracing subsystem. |
22 | 30 | * |
23 | | - * The tracing subsystem provides hooks that permits you to collect data from |
| 31 | + * The tracing subsystem provides that permits you to collect data from |
24 | 32 | * your application and allows tools running on a host to visualize the |
25 | 33 | * inner-working of the kernel and various other subsystems. |
26 | 34 | * |
|
30 | 38 | */ |
31 | 39 |
|
32 | 40 | /** |
33 | | - * @brief Tracing APIs |
34 | | - * @defgroup subsys_tracing_apis Tracing APIs |
| 41 | + * @defgroup subsys_tracing_apis Tracing hooks |
| 42 | + * @ingroup subsys_tracing |
| 43 | + * @brief Hook points used by tracing backends. |
| 44 | + * |
| 45 | + * Macros invoked across kernel and subsystem code to mark entry, blocking, exit, and various |
| 46 | + * lifecycle events. |
35 | 47 | * @{ |
36 | 48 | */ |
37 | 49 |
|
38 | 50 | /** |
39 | | - * @brief Thread Tracing APIs |
40 | | - * @defgroup subsys_tracing_apis_thread Thread Tracing APIs |
| 51 | + * @brief Tracing hooks for thread events |
| 52 | + * @defgroup subsys_tracing_apis_thread Thread |
41 | 53 | * @{ |
42 | 54 | */ |
43 | 55 |
|
|
305 | 317 | /** @}c*/ /* end of subsys_tracing_apis_thread */ |
306 | 318 |
|
307 | 319 | /** |
308 | | - * @brief Work Tracing APIs |
309 | | - * @defgroup subsys_tracing_apis_work Work Tracing APIs |
| 320 | + * @brief Tracing hooks for work item events |
| 321 | + * @defgroup subsys_tracing_apis_work Work item |
310 | 322 | * @{ |
311 | 323 | */ |
312 | 324 |
|
|
402 | 414 | /** @} */ /* end of subsys_tracing_apis_work */ |
403 | 415 |
|
404 | 416 | /** |
405 | | - * @brief Work Queue Tracing APIs |
406 | | - * @defgroup subsys_tracing_apis_work_q Work Queue Tracing APIs |
| 417 | + * @brief Tracing hooks for work queue events |
| 418 | + * @defgroup subsys_tracing_apis_work_q Work queue |
407 | 419 | * @{ |
408 | 420 | */ |
409 | 421 |
|
|
476 | 488 | /** @} */ /* end of subsys_tracing_apis_work_q */ |
477 | 489 |
|
478 | 490 | /** |
479 | | - * @brief Work Delayable Tracing APIs |
480 | | - * @defgroup subsys_tracing_apis_work_delayable Work Delayable Tracing APIs |
| 491 | + * @brief Tracing hooks for delayable work item events |
| 492 | + * @defgroup subsys_tracing_apis_work_delayable Delayable work item |
481 | 493 | * @{ |
482 | 494 | */ |
483 | 495 |
|
|
597 | 609 | /** @} */ /* end of subsys_tracing_apis_work_delayable */ |
598 | 610 |
|
599 | 611 | /** |
600 | | - * @brief Work Poll Tracing APIs |
601 | | - * @defgroup subsys_tracing_apis_work_poll Work Poll Tracing APIs |
| 612 | + * @brief Tracing hooks for triggered work item events |
| 613 | + * @defgroup subsys_tracing_apis_work_poll Triggered work item |
602 | 614 | * @{ |
603 | 615 | */ |
604 | 616 |
|
|
670 | 682 | /** @} */ /* end of subsys_tracing_apis_work_poll */ |
671 | 683 |
|
672 | 684 | /** |
673 | | - * @brief Poll Tracing APIs |
674 | | - * @defgroup subsys_tracing_apis_poll Poll Tracing APIs |
| 685 | + * @brief Tracing hooks for polling events |
| 686 | + * @defgroup subsys_tracing_apis_poll Polling |
675 | 687 | * @{ |
676 | 688 | */ |
677 | 689 |
|
|
722 | 734 | /** @} */ /* end of subsys_tracing_apis_poll */ |
723 | 735 |
|
724 | 736 | /** |
725 | | - * @brief Semaphore Tracing APIs |
726 | | - * @defgroup subsys_tracing_apis_sem Semaphore Tracing APIs |
| 737 | + * @brief Tracing hooks for semaphore events |
| 738 | + * @defgroup subsys_tracing_apis_sem Semaphore |
727 | 739 | * @{ |
728 | 740 | */ |
729 | 741 |
|
|
777 | 789 | /** @} */ /* end of subsys_tracing_apis_sem */ |
778 | 790 |
|
779 | 791 | /** |
780 | | - * @brief Mutex Tracing APIs |
781 | | - * @defgroup subsys_tracing_apis_mutex Mutex Tracing APIs |
| 792 | + * @brief Tracing hooks for mutex events |
| 793 | + * @defgroup subsys_tracing_apis_mutex Mutex |
782 | 794 | * @{ |
783 | 795 | */ |
784 | 796 |
|
|
825 | 837 | /** @} */ /* end of subsys_tracing_apis_mutex */ |
826 | 838 |
|
827 | 839 | /** |
828 | | - * @brief Conditional Variable Tracing APIs |
829 | | - * @defgroup subsys_tracing_apis_condvar Conditional Variable Tracing APIs |
| 840 | + * @brief Tracing hooks for conditional variable events |
| 841 | + * @defgroup subsys_tracing_apis_condvar Conditional variable |
830 | 842 | * @{ |
831 | 843 | */ |
832 | 844 |
|
|
886 | 898 | /** @} */ /* end of subsys_tracing_apis_condvar */ |
887 | 899 |
|
888 | 900 | /** |
889 | | - * @brief Queue Tracing APIs |
890 | | - * @defgroup subsys_tracing_apis_queue Queue Tracing APIs |
| 901 | + * @brief Tracing hooks for queue events |
| 902 | + * @defgroup subsys_tracing_apis_queue Queue |
891 | 903 | * @{ |
892 | 904 | */ |
893 | 905 |
|
|
1087 | 1099 | /** @} */ /* end of subsys_tracing_apis_queue */ |
1088 | 1100 |
|
1089 | 1101 | /** |
1090 | | - * @brief FIFO Tracing APIs |
1091 | | - * @defgroup subsys_tracing_apis_fifo FIFO Tracing APIs |
| 1102 | + * @brief Tracing hooks for FIFO events |
| 1103 | + * @defgroup subsys_tracing_apis_fifo FIFO |
1092 | 1104 | * @{ |
1093 | 1105 | */ |
1094 | 1106 |
|
|
1219 | 1231 | /** @} */ /* end of subsys_tracing_apis_fifo */ |
1220 | 1232 |
|
1221 | 1233 | /** |
1222 | | - * @brief LIFO Tracing APIs |
1223 | | - * @defgroup subsys_tracing_apis_lifo LIFO Tracing APIs |
| 1234 | + * @brief Tracing hooks for LIFO events |
| 1235 | + * @defgroup subsys_tracing_apis_lifo LIFO |
1224 | 1236 | * @{ |
1225 | 1237 | */ |
1226 | 1238 |
|
|
1283 | 1295 | /** @} */ /* end of subsys_tracing_apis_lifo */ |
1284 | 1296 |
|
1285 | 1297 | /** |
1286 | | - * @brief Stack Tracing APIs |
1287 | | - * @defgroup subsys_tracing_apis_stack Stack Tracing APIs |
| 1298 | + * @brief Tracing hooks for stack events |
| 1299 | + * @defgroup subsys_tracing_apis_stack Stack |
1288 | 1300 | * @{ |
1289 | 1301 | */ |
1290 | 1302 |
|
|
1358 | 1370 | /** @} */ /* end of subsys_tracing_apis_stack */ |
1359 | 1371 |
|
1360 | 1372 | /** |
1361 | | - * @brief Message Queue Tracing APIs |
1362 | | - * @defgroup subsys_tracing_apis_msgq Message Queue Tracing APIs |
| 1373 | + * @brief Tracing hooks for message queue events |
| 1374 | + * @defgroup subsys_tracing_apis_msgq Message queue |
1363 | 1375 | * @{ |
1364 | 1376 | */ |
1365 | 1377 |
|
|
1477 | 1489 | /** @} */ /* end of subsys_tracing_apis_msgq */ |
1478 | 1490 |
|
1479 | 1491 | /** |
1480 | | - * @brief Mailbox Tracing APIs |
1481 | | - * @defgroup subsys_tracing_apis_mbox Mailbox Tracing APIs |
| 1492 | + * @brief Tracing hooks for mailbox events |
| 1493 | + * @defgroup subsys_tracing_apis_mbox Mailbox |
1482 | 1494 | * @{ |
1483 | 1495 | */ |
1484 | 1496 |
|
|
1570 | 1582 | /** @} */ /* end of subsys_tracing_apis_mbox */ |
1571 | 1583 |
|
1572 | 1584 | /** |
1573 | | - * @brief Pipe Tracing APIs |
1574 | | - * @defgroup subsys_tracing_apis_pipe Pipe Tracing APIs |
| 1585 | + * @brief Tracing hooks for pipe events |
| 1586 | + * @defgroup subsys_tracing_apis_pipe Pipe |
1575 | 1587 | * @{ |
1576 | 1588 | */ |
1577 | 1589 |
|
|
1656 | 1668 | /** @} */ /* end of subsys_tracing_apis_pipe */ |
1657 | 1669 |
|
1658 | 1670 | /** |
1659 | | - * @brief Heap Tracing APIs |
1660 | | - * @defgroup subsys_tracing_apis_heap Heap Tracing APIs |
| 1671 | + * @brief Tracing hooks for heap events |
| 1672 | + * @defgroup subsys_tracing_apis_heap Heap |
1661 | 1673 | * @{ |
1662 | 1674 | */ |
1663 | 1675 |
|
|
1815 | 1827 | /** @} */ /* end of subsys_tracing_apis_heap */ |
1816 | 1828 |
|
1817 | 1829 | /** |
1818 | | - * @brief Memory Slab Tracing APIs |
1819 | | - * @defgroup subsys_tracing_apis_mslab Memory Slab Tracing APIs |
| 1830 | + * @brief Tracing hooks for memory slab events |
| 1831 | + * @defgroup subsys_tracing_apis_mslab Memory slab |
1820 | 1832 | * @{ |
1821 | 1833 | */ |
1822 | 1834 |
|
|
1864 | 1876 | /** @} */ /* end of subsys_tracing_apis_mslab */ |
1865 | 1877 |
|
1866 | 1878 | /** |
1867 | | - * @brief Timer Tracing APIs |
1868 | | - * @defgroup subsys_tracing_apis_timer Timer Tracing APIs |
| 1879 | + * @brief Tracing hooks for timer events |
| 1880 | + * @defgroup subsys_tracing_apis_timer Timer |
1869 | 1881 | * @{ |
1870 | 1882 | */ |
1871 | 1883 |
|
|
1912 | 1924 | /** @} */ /* end of subsys_tracing_apis_timer */ |
1913 | 1925 |
|
1914 | 1926 | /** |
1915 | | - * @brief Event Tracing APIs |
1916 | | - * @defgroup subsys_tracing_apis_event Event Tracing APIs |
| 1927 | + * @brief Tracing hooks for event events |
| 1928 | + * @defgroup subsys_tracing_apis_event Event |
1917 | 1929 | * @{ |
1918 | 1930 | */ |
1919 | 1931 |
|
|
1968 | 1980 | /** @} */ /* end of subsys_tracing_apis_event */ |
1969 | 1981 |
|
1970 | 1982 | /** |
1971 | | - * @brief System PM Tracing APIs |
1972 | | - * @defgroup subsys_tracing_apis_pm_system System PM Tracing APIs |
| 1983 | + * @brief Tracing hooks for system power management events |
| 1984 | + * @defgroup subsys_tracing_apis_pm_system System PM |
1973 | 1985 | * @{ |
1974 | 1986 | */ |
1975 | 1987 |
|
|
1989 | 2001 | /** @} */ /* end of subsys_tracing_apis_pm_system */ |
1990 | 2002 |
|
1991 | 2003 | /** |
1992 | | - * @brief PM Device Runtime Tracing APIs |
1993 | | - * @defgroup subsys_tracing_apis_pm_device_runtime PM Device Runtime Tracing APIs |
| 2004 | + * @brief Tracing hooks for device runtime power management events |
| 2005 | + * @defgroup subsys_tracing_apis_pm_device_runtime PM Device Runtime |
1994 | 2006 | * @{ |
1995 | 2007 | */ |
1996 | 2008 |
|
|
2064 | 2076 | /** @} */ /* end of subsys_tracing_apis_pm_device_runtime */ |
2065 | 2077 |
|
2066 | 2078 | /** |
2067 | | - * @brief Network Core Tracing APIs |
2068 | | - * @defgroup subsys_tracing_apis_net Network Core Tracing APIs |
| 2079 | + * @brief Tracing hooks for network events |
| 2080 | + * @defgroup subsys_tracing_apis_net Network |
2069 | 2081 | * @{ |
2070 | 2082 | */ |
2071 | 2083 |
|
|
2114 | 2126 | /** @} */ /* end of subsys_tracing_apis_net */ |
2115 | 2127 |
|
2116 | 2128 | /** |
2117 | | - * @brief Network Socket Tracing APIs |
2118 | | - * @defgroup subsys_tracing_apis_socket Network Socket Tracing APIs |
| 2129 | + * @brief Tracing hooks for network socket events |
| 2130 | + * @defgroup subsys_tracing_apis_socket Network socket |
2119 | 2131 | * @{ |
2120 | 2132 | */ |
2121 | 2133 |
|
|
2412 | 2424 | /** @} */ /* end of subsys_tracing_apis_socket */ |
2413 | 2425 |
|
2414 | 2426 | /** |
2415 | | - * @brief Named Tracing APIs |
2416 | | - * @defgroup subsys_tracing_apis_named Named tracing APIs |
| 2427 | + * @brief Tracing hooks for user-defined named events |
| 2428 | + * @defgroup subsys_tracing_apis_named User-defined event |
2417 | 2429 | * @{ |
2418 | 2430 | */ |
2419 | 2431 |
|
2420 | | -/* |
| 2432 | +/** |
2421 | 2433 | * @brief Called by user to generate named events |
2422 | 2434 | * |
2423 | 2435 | * @param name name of event. Tracing subsystems may place a limit on |
|
2430 | 2442 | /** @} */ /* end of subsys_tracing_apis_named */ |
2431 | 2443 |
|
2432 | 2444 | /** |
2433 | | - * @brief GPIO Tracing APIs |
2434 | | - * @defgroup subsys_tracing_apis_gpio GPIO Tracing APIs |
| 2445 | + * @brief Tracing hooks for GPIO events |
| 2446 | + * @defgroup subsys_tracing_apis_gpio GPIO |
2435 | 2447 | * @{ |
2436 | 2448 | */ |
2437 | 2449 |
|
|
0 commit comments