Loading...
Loading...
Compare original and translation side by side
| 组件 | 修改文件数 | 主要变更 |
|---|---|---|
| third_party_musl | 2 个文件 | TAG 和 MASK 定义 |
| developtools_profiler | 9 个文件 | 协议、逻辑、测试 |
| Component | Number of Modified Files | Key Changes |
|---|---|---|
| third_party_musl | 2 files | TAG and MASK definitions |
| developtools_profiler | 9 files | Protocols, logic, tests |
请添加一个新的资源跟踪标签 <标签名称>使用 add-res-trace-tag 添加 <标签名>Please add a new resource tracking tag <tag name>Use add-res-trace-tag to add <tag name>COMMON_<类型名>COMMON_PIXELMAPCREATE_NATIVE_WINDOW_FROM_SURFACECOMMON_<type name>COMMON_PIXELMAPCREATE_NATIVE_WINDOW_FROM_SURFACEsrc/hook/linux/memory_trace.hporting/linux/user/src/hook/memory_trace.hsrc/hook/linux/memory_trace.hporting/linux/user/src/hook/memory_trace.hprotos/types/plugins/native_hook/native_hook_result.protodevice/plugins/native_daemon/include/hook_common.hdevice/plugins/native_hook/src/hook_guard.cppdevice/plugins/native_daemon/src/hook_manager.cppdevice/plugins/native_daemon/src/stack_preprocess.cppdevice/plugins/native_daemon/src/hook_record.cppdevice/plugins/native_hook/src/hook_client.cppdevice/plugins/native_daemon/test/unittest/common/native/hook_record_test.cppdevice/plugins/native_daemon/test/unittest/common/native/stack_preprocess_test.cppprotos/types/plugins/native_hook/native_hook_result.protodevice/plugins/native_daemon/include/hook_common.hdevice/plugins/native_hook/src/hook_guard.cppdevice/plugins/native_daemon/src/hook_manager.cppdevice/plugins/native_daemon/src/stack_preprocess.cppdevice/plugins/native_daemon/src/hook_record.cppdevice/plugins/native_hook/src/hook_client.cppdevice/plugins/native_daemon/test/unittest/common/native/hook_record_test.cppdevice/plugins/native_daemon/test/unittest/common/native/stack_preprocess_test.cpp// ✅ 正确:同时定义两个宏
#define RES_COMMON_WINDOW (1ULL << 33)
#define RES_COMMON_WINDOW_MASK (1ULL << 33)
// ❌ 错误:缺少 _MASK 后缀
#define RES_COMMON_WINDOW (1ULL << 33)
// 缺少 RES_COMMON_WINDOW_MASK!RES_<NAME>RES_<NAME>_MASK错误 1:忘记添加 _MASK 后缀
#define RES_COMMON_SURFACE (1ULL << 34) // ✅ 有这个
// ❌ 缺少:#define RES_COMMON_SURFACE_MASK (1ULL << 34)
错误 2:只复制了第一行
#define RES_COMMON_TEXTURE (1ULL << 35) // ✅ 有这个
#define RES_COMMON_TEXTURE // ❌ 这行是错的!应该是 (1ULL << 35)// ✅ Correct: Define both macros
#define RES_COMMON_WINDOW (1ULL << 33)
#define RES_COMMON_WINDOW_MASK (1ULL << 33)
// ❌ Error: Missing _MASK suffix
#define RES_COMMON_WINDOW (1ULL << 33)
// Missing RES_COMMON_WINDOW_MASK!RES_<NAME>RES_<NAME>_MASKError 1: Forgot to add _MASK suffix
#define RES_COMMON_SURFACE (1ULL << 34) // ✅ Exists
// ❌ Missing: #define RES_COMMON_SURFACE_MASK (1ULL << 34)
Error 2: Only copied the first line
#define RES_COMMON_TEXTURE (1ULL << 35) // ✅ Exists
#define RES_COMMON_TEXTURE // ❌ This line is wrong! Should be (1ULL << 35)d:\Code\tools_develop\d:\Code\tools_develop\hook_client.cpphook_client.cpp| 错误 | 解决方案 |
|---|---|
| 标签已存在 | 使用不同的标签名称 |
| 文件未找到 | 验证仓库路径 |
| 权限被拒绝 | 检查文件写入权限 |
| 格式无效 | 标签名称必须是大写字母和下划线 |
| 缺少 MASK | Skill 自动添加 RES_*_MASK 定义 |
| 定义不匹配 | RES_* 和 RES_*_MASK 的值必须相同 |
| Error | Solution |
|---|---|
| Tag already exists | Use a different tag name |
| File not found | Verify the repository path |
| Permission denied | Check file write permissions |
| Invalid format | Tag name must consist of uppercase letters and underscores |
| Missing MASK | Skill automatically adds the RES_*_MASK definition |
| Mismatched definitions | RES_* and RES_*_MASK must have the same value |