硬汉嵌入式论坛

 找回密码
 立即注册
查看: 995|回复: 0
收起左侧

[ThreadX全家桶] ThreadX的信号量Trace功能,主要是跟踪变量_tx_semaphore_created_ptr

[复制链接]

1万

主题

7万

回帖

11万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
115863
QQ
发表于 2022-10-9 16:46:53 | 显示全部楼层 |阅读模式


通过_tx_semaphore_created_ptr可以将所有信号量链接出来

[C] 纯文本查看 复制代码
/* Include necessary system files.  */

#include "tx_api.h"
#include "tx_semaphore.h"


#ifndef TX_INLINE_INITIALIZATION

/* Locate semaphore component data in this file.  */

/* Define the head pointer of the created semaphore list.  */

TX_SEMAPHORE *   _tx_semaphore_created_ptr;


/* Define the variable that holds the number of created semaphores. */

ULONG            _tx_semaphore_created_count;


#ifdef TX_SEMAPHORE_ENABLE_PERFORMANCE_INFO

/* Define the total number of semaphore puts.  */

ULONG            _tx_semaphore_performance_put_count;


/* Define the total number of semaphore gets.  */

ULONG            _tx_semaphore_performance_get_count;


/* Define the total number of semaphore suspensions.  */

ULONG            _tx_semaphore_performance_suspension_count;


/* Define the total number of semaphore timeouts.  */

ULONG            _tx_semaphore_performance_timeout_count;

#endif

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|Archiver|手机版|硬汉嵌入式论坛

GMT+8, 2025-5-24 07:48 , Processed in 0.215421 second(s), 24 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表