Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#302 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
28/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
cpp, linux

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện thiết lập tiến trình ASP.NET với MicrosoftInstrumentationEngine_RawProfilerHookPath_64 và profiler New Relic được cung cấp, sau đó kiểm tra môi trường của tiến trình Linux, đầu ra smaps và các log của instrumentation engine. Công việc được xem là hoàn tất khi xác định được raw profiler hook có được hỗ trợ trên Linux hay không và ghi lại hoặc sửa hành vi tải.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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?

Ngôn ngữ chính
C++
Star
104
Fork
53
Merge trung bình
3 giờ 34 phút
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoft/CLRInstrumentationEngine

Tất cả issue của microsoft/CLRInstrumentationEngine

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.