Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

unable to load a profiler thru the raw profiler hook on linux

未关闭
#302 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 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

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

microsoft/CLRInstrumentationEngine 的其他 Issue

查看 microsoft/CLRInstrumentationEngine 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。