unable to load a profiler thru the raw profiler hook on linux
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 28/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- cpp, linux
调研方向
首先,使用 MicrosoftInstrumentationEngine_RawProfilerHookPath_64 和提供的 New Relic profiler 重现 ASP.NET 进程设置,然后检查 Linux 进程环境、smaps 输出和 instrumentation-engine 日志。完成的标准是确定 Linux 是否支持 raw profiler hook,并记录或修正加载行为。
由索引模型根据 Issue 内容生成。
描述
Consider this aspnet website
$ ps -eaf | grep dotnet
snikolov 6754 21 1 21:25 tty2 00:00:06 dotnet Some.Core.TestSite.dll
Now let's look at env variables
$ cat /proc/6754/environ | tr '\0' '\n' | grep -i microsoft
MicrosoftInstrumentationEngine_LogLevel=None
MicrosoftInstrumentationEngine_RawProfilerHookPath_64=/mnt/c/tmp/newrelic-netcore20-agent/libNewRelicProfiler.so
MicrosoftInstrumentationEngine_RawProfilerHook={36032161-FFC0-4B61-B559-F6C5D41BAE5A}
MicrosoftInstrumentationEngine_ConfigPath64_mainprofiler=/mnt/c/tmp/somesite/2.1/Release/MainProfiler_dotnet.config
MicrosoftInstrumentationEngine_DisableCodeSignatureValidation=1
The MainProfiler loads fine and does its job as expected, no issues there.
Does the New Relic Profiler exist? Sure it does
$ ls -l /mnt/c/tmp/newrelic-netcore20-agent/libNewRelicProfiler.so
-rwxrwxrwx 1 snikolov snikolov 13979573 Sep 17 13:21 /mnt/c/tmp/newrelic-netcore20-agent/libNewRelicProfiler.so
There is nothing weird in the NewRelic profiler 8.32 such as unsatisifed shared lib dependencies, as you can see for yourself with the ldd command.
Now let's find the NewRelic profiler
$ cat /proc/6754/smaps | grep -i relic
Not there, never got loaded.
No errors about it if I set LogLevel to Errors.
Seems like on linux the raw profiler hook is not supported?
I hope the explanation is a user error. Is this a known issue?
- 主要语言
- C++
- 星标
- 105
- 派生
- 53
- 平均合并
- 3 天 14 小时
- 30 天内合并 PR
- 4
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/CLRInstrumentationEngine 的其他 Issue
-
documentation
难度 2/5 1-3 小时 新手友好度 68/100
microsoft/CLRInstrumentationEngine#169 · 2 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
-
难度 5/5 一周以上 新手友好度 20/100
-
难度 3/5 1-2 天 新手友好度 45/100
microsoft/CLRInstrumentationEngine#526 · 1 个 reaction ·
-
bug
难度 3/5 1-2 天 新手友好度 35/100
查看 microsoft/CLRInstrumentationEngine 的全部 Issue
相似的 Issue
-
[Docs] CONTRIBUTING still says FreeType 2.14.3 and TabLabel.h says ImGui 1.92.9b after the bumps可能已有人在做 @mgradwohl 今天认领。 未关闭agent:WSL documentation LOW
难度 1/5 1-3 小时 新手友好度 83/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
finalburnneo/FBNeo#2820 · 1 条评论 ·
维护者通常 1 天内回复
-
area/ysql kind/enhancement priority/medium status/awaiting-triage
难度 2/5 1-3 小时 新手友好度 73/100
yugabyte/yugabyte-db#35578 ·
维护者通常 1 天内回复
-
cudf-polars feature request
难度 2/5 1-3 小时 新手友好度 77/100
维护者通常 2 天内回复
-
(S1 - Need confirmation)
难度 2/5 1-3 小时 新手友好度 68/100
CleverRaven/Cataclysm-DDA#89212 ·
维护者通常 1 天内回复