Merged
【PR】: 修复npu_module_mem.csv未生成的问题 #2872
mei-feiyaoAdd on Jun 16
【PR】: 修复npu_module_mem.csv未生成的问题 #2872
Merged
mei-feiyaoAdd on Jun 16
mei-feiyao
mei-feiyaoCollaborators
Jun 16

Pull Request

描述

请清晰准确地描述本次 Pull Request 的意图和变更内容。
问题现象:本地采集profiler内存数据未生成npu_module_mem.csv;
问题原因:prof采集host侧数据时timestamp值可能采用syscnt或monotonic(取决于是否从驱动获取host freq),工具采集module_mem数据下发的采集配置同理需要配置1或0用于通知底软组件上报syscnt或monotonic,即代码里的res1字段;
修复方案:调用PlatformHostFreqIsEnable,如果为true,则配置1,通知底软上报snscnt,否则下发0,通知底软上报monotonic

变更类型

请选择本次引入的变更类型:

关联的Issue

https://gitcode.com/Ascend/msprof/issues/73

如何测试

描述测试此变更的步骤和前提条件:
1.环境安装构建run包;
2.执行msprof采集命令,开启sys-hardware-mem开关;
3.观察生成的数据文件是否有npu_module_mem.csv
image.png

核对清单

其他信息

在此添加任何其他关于本次 PR 的说明。

likedislike
Pull Request has been successfully merged by CANN-robot.
(Thank you for mei-feiyao's contribution.)
mei-feiyaomei-feiyaoCollaborators
Jun 16 Added label: enhancement
mei-feiyaomei-feiyaoCollaborators
Jun 16 Created pull request, commit 1c010624
CANN-robotCANN-robotCollaborators
Jun 16 Added label: cann-cla/yes
CANN-robot
CANN-robotCollaborators
Jun 16 Comments:

Thanks for your pull-request.
The full list of commands accepted by me can be found at here。
You can get sig-info at here


PR Approval Progress

✅ Congratulations! All modules have met the lgtm and approve requirements.

Module Approval Details

module lgtm status approve status
src/dfx ✅ chenhao_1209, zhuliangying (2/2) ✅ zhuliangying (1/1)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)

CLA Signature Pass

mei-feiyao, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
mei-feiyao
mei-feiyaoCollaborators
Jun 16 Comments:

compile

likedislike
mei-feiyaomei-feiyaoCollaborators
Jun 16 Pre merge succeeded (commit_id: 14eed66cb1ca8b80929e96b47a813a578b6bcb25)
CANN-robotCANN-robotCollaborators
Jun 16 Added label: ci-pipeline-running
CANN-robot
CANN-robotCollaborators
Jun 16 Comments:

流水线任务触发成功
任务链接 [81273f3c2388469d9cbcac09269291f4][流水线指导]

任务名称状态日志下载链接
Compile_Ascend_X86 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM ✅ SUCCESS >>>>> >>>>>
pre_comment ✅ SUCCESS >>>>>
Compile_Ascend_X86_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_ubuntu24 ✅ SUCCESS >>>>> >>>>>
UT_Test_acl ✅ SUCCESS >>>>>
UT_Test_rts_v201 ✅ SUCCESS >>>>>
UT_Test_rts_c ✅ SUCCESS >>>>>
UT_Test_rts_david ✅ SUCCESS >>>>>
UT_Test_rts_910b ✅ SUCCESS >>>>>
UT_Test_rts_common ✅ SUCCESS >>>>>
UT_Test_platform ✅ SUCCESS >>>>>
UT_Test_qs ✅ SUCCESS >>>>>
UT_Test_aicpusd ✅ SUCCESS >>>>>
UT_Test_tsd ✅ SUCCESS >>>>>
UT_Test_error_manager ✅ SUCCESS >>>>>
UT_Test_slog ✅ SUCCESS >>>>>
UT_Test_atrace ✅ SUCCESS >>>>>
UT_Test_msprof ✅ SUCCESS >>>>>
UT_Test_adump ✅ SUCCESS >>>>>
UT_Test_mmpa ✅ SUCCESS >>>>>
UT_Test_camodel_check ✅ SUCCESS
API_Check ✅ SUCCESS >>>>>
PreSmoke_A900_npupool ✅ SUCCESS >>>>>
UT_Test_rts_report ✅ SUCCESS >>>>>

[2026-06-16 16:21:14]    CI执行结束

likedislike
mei-feiyaomei-feiyaoCollaborators
Jun 16 Modify description of pull request
CANN-robot
CANN-robotCollaborators
Jun 16 Comments:

流水线任务触发成功
任务链接 [f51ade99ff1849fa9ecfad26c7f685eb][流水线指导]

任务名称状态日志下载链接
codecheck ✅ SUCCESS >>>>>
SCA ✅ SUCCESS >>>>>
antipoison ✅ SUCCESS >>>>>
codecheck_Check_Pr ✅ SUCCESS
codecheck_style ✅ SUCCESS >>>>>
codecheck_precommit ⚠️ WARNING >>>>> >>>>>
StaticCheck_codespell_check ✅ SUCCESS
StaticCheck_link_validity_check ✅ SUCCESS
StaticCheck_resource_existence_check ✅ SUCCESS
StaticCheck_tag_closed_check ✅ SUCCESS
StaticCheck_markdownlint ✅ SUCCESS

[2026-06-16 16:10:04]    CI执行结束

likedislike
CANN-robotCANN-robotCollaborators
Jun 16 Added label: api-check-pass
CANN-robotCANN-robotCollaborators
Jun 16 Removed label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
Jun 16 Added label: ci-pipeline-passed
mei-feiyaomei-feiyaoCollaborators
Jun 16 Modify description of pull request
chenhao_1209Collaborators
Jun 16 Comments:

/lgtm

likedislike
zhuliangyingCollaborators
Jun 16 Comments:

/approve

likedislike
CANN-robotCANN-robotCollaborators
Jun 16 Added label: lgtmapproved
CANN-robotCANN-robotCollaborators
Jun 16 Merged pull request