elastic / otel-profiling-agent Goto Github PK
View Code? Open in Web Editor NEWThe production-scale datacenter profiler (C/C++, Go, Rust, Python, Java, NodeJS, PHP, Ruby, Perl, ...)
License: Apache License 2.0
The production-scale datacenter profiler (C/C++, Go, Rust, Python, Java, NodeJS, PHP, Ruby, Perl, ...)
License: Apache License 2.0
I tried to run it, but the program reported an error.
I tested on three different kernels and found that this issue exists in all of them.
centos7.9(5.4.219)Ubuntu(5.15-101、5.15-102)
root@ubuntu2204:/opt/github/otel-profiling-agent# ./otel-profiling-agent -disable-tls -bpf-log-level 2 -verbose -collection-agent=127.0.0.1:4317
time="2024-04-17T16:02:29.307804792Z" level=debug msg="Config:"
time="2024-04-17T16:02:29.307939433Z" level=debug msg="bpf-log-level: 2"
time="2024-04-17T16:02:29.307954760Z" level=debug msg="bpf-log-size: 65536"
time="2024-04-17T16:02:29.307963528Z" level=debug msg="cache-directory: /var/cache/otel/profiling-agent"
time="2024-04-17T16:02:29.307969970Z" level=debug msg="collection-agent: 127.0.0.1:4317"
time="2024-04-17T16:02:29.307976497Z" level=debug msg="config: /etc/otel/profiling-agent/agent.conf"
time="2024-04-17T16:02:29.307983778Z" level=debug msg="copyright: false"
time="2024-04-17T16:02:29.307989514Z" level=debug msg="disable-tls: true"
time="2024-04-17T16:02:29.307995965Z" level=debug msg="map-scale-factor: 0"
time="2024-04-17T16:02:29.308001980Z" level=debug msg="no-kernel-version-check: false"
time="2024-04-17T16:02:29.308009793Z" level=debug msg="probabilistic-interval: 1m0s"
time="2024-04-17T16:02:29.308015631Z" level=debug msg="probabilistic-threshold: 100"
time="2024-04-17T16:02:29.308021349Z" level=debug msg="project-id: 1"
time="2024-04-17T16:02:29.308027161Z" level=debug msg="secret-token: abc123"
time="2024-04-17T16:02:29.308033036Z" level=debug msg="t: all"
time="2024-04-17T16:02:29.308045268Z" level=debug msg="tags: "
time="2024-04-17T16:02:29.308053173Z" level=debug msg="tracers: all"
time="2024-04-17T16:02:29.308060595Z" level=debug msg="v: true"
time="2024-04-17T16:02:29.308068020Z" level=debug msg="verbose: true"
time="2024-04-17T16:02:29.308076287Z" level=debug msg="version: false"
time="2024-04-17T16:02:29.308088410Z" level=info msg="Starting OTEL profiling agent 1.0.0 (revision OTEL-review, build timestamp N/A)"
time="2024-04-17T16:02:29.338636218Z" level=debug msg="Validated tags: "
time="2024-04-17T16:02:29.345399048Z" level=debug msg="Traffic to 127.0.0.1 is routed from 127.0.0.1"
time="2024-04-17T16:02:29.345491693Z" level=debug msg="Reading the configuration"
time="2024-04-17T16:02:29.345521530Z" level=debug msg="Done setting configuration"
time="2024-04-17T16:02:29.345531389Z" level=debug msg="Determining tracers to include"
time="2024-04-17T16:02:29.345541098Z" level=debug msg="Tracer string: all"
time="2024-04-17T16:02:29.345547283Z" level=info msg="Interpreter tracers: perl,php,python,hotspot,ruby,v8"
time="2024-04-17T16:02:29.345553853Z" level=info msg="Automatically determining environment and machine ID ..."
time="2024-04-17T16:02:32.353551340Z" level=debug msg="Environment tester (azure) failed: failed to get azure metadata: Get \"http://169.254.169.254/metadata/instance/compute?api-version=2020-09-01&format=json\": dial tcp 169.254.169.254:80: i/o timeout (Client.Timeout exceeded while awaiting headers)"
time="2024-04-17T16:02:32.952574146Z" level=debug msg="Environment tester (aws) failed: failed to get aws metadata: EC2MetadataRequestError: failed to get EC2 instance identity document\ncaused by: RequestError: send request failed\ncaused by: Get \"http://169.254.169.254/latest/dynamic/instance-identity/document\": dial tcp 169.254.169.254:80: connect: connection refused"
time="2024-04-17T16:02:35.486060964Z" level=debug msg="Environment tester (gcp) failed: failed to get GCP metadata: Get \"http://169.254.169.254/computeMetadata/v1/instance/id\": dial tcp 169.254.169.254:80: connect: connection refused"
time="2024-04-17T16:02:35.488877079Z" level=debug msg="Using MAC: 0x7EC699421C00"
time="2024-04-17T16:02:35.488927322Z" level=info msg="Environment: hardware, machine ID: 0xa1cd2c49e140a32f"
time="2024-04-17T16:02:35.489000264Z" level=info msg="Assigned ProjectID: 1 HostID: 1282730164693803823"
time="2024-04-17T16:02:35.492509164Z" level=debug msg="Traffic to 127.0.0.1 is routed from 127.0.0.1"
time="2024-04-17T16:02:35.661166452Z" level=debug msg="Size of eBPF map exe_id_to_10_stack_deltas: 65536"
time="2024-04-17T16:02:35.663494266Z" level=debug msg="Size of eBPF map exe_id_to_17_stack_deltas: 65536"
time="2024-04-17T16:02:35.666997122Z" level=debug msg="Size of eBPF map exe_id_to_15_stack_deltas: 65536"
time="2024-04-17T16:02:35.668244665Z" level=debug msg="Size of eBPF map exe_id_to_9_stack_deltas: 65536"
time="2024-04-17T16:02:35.669474442Z" level=debug msg="Size of eBPF map exe_id_to_16_stack_deltas: 65536"
time="2024-04-17T16:02:35.670690660Z" level=debug msg="Size of eBPF map exe_id_to_18_stack_deltas: 65536"
time="2024-04-17T16:02:35.672137478Z" level=debug msg="Size of eBPF map stack_delta_page_to_info: 65536"
time="2024-04-17T16:02:35.674369999Z" level=debug msg="Size of eBPF map exe_id_to_19_stack_deltas: 65536"
time="2024-04-17T16:02:35.676152405Z" level=debug msg="Size of eBPF map pid_page_to_mapping_info: 1048576"
time="2024-04-17T16:02:35.676185824Z" level=debug msg="Size of eBPF map exe_id_to_11_stack_deltas: 65536"
time="2024-04-17T16:02:35.677494926Z" level=debug msg="Size of eBPF map exe_id_to_13_stack_deltas: 65536"
time="2024-04-17T16:02:35.678897886Z" level=debug msg="Size of eBPF map exe_id_to_14_stack_deltas: 65536"
time="2024-04-17T16:02:35.680522577Z" level=debug msg="Size of eBPF map exe_id_to_21_stack_deltas: 65536"
time="2024-04-17T16:02:35.684883263Z" level=debug msg="Size of eBPF map exe_id_to_8_stack_deltas: 65536"
time="2024-04-17T16:02:35.686383625Z" level=debug msg="Size of eBPF map exe_id_to_12_stack_deltas: 65536"
time="2024-04-17T16:02:35.687660328Z" level=debug msg="Size of eBPF map exe_id_to_20_stack_deltas: 65536"
time="2024-04-17T16:02:35.694821056Z" level=error msg="load program: no space left on device: 174: (79) r1 = *(u64 *)(r0 +0): R0_w=map_value(id=0,off=0,ks=4,vs=8,imm=0) R6=c (truncated, 557 line(s) omitted)"
time="2024-04-17T16:02:35.694876996Z" level=error msg="Failed to load eBPF tracer: failed to load eBPF code: failed to load eBPF programs: failed to load unwind_stop"
root@ubuntu2204:/opt/github/otel-profiling-agent# ./otel-profiling-agent -disable-tls -bpf-log-level 2 -verbose -collection-agent=127.0.0.1:4317
time="2024-04-17T16:02:39.694513357Z" level=debug msg="Config:"
time="2024-04-17T16:02:39.694580570Z" level=debug msg="bpf-log-level: 2"
time="2024-04-17T16:02:39.694588005Z" level=debug msg="bpf-log-size: 65536"
time="2024-04-17T16:02:39.694593251Z" level=debug msg="cache-directory: /var/cache/otel/profiling-agent"
time="2024-04-17T16:02:39.694597447Z" level=debug msg="collection-agent: 127.0.0.1:4317"
time="2024-04-17T16:02:39.694601336Z" level=debug msg="config: /etc/otel/profiling-agent/agent.conf"
time="2024-04-17T16:02:39.694606120Z" level=debug msg="copyright: false"
time="2024-04-17T16:02:39.694609660Z" level=debug msg="disable-tls: true"
time="2024-04-17T16:02:39.694613448Z" level=debug msg="map-scale-factor: 0"
time="2024-04-17T16:02:39.694619625Z" level=debug msg="no-kernel-version-check: false"
time="2024-04-17T16:02:39.694724803Z" level=debug msg="probabilistic-interval: 1m0s"
time="2024-04-17T16:02:39.694731576Z" level=debug msg="probabilistic-threshold: 100"
time="2024-04-17T16:02:39.694735492Z" level=debug msg="project-id: 1"
time="2024-04-17T16:02:39.694739222Z" level=debug msg="secret-token: abc123"
time="2024-04-17T16:02:39.694742845Z" level=debug msg="t: all"
time="2024-04-17T16:02:39.694774500Z" level=debug msg="tags: "
time="2024-04-17T16:02:39.694779276Z" level=debug msg="tracers: all"
time="2024-04-17T16:02:39.694783254Z" level=debug msg="v: true"
time="2024-04-17T16:02:39.694786710Z" level=debug msg="verbose: true"
time="2024-04-17T16:02:39.694790439Z" level=debug msg="version: false"
time="2024-04-17T16:02:39.694795228Z" level=info msg="Starting OTEL profiling agent 1.0.0 (revision OTEL-review, build timestamp N/A)"
time="2024-04-17T16:02:39.726198380Z" level=debug msg="Validated tags: "
time="2024-04-17T16:02:39.728971090Z" level=debug msg="Traffic to 127.0.0.1 is routed from 127.0.0.1"
time="2024-04-17T16:02:39.729163735Z" level=debug msg="Reading the configuration"
time="2024-04-17T16:02:39.729240813Z" level=debug msg="Done setting configuration"
time="2024-04-17T16:02:39.729259307Z" level=debug msg="Determining tracers to include"
time="2024-04-17T16:02:39.729322476Z" level=debug msg="Tracer string: all"
time="2024-04-17T16:02:39.729352425Z" level=info msg="Interpreter tracers: perl,php,python,hotspot,ruby,v8"
time="2024-04-17T16:02:39.729362097Z" level=info msg="Automatically determining environment and machine ID ..."
time="2024-04-17T16:02:39.730364517Z" level=debug msg="Environment tester (azure) failed: failed to get azure metadata: Get \"http://169.254.169.254/metadata/instance/compute?api-version=2020-09-01&format=json\": dial tcp 169.254.169.254:80: connect: connection refused"
time="2024-04-17T16:02:40.304691298Z" level=debug msg="Environment tester (aws) failed: failed to get aws metadata: EC2MetadataRequestError: failed to get EC2 instance identity document\ncaused by: RequestError: send request failed\ncaused by: Get \"http://169.254.169.254/latest/dynamic/instance-identity/document\": dial tcp 169.254.169.254:80: connect: connection refused"
time="2024-04-17T16:02:40.672310810Z" level=debug msg="Environment tester (gcp) failed: failed to get GCP metadata: Get \"http://169.254.169.254/computeMetadata/v1/instance/id\": dial tcp 169.254.169.254:80: connect: connection refused"
time="2024-04-17T16:02:40.675907642Z" level=debug msg="Using MAC: 0x7EC699421C00"
time="2024-04-17T16:02:40.676237785Z" level=info msg="Environment: hardware, machine ID: 0xa1cd2c49e140a32f"
time="2024-04-17T16:02:40.676469358Z" level=info msg="Assigned ProjectID: 1 HostID: 1282730164693803823"
time="2024-04-17T16:02:40.679220758Z" level=debug msg="Traffic to 127.0.0.1 is routed from 127.0.0.1"
time="2024-04-17T16:02:40.857821007Z" level=debug msg="Size of eBPF map exe_id_to_14_stack_deltas: 65536"
time="2024-04-17T16:02:40.859576805Z" level=debug msg="Size of eBPF map exe_id_to_17_stack_deltas: 65536"
time="2024-04-17T16:02:40.861715648Z" level=debug msg="Size of eBPF map exe_id_to_18_stack_deltas: 65536"
time="2024-04-17T16:02:40.863167962Z" level=debug msg="Size of eBPF map exe_id_to_20_stack_deltas: 65536"
time="2024-04-17T16:02:40.865345841Z" level=debug msg="Size of eBPF map exe_id_to_9_stack_deltas: 65536"
time="2024-04-17T16:02:40.866614450Z" level=debug msg="Size of eBPF map exe_id_to_11_stack_deltas: 65536"
time="2024-04-17T16:02:40.868232931Z" level=debug msg="Size of eBPF map exe_id_to_16_stack_deltas: 65536"
time="2024-04-17T16:02:40.870837090Z" level=debug msg="Size of eBPF map exe_id_to_8_stack_deltas: 65536"
time="2024-04-17T16:02:40.872606707Z" level=debug msg="Size of eBPF map exe_id_to_15_stack_deltas: 65536"
time="2024-04-17T16:02:40.876671278Z" level=debug msg="Size of eBPF map exe_id_to_12_stack_deltas: 65536"
time="2024-04-17T16:02:40.878139667Z" level=debug msg="Size of eBPF map exe_id_to_21_stack_deltas: 65536"
time="2024-04-17T16:02:40.881467085Z" level=debug msg="Size of eBPF map pid_page_to_mapping_info: 1048576"
time="2024-04-17T16:02:40.881500935Z" level=debug msg="Size of eBPF map exe_id_to_13_stack_deltas: 65536"
time="2024-04-17T16:02:40.883343122Z" level=debug msg="Size of eBPF map exe_id_to_19_stack_deltas: 65536"
time="2024-04-17T16:02:40.885034327Z" level=debug msg="Size of eBPF map stack_delta_page_to_info: 65536"
time="2024-04-17T16:02:40.886369072Z" level=debug msg="Size of eBPF map exe_id_to_10_stack_deltas: 65536"
time="2024-04-17T16:02:40.893914976Z" level=error msg="load program: no space left on device: 174: (79) r1 = *(u64 *)(r0 +0): R0_w=map_value(id=0,off=0,ks=4,vs=8,imm=0) R6=c (truncated, 557 line(s) omitted)"
time="2024-04-17T16:02:40.893953659Z" level=error msg="Failed to load eBPF tracer: failed to load eBPF code: failed to load eBPF programs: failed to load unwind_stop"
root@ubuntu2204:/opt/github/otel-profiling-agent#
I tried to run sudo make docker-image
on my Ubuntu 22.04.3 LTS, but failed at "returned a non-zero code: 100".
After an investigation, I found that it is due to these commands in Dockerfile
"RUN apt-get update && apt-get dist-upgrade -y ..."
I didn't find any solution for that. Could you confirm it?
Thank you.
./devfiler-appimage-$(uname -m).AppImage
/nix/store/f004k9qdr6ms8xq8gq6qswwg076d1bfr-devfiler-stripped/bin/devfiler: /usr/lib64/libstdc++.so.6: version GLIBCXX_3.4.26' not found (required by /nix/store/f004k9qdr6ms8xq8gq6qswwg076d1bfr-devfiler-stripped/bin/devfiler) /nix/store/f004k9qdr6ms8xq8gq6qswwg076d1bfr-devfiler-stripped/bin/devfiler: /usr/lib64/libstdc++.so.6: version
GLIBCXX_3.4.29' not found (required by /nix/store/f004k9qdr6ms8xq8gq6qswwg076d1bfr-devfiler-stripped/bin/devfiler)
/nix/store/f004k9qdr6ms8xq8gq6qswwg076d1bfr-devfiler-stripped/bin/devfiler: /usr/lib64/libstdc++.so.6: version GLIBCXX_3.4.30' not found (required by /nix/store/f004k9qdr6ms8xq8gq6qswwg076d1bfr-devfiler-stripped/bin/devfiler) /nix/store/f004k9qdr6ms8xq8gq6qswwg076d1bfr-devfiler-stripped/bin/devfiler: /usr/lib64/libstdc++.so.6: version
CXXABI_1.3.13' not found (required by /nix/store/f004k9qdr6ms8xq8gq6qswwg076d1bfr-devfiler-stripped/bin/devfiler)
also agent run error
./otel-profiling-agent -disable-tls -collection-agent=0.0.0.0:11000 -bpf-log-level 2 -verbose
time="2024-04-18T08:34:32.057604323Z" level=debug msg="Config:"
time="2024-04-18T08:34:32.057761503Z" level=debug msg="bpf-log-level: 2"
time="2024-04-18T08:34:32.057786270Z" level=debug msg="bpf-log-size: 65536"
time="2024-04-18T08:34:32.057804997Z" level=debug msg="cache-directory: /var/cache/otel/profiling-agent"
time="2024-04-18T08:34:32.057824927Z" level=debug msg="collection-agent: 0.0.0.0:11000"
time="2024-04-18T08:34:32.057840633Z" level=debug msg="config: /etc/otel/profiling-agent/agent.conf"
time="2024-04-18T08:34:32.057868231Z" level=debug msg="copyright: false"
time="2024-04-18T08:34:32.057878160Z" level=debug msg="disable-tls: true"
time="2024-04-18T08:34:32.057888442Z" level=debug msg="map-scale-factor: 0"
time="2024-04-18T08:34:32.057898090Z" level=debug msg="no-kernel-version-check: false"
time="2024-04-18T08:34:32.057910669Z" level=debug msg="probabilistic-interval: 1m0s"
time="2024-04-18T08:34:32.057920608Z" level=debug msg="probabilistic-threshold: 100"
time="2024-04-18T08:34:32.057930438Z" level=debug msg="project-id: 1"
time="2024-04-18T08:34:32.057939619Z" level=debug msg="secret-token: abc123"
time="2024-04-18T08:34:32.057949204Z" level=debug msg="t: all"
time="2024-04-18T08:34:32.057959168Z" level=debug msg="tags: "
time="2024-04-18T08:34:32.057968497Z" level=debug msg="tracers: all"
time="2024-04-18T08:34:32.057978131Z" level=debug msg="v: true"
time="2024-04-18T08:34:32.057987110Z" level=debug msg="verbose: true"
time="2024-04-18T08:34:32.057996204Z" level=debug msg="version: false"
time="2024-04-18T08:34:32.058007268Z" level=info msg="Starting OTEL profiling agent 1.0.0 (revision OTEL-review, build timestamp N/A)"
time="2024-04-18T08:34:32.066764829Z" level=debug msg="Validated tags: "
time="2024-04-18T08:34:32.084189854Z" level=debug msg="Traffic to 0.0.0.0 is routed from 127.0.0.1"
time="2024-04-18T08:34:32.084326097Z" level=debug msg="Reading the configuration"
time="2024-04-18T08:34:32.084385632Z" level=debug msg="Done setting configuration"
time="2024-04-18T08:34:32.084399834Z" level=debug msg="Determining tracers to include"
time="2024-04-18T08:34:32.084414601Z" level=debug msg="Tracer string: all"
time="2024-04-18T08:34:32.084425643Z" level=info msg="Interpreter tracers: perl,php,python,hotspot,ruby,v8"
time="2024-04-18T08:34:32.084436565Z" level=info msg="Automatically determining environment and machine ID ..."
time="2024-04-18T08:34:35.085739723Z" level=debug msg="Environment tester (azure) failed: failed to get azure metadata: Get "http://169.254.169.254/metadata/instance/compute?api-version=2020-09-01&format=json\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)"
time="2024-04-18T08:34:44.633481537Z" level=debug msg="Environment tester (aws) failed: failed to get aws metadata: EC2MetadataRequestError: failed to get EC2 instance identity document\ncaused by: RequestError: send request failed\ncaused by: Get "http://169.254.169.254/latest/dynamic/instance-identity/document\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)"
time="2024-04-18T08:34:46.549829839Z" level=debug msg="Environment tester (gcp) failed: failed to get GCP metadata: Get "http://169.254.169.254/computeMetadata/v1/instance/id\": dial tcp 169.254.169.254:80: i/o timeout"
time="2024-04-18T08:34:46.553658401Z" level=debug msg="Using MAC: 0x120F95D4E9F4"
time="2024-04-18T08:34:46.553711072Z" level=info msg="Environment: hardware, machine ID: 0x13947a896189adc7"
time="2024-04-18T08:34:46.553725672Z" level=info msg="Assigned ProjectID: 1 HostID: 1410887313739328967"
time="2024-04-18T08:34:46.570770645Z" level=debug msg="Traffic to 0.0.0.0 is routed from 127.0.0.1"
time="2024-04-18T08:34:49.586417179Z" level=warning msg="Failed to setup gRPC connection (try 1 of 5): context deadline exceeded: connection error: desc = "transport: Error while dialing: dial tcp 0.0.0.0:11000: connect: connection refused""
dyld[56719]: Library not loaded: /nix/store/9pqgglls92szg4pksajafi8sq1nxxk28-libiconv-50/lib/libiconv.dylib
Referenced from: <B9A7E9BE-4340-386B-8D00-13BC83A5CB2F> /Applications/devfiler.app/Contents/MacOS/devfiler
Reason: tried: '/nix/store/9pqgglls92szg4pksajafi8sq1nxxk28-libiconv-50/lib/libiconv.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/nix/store/9pqgglls92szg4pksajafi8sq1nxxk28-libiconv-50/lib/libiconv.dylib' (no such file), '/nix/store/9pqgglls92szg4pksajafi8sq1nxxk28-libiconv-50/lib/libiconv.dylib' (no such file)
[1] 56719 abort ./devfiler
Seems to be looking for a dylib in a nix store which isn't present on my system
Can this agent be used for nginx ?
I tried to run it, but the program reported an error.
I tested on openEuler(4.19.90)
./otel-profiling-agent -collection-agent=11.0.1.200:11000 -disable-tls -verbose -bpf-log-level=0
time="2024-05-07T16:21:41.712614957+08:00" level=debug msg="Config:"
time="2024-05-07T16:21:41.713944783+08:00" level=debug msg="bpf-log-level: 0"
time="2024-05-07T16:21:41.714489878+08:00" level=debug msg="bpf-log-size: 65536"
time="2024-05-07T16:21:41.714844795+08:00" level=debug msg="cache-directory: /var/cache/otel/profiling-agent"
time="2024-05-07T16:21:41.715587205+08:00" level=debug msg="collection-agent: 11.0.1.200:11000"
time="2024-05-07T16:21:41.715962906+08:00" level=debug msg="config: /etc/otel/profiling-agent/agent.conf"
time="2024-05-07T16:21:41.716214605+08:00" level=debug msg="copyright: false"
time="2024-05-07T16:21:41.716436016+08:00" level=debug msg="disable-tls: true"
time="2024-05-07T16:21:41.716785813+08:00" level=debug msg="map-scale-factor: 0"
time="2024-05-07T16:21:41.717052825+08:00" level=debug msg="no-kernel-version-check: false"
time="2024-05-07T16:21:41.717499231+08:00" level=debug msg="probabilistic-interval: 1m0s"
time="2024-05-07T16:21:41.717709826+08:00" level=debug msg="probabilistic-threshold: 100"
time="2024-05-07T16:21:41.717866628+08:00" level=debug msg="project-id: 1"
time="2024-05-07T16:21:41.718047638+08:00" level=debug msg="secret-token: abc123"
time="2024-05-07T16:21:41.718288634+08:00" level=debug msg="t: all"
time="2024-05-07T16:21:41.718490844+08:00" level=debug msg="tags: "
time="2024-05-07T16:21:41.718877745+08:00" level=debug msg="tracers: all"
time="2024-05-07T16:21:41.719518458+08:00" level=debug msg="v: true"
time="2024-05-07T16:21:41.719868559+08:00" level=debug msg="verbose: true"
time="2024-05-07T16:21:41.720101154+08:00" level=debug msg="version: false"
time="2024-05-07T16:21:41.720364662+08:00" level=info msg="Starting OTEL profiling agent 1.0.0 (revision OTEL-review, build timestamp N/A)"
time="2024-05-07T16:21:41.786557253+08:00" level=debug msg="Validated tags: "
time="2024-05-07T16:21:41.825674390+08:00" level=debug msg="Traffic to 11.0.1.200 is routed from 10.0.2.15"
time="2024-05-07T16:21:41.828227928+08:00" level=error msg="Unable to get host metadata for config: unable to open /proc/sys/kernel/bpf_stats_enabled: open /proc/sys/kernel/bpf_stats_enabled: no such file or directory"
time="2024-05-07T16:21:41.828849137+08:00" level=debug msg="Reading the configuration"
time="2024-05-07T16:21:41.829340743+08:00" level=debug msg="Done setting configuration"
time="2024-05-07T16:21:41.829902847+08:00" level=debug msg="Determining tracers to include"
time="2024-05-07T16:21:41.830438854+08:00" level=debug msg="Tracer string: all"
time="2024-05-07T16:21:41.830999454+08:00" level=info msg="Interpreter tracers: perl,php,python,hotspot,ruby"
time="2024-05-07T16:21:41.831561173+08:00" level=info msg="Automatically determining environment and machine ID ..."
time="2024-05-07T16:21:44.838773933+08:00" level=debug msg="Environment tester (azure) failed: failed to get azure metadata: Get \"http://169.254.169.254/metadata/instance/compute?api-version=2020-09-01&format=json\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)"
time="2024-05-07T16:21:54.431239546+08:00" level=debug msg="Environment tester (aws) failed: failed to get aws metadata: EC2MetadataRequestError: failed to get EC2 instance identity document\ncaused by: RequestError: send request failed\ncaused by: Get \"http://169.254.169.254/latest/dynamic/instance-identity/document\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)"
time="2024-05-07T16:21:55.439542972+08:00" level=debug msg="Environment tester (gcp) failed: failed to get GCP metadata: Get \"http://169.254.169.254/computeMetadata/v1/instance/id\": dial tcp 169.254.169.254:80: i/o timeout"
time="2024-05-07T16:21:55.500070495+08:00" level=debug msg="Using MAC: 0x563412005452"
time="2024-05-07T16:21:55.500789001+08:00" level=info msg="Environment: hardware, machine ID: 0x9eead8d68aa7f8e0"
time="2024-05-07T16:21:55.501188814+08:00" level=info msg="Assigned ProjectID: 1 HostID: 2227831381648996576"
time="2024-05-07T16:21:55.554270124+08:00" level=debug msg="Traffic to 11.0.1.200 is routed from 10.0.2.15"
time="2024-05-07T16:21:55.557283668+08:00" level=error msg="Unable to get host metadata: unable to open /proc/sys/kernel/bpf_stats_enabled: open /proc/sys/kernel/bpf_stats_enabled: no such file or directory"
time="2024-05-07T16:21:58.085100042+08:00" level=debug msg="Size of eBPF map exe_id_to_9_stack_deltas: 65536"
time="2024-05-07T16:21:58.108411365+08:00" level=debug msg="Size of eBPF map exe_id_to_15_stack_deltas: 65536"
time="2024-05-07T16:21:58.134409812+08:00" level=debug msg="Size of eBPF map exe_id_to_12_stack_deltas: 65536"
time="2024-05-07T16:21:58.152563258+08:00" level=debug msg="Size of eBPF map stack_delta_page_to_info: 65536"
time="2024-05-07T16:21:58.183999587+08:00" level=debug msg="Size of eBPF map exe_id_to_8_stack_deltas: 65536"
time="2024-05-07T16:21:58.203253447+08:00" level=debug msg="Size of eBPF map exe_id_to_18_stack_deltas: 65536"
time="2024-05-07T16:21:58.229573099+08:00" level=debug msg="Size of eBPF map exe_id_to_20_stack_deltas: 65536"
time="2024-05-07T16:21:58.268821838+08:00" level=debug msg="Size of eBPF map exe_id_to_19_stack_deltas: 65536"
time="2024-05-07T16:21:58.302900795+08:00" level=debug msg="Size of eBPF map exe_id_to_11_stack_deltas: 65536"
time="2024-05-07T16:21:58.325655006+08:00" level=debug msg="Size of eBPF map exe_id_to_13_stack_deltas: 65536"
time="2024-05-07T16:21:58.347174897+08:00" level=debug msg="Size of eBPF map exe_id_to_14_stack_deltas: 65536"
time="2024-05-07T16:21:58.373934555+08:00" level=debug msg="Size of eBPF map exe_id_to_21_stack_deltas: 65536"
time="2024-05-07T16:21:58.458982697+08:00" level=debug msg="Size of eBPF map exe_id_to_10_stack_deltas: 65536"
time="2024-05-07T16:21:58.480097687+08:00" level=debug msg="Size of eBPF map exe_id_to_16_stack_deltas: 65536"
time="2024-05-07T16:21:58.504682723+08:00" level=debug msg="Size of eBPF map exe_id_to_17_stack_deltas: 65536"
time="2024-05-07T16:21:58.530875781+08:00" level=debug msg="Size of eBPF map pid_page_to_mapping_info: 1048576"
time="2024-05-07T16:21:58.613319392+08:00" level=error msg="load program: argument list too long"
time="2024-05-07T16:21:58.613850103+08:00" level=error msg="Failed to load eBPF tracer: failed to load eBPF code: failed to load eBPF programs: failed to load unwind_native"
if i change to "-bpf-log-level=2 -bpf-log-size=8388608“, got this error:
time="2024-05-07T16:18:51.318253683+08:00" level=error msg="load program: invalid argument"
time="2024-05-07T16:18:51.319925706+08:00" level=error msg="Failed to load eBPF tracer: failed to load eBPF code: failed to load eBPF programs: failed to load unwind_stop"
docker version:
Client: Docker Engine - Community
Version: 23.0.1
API version: 1.42
Go version: go1.19.5
Git commit: a5ee5b1
Built: Thu Feb 9 19:51:00 2023
OS/Arch: linux/amd64
Context: default
Server: Docker Engine - Community
Engine:
Version: 23.0.1
API version: 1.42 (minimum version 1.12)
Go version: go1.19.5
Git commit: bc3805a
Built: Thu Feb 9 19:48:42 2023
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.9
GitCommit: 1c90a442489720eec95342e1789ee8a5e1b9536f
runc:
Version: 1.1.4
GitCommit: v1.1.4-0-g5fd4c4d
docker-init:
Version: 0.19.0
GitCommit: de40ad0
When I run make docker-image
, I get the following error:
#0 17.40 Setting up libdevmapper1.02.1:amd64 (2:1.02.196-1+b1) ...
#0 17.40 Setting up libcryptsetup12:amd64 (2:2.6.1-6+b1) ...
#0 17.40 Setting up systemd (255.4-1) ...
#0 17.42 Created symlink /etc/systemd/system/getty.target.wants/[email protected] → /usr/lib/systemd/system/[email protected].
#0 17.42 Created symlink /etc/systemd/system/multi-user.target.wants/remote-fs.target → /usr/lib/systemd/system/remote-fs.target.
#0 17.42 Created symlink /etc/systemd/system/sysinit.target.wants/systemd-pstore.service → /usr/lib/systemd/system/systemd-pstore.service.
#0 17.43 Initializing machine ID from random generator.
#0 17.44 Failed to take /etc/passwd lock: Invalid argument
#0 17.45 dpkg: error processing package systemd (--configure):
#0 17.45 installed systemd package post-installation script subprocess returned error exit status 1
#0 17.45 Setting up dmsetup (2:1.02.196-1+b1) ...
#0 17.46 Errors were encountered while processing:
#0 17.46 systemd
#0 17.50 E: Sub-process /usr/bin/dpkg returned an error code (1)
------
Dockerfile:7
--------------------
6 |
7 | >>> RUN apt-get update -y && apt-get dist-upgrade -y && apt-get install -y \
8 | >>> curl wget cmake dwz lsb-release software-properties-common gnupg git clang llvm \
9 | >>> golang unzip
10 |
--------------------
ERROR: failed to solve: process "/bin/sh -c apt-get update -y && apt-get dist-upgrade -y && apt-get install -y curl wget cmake dwz lsb-release software-properties-common gnupg git clang llvm golang unzip" did not complete successfully: exit code: 100
make: *** [Makefile:57: docker-image] Error 1
I want to know if I can get the specific value entered by the user in the java program
I tried to run my own otel collector to collect the data, however, it shows that some of the new features of signal is not implemented.
time="2024-04-17T20:41:17.626067005Z" level=error msg="Failed to handle mapping for PID 1700136, file /usr/bin/clickhouse: failed to load deltas: failed UpdateExeIDToStackDeltas for FileID e71a2d0df314abcd: no map available for 3256297 stack deltas"
time="2024-04-17T20:41:18.285213757Z" level=error msg="Failed to handle mapping for PID 1700137, file /usr/bin/clickhouse: failed to load deltas: failed UpdateExeIDToStackDeltas for FileID e71a2d0df314abcd: no map available for 3256297 stack deltas"
time="2024-04-17T20:41:23.997951426Z" level=info msg="Attached tracer program"
time="2024-04-17T20:41:24.050963144Z" level=info msg="Attached sched monitor"
time="2024-04-17T20:41:24.052807028Z" level=info msg="Environment variable KUBERNETES_SERVICE_HOST not set"
time="2024-04-17T20:41:24.632531045Z" level=error msg="Request failed: rpc error: code = Unimplemented desc = unknown service opentelemetry.proto.collector.profiles.v1.ProfilesService"
time="2024-04-17T20:41:25.882740002Z" level=error msg="Failed to handle mapping for PID 1700137, file /usr/bin/clickhouse: failed to load deltas: failed UpdateExeIDToStackDeltas for FileID e71a2d0df314abcd: no map available for 3256297 stack deltas"
time="2024-04-17T20:41:29.133657342Z" level=error msg="Request failed: rpc error: code = Unimplemented desc = unknown service opentelemetry.proto.collector.profiles.v1.ProfilesService"
time="2024-04-17T20:41:33.961619601Z" level=error msg="Request failed: rpc error: code = Unimplemented desc = unknown service opentelemetry.proto.collector.profiles.v1.ProfilesService"
time="2024-04-17T20:41:43.844658570Z" level=error msg="Request failed: rpc error: code = Unimplemented desc = unknown service opentelemetry.proto.collector.profiles.v1.ProfilesService"
time="2024-04-17T20:41:49.753826484Z" level=error msg="Request failed: rpc error: code = Unimplemented desc = unknown service opentelemetry.proto.collector.profiles.v1.ProfilesService"
^Ctime="2024-04-17T20:41:51.601494731Z" level=info msg="Stop processing ..."
time="2024-04-17T20:41:51.601518358Z" level=info msg="Exiting ..."
When running the profiling agent
The machine kernel version was originally 3.10, but the agent supports a minimum kernel version of 4.19, so the machine kernel was upgraded
However, I found that there is no /proc/sys/kernel/bpf_status_enabled
after the upgrade
This kernel parameter is only available in the 5.1 kernel
I want to run the agent successfully on a kernel 4.19 machine
The following works on x86_64, but fails on aarch64:
$ make docker-image
$ docker run --rm -it -v $(pwd):/agent -w /agent/support/ebpf --entrypoint /bin/bash profiling-agent
# make tsd.ebpf.o
The error from aarch64:
clang -D__KERNEL__ -D__BPF_TRACING__ -target aarch64-linux-gnu -O2 -emit-llvm -c tsd.ebpf.c -Wall -Wextra -Werror -Wno-address-of-packed-member -Wno-unused-label -Wno-unused-parameter -Wno-sign-compare -fno-stack-protector -fno-jump-tables -isystem /lib/modules/6.6.15-arm64/source/arch/arm64/include -isystem /lib/modules/6.6.15-arm64/source/arch/arm64/include/generated -isystem /lib/modules/6.6.15-arm64/build/include -isystem /lib/modules/6.6.15-arm64/build/include/uapi -isystem /lib/modules/6.6.15-arm64/build/arch/arm64/include -isystem /lib/modules/6.6.15-arm64/build/arch/arm64/include/generated -isystem /lib/modules/6.6.15-arm64/source/include -o tsd.ebpf.o
In file included from tsd.ebpf.c:6:
In file included from ./bpfdefs.h:145:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/bpf.h:31:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/memcontrol.h:22:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/writeback.h:13:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/blk_types.h:10:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/bvec.h:10:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/highmem.h:8:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/cacheflush.h:5:
In file included from /lib/modules/6.6.15-arm64/source/arch/arm64/include/asm/cacheflush.h:11:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/kgdb.h:19:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/kprobes.h:28:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/ftrace.h:23:
In file included from /lib/modules/6.6.15-arm64/source/arch/arm64/include/asm/ftrace.h:52:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/compat.h:16:
In file included from /usr/include/linux/if.h:28:
In file included from /usr/include/aarch64-linux-gnu/sys/socket.h:26:
/usr/include/aarch64-linux-gnu/bits/types/struct_iovec.h:26:8: error: redefinition of 'iovec'
struct iovec
^
/lib/modules/6.6.15-arm64/source/include/uapi/linux/uio.h:17:8: note: previous definition is here
struct iovec
^
In file included from tsd.ebpf.c:6:
In file included from ./bpfdefs.h:145:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/bpf.h:31:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/memcontrol.h:22:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/writeback.h:13:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/blk_types.h:10:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/bvec.h:10:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/highmem.h:8:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/cacheflush.h:5:
In file included from /lib/modules/6.6.15-arm64/source/arch/arm64/include/asm/cacheflush.h:11:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/kgdb.h:19:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/kprobes.h:28:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/ftrace.h:23:
In file included from /lib/modules/6.6.15-arm64/source/arch/arm64/include/asm/ftrace.h:52:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/compat.h:16:
In file included from /usr/include/linux/if.h:28:
In file included from /usr/include/aarch64-linux-gnu/sys/socket.h:33:
In file included from /usr/include/aarch64-linux-gnu/bits/socket.h:29:
/usr/include/aarch64-linux-gnu/sys/types.h:42:18: error: typedef redefinition with different types ('__loff_t' (aka 'long') vs '__kernel_loff_t' (aka 'long long'))
typedef __loff_t loff_t;
^
/lib/modules/6.6.15-arm64/source/include/linux/types.h:52:26: note: previous definition is here
typedef __kernel_loff_t loff_t;
^
In file included from tsd.ebpf.c:6:
In file included from ./bpfdefs.h:145:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/bpf.h:31:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/memcontrol.h:22:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/writeback.h:13:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/blk_types.h:10:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/bvec.h:10:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/highmem.h:8:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/cacheflush.h:5:
In file included from /lib/modules/6.6.15-arm64/source/arch/arm64/include/asm/cacheflush.h:11:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/kgdb.h:19:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/kprobes.h:28:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/ftrace.h:23:
In file included from /lib/modules/6.6.15-arm64/source/arch/arm64/include/asm/ftrace.h:52:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/compat.h:16:
In file included from /usr/include/linux/if.h:28:
In file included from /usr/include/aarch64-linux-gnu/sys/socket.h:33:
In file included from /usr/include/aarch64-linux-gnu/bits/socket.h:29:
/usr/include/aarch64-linux-gnu/sys/types.h:59:17: error: typedef redefinition with different types ('__dev_t' (aka 'unsigned long') vs '__kernel_dev_t' (aka 'unsigned int'))
typedef __dev_t dev_t;
^
/lib/modules/6.6.15-arm64/source/include/linux/types.h:21:25: note: previous definition is here
typedef __kernel_dev_t dev_t;
^
In file included from tsd.ebpf.c:6:
In file included from ./bpfdefs.h:145:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/bpf.h:31:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/memcontrol.h:22:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/writeback.h:13:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/blk_types.h:10:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/bvec.h:10:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/highmem.h:8:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/cacheflush.h:5:
In file included from /lib/modules/6.6.15-arm64/source/arch/arm64/include/asm/cacheflush.h:11:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/kgdb.h:19:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/kprobes.h:28:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/ftrace.h:23:
In file included from /lib/modules/6.6.15-arm64/source/arch/arm64/include/asm/ftrace.h:52:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/compat.h:16:
In file included from /usr/include/linux/if.h:28:
In file included from /usr/include/aarch64-linux-gnu/sys/socket.h:33:
In file included from /usr/include/aarch64-linux-gnu/bits/socket.h:29:
In file included from /usr/include/aarch64-linux-gnu/sys/types.h:130:
/usr/include/aarch64-linux-gnu/bits/types/timer_t.h:7:19: error: typedef redefinition with different types ('__timer_t' (aka 'void *') vs '__kernel_timer_t' (aka 'int'))
typedef __timer_t timer_t;
^
/lib/modules/6.6.15-arm64/source/include/linux/types.h:31:26: note: previous definition is here
typedef __kernel_timer_t timer_t;
^
In file included from tsd.ebpf.c:6:
In file included from ./bpfdefs.h:145:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/bpf.h:31:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/memcontrol.h:22:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/writeback.h:13:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/blk_types.h:10:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/bvec.h:10:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/highmem.h:8:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/cacheflush.h:5:
In file included from /lib/modules/6.6.15-arm64/source/arch/arm64/include/asm/cacheflush.h:11:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/kgdb.h:19:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/kprobes.h:28:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/ftrace.h:23:
In file included from /lib/modules/6.6.15-arm64/source/arch/arm64/include/asm/ftrace.h:52:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/compat.h:16:
In file included from /usr/include/linux/if.h:28:
In file included from /usr/include/aarch64-linux-gnu/sys/socket.h:33:
In file included from /usr/include/aarch64-linux-gnu/bits/socket.h:29:
In file included from /usr/include/aarch64-linux-gnu/sys/types.h:155:
/usr/include/aarch64-linux-gnu/bits/stdint-intn.h:27:19: error: typedef redefinition with different types ('__int64_t' (aka 'long') vs 's64' (aka 'long long'))
typedef __int64_t int64_t;
^
/lib/modules/6.6.15-arm64/source/include/linux/types.h:115:15: note: previous definition is here
typedef s64 int64_t;
^
In file included from tsd.ebpf.c:6:
In file included from ./bpfdefs.h:145:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/bpf.h:31:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/memcontrol.h:22:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/writeback.h:13:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/blk_types.h:10:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/bvec.h:10:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/highmem.h:8:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/cacheflush.h:5:
In file included from /lib/modules/6.6.15-arm64/source/arch/arm64/include/asm/cacheflush.h:11:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/kgdb.h:19:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/kprobes.h:28:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/ftrace.h:23:
In file included from /lib/modules/6.6.15-arm64/source/arch/arm64/include/asm/ftrace.h:52:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/compat.h:16:
In file included from /usr/include/linux/if.h:28:
In file included from /usr/include/aarch64-linux-gnu/sys/socket.h:33:
In file included from /usr/include/aarch64-linux-gnu/bits/socket.h:29:
/usr/include/aarch64-linux-gnu/sys/types.h:161:20: error: typedef redefinition with different types ('__uint64_t' (aka 'unsigned long') vs 'u64' (aka 'unsigned long long'))
typedef __uint64_t u_int64_t;
^
/lib/modules/6.6.15-arm64/source/include/linux/types.h:114:15: note: previous definition is here
typedef u64 u_int64_t;
^
In file included from tsd.ebpf.c:6:
In file included from ./bpfdefs.h:145:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/bpf.h:31:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/memcontrol.h:22:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/writeback.h:13:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/blk_types.h:10:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/bvec.h:10:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/highmem.h:8:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/cacheflush.h:5:
In file included from /lib/modules/6.6.15-arm64/source/arch/arm64/include/asm/cacheflush.h:11:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/kgdb.h:19:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/kprobes.h:28:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/ftrace.h:23:
In file included from /lib/modules/6.6.15-arm64/source/arch/arm64/include/asm/ftrace.h:52:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/compat.h:16:
In file included from /usr/include/linux/if.h:28:
In file included from /usr/include/aarch64-linux-gnu/sys/socket.h:33:
In file included from /usr/include/aarch64-linux-gnu/bits/socket.h:29:
In file included from /usr/include/aarch64-linux-gnu/sys/types.h:179:
In file included from /usr/include/aarch64-linux-gnu/sys/select.h:33:
/usr/include/aarch64-linux-gnu/bits/types/sigset_t.h:7:20: error: typedef redefinition with different types ('__sigset_t' vs 'struct sigset_t')
typedef __sigset_t sigset_t;
^
/lib/modules/6.6.15-arm64/source/include/uapi/asm-generic/signal.h:63:3: note: previous definition is here
} sigset_t;
^
In file included from tsd.ebpf.c:6:
In file included from ./bpfdefs.h:145:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/bpf.h:31:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/memcontrol.h:22:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/writeback.h:13:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/blk_types.h:10:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/bvec.h:10:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/highmem.h:8:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/cacheflush.h:5:
In file included from /lib/modules/6.6.15-arm64/source/arch/arm64/include/asm/cacheflush.h:11:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/kgdb.h:19:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/kprobes.h:28:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/ftrace.h:23:
In file included from /lib/modules/6.6.15-arm64/source/arch/arm64/include/asm/ftrace.h:52:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/compat.h:16:
In file included from /usr/include/linux/if.h:28:
In file included from /usr/include/aarch64-linux-gnu/sys/socket.h:33:
In file included from /usr/include/aarch64-linux-gnu/bits/socket.h:29:
In file included from /usr/include/aarch64-linux-gnu/sys/types.h:179:
/usr/include/aarch64-linux-gnu/sys/select.h:70:5: error: typedef redefinition with different types ('struct fd_set' vs '__kernel_fd_set')
} fd_set;
^
/lib/modules/6.6.15-arm64/source/include/linux/types.h:20:26: note: previous definition is here
typedef __kernel_fd_set fd_set;
^
In file included from tsd.ebpf.c:6:
In file included from ./bpfdefs.h:145:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/bpf.h:31:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/memcontrol.h:22:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/writeback.h:13:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/blk_types.h:10:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/bvec.h:10:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/highmem.h:8:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/cacheflush.h:5:
In file included from /lib/modules/6.6.15-arm64/source/arch/arm64/include/asm/cacheflush.h:11:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/kgdb.h:19:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/kprobes.h:28:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/ftrace.h:23:
In file included from /lib/modules/6.6.15-arm64/source/arch/arm64/include/asm/ftrace.h:52:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/compat.h:16:
In file included from /usr/include/linux/if.h:28:
In file included from /usr/include/aarch64-linux-gnu/sys/socket.h:33:
In file included from /usr/include/aarch64-linux-gnu/bits/socket.h:29:
/usr/include/aarch64-linux-gnu/sys/types.h:192:20: error: typedef redefinition with different types ('__blkcnt_t' (aka 'long') vs 'u64' (aka 'unsigned long long'))
typedef __blkcnt_t blkcnt_t; /* Type to count number of disk blocks. */
^
/lib/modules/6.6.15-arm64/source/include/linux/types.h:132:13: note: previous definition is here
typedef u64 blkcnt_t;
^
In file included from tsd.ebpf.c:6:
In file included from ./bpfdefs.h:145:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/bpf.h:31:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/memcontrol.h:22:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/writeback.h:13:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/blk_types.h:10:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/bvec.h:10:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/highmem.h:8:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/cacheflush.h:5:
In file included from /lib/modules/6.6.15-arm64/source/arch/arm64/include/asm/cacheflush.h:11:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/kgdb.h:19:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/kprobes.h:28:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/ftrace.h:23:
In file included from /lib/modules/6.6.15-arm64/source/arch/arm64/include/asm/ftrace.h:52:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/compat.h:16:
In file included from /usr/include/linux/if.h:28:
In file included from /usr/include/aarch64-linux-gnu/sys/socket.h:33:
/usr/include/aarch64-linux-gnu/bits/socket.h:183:8: error: redefinition of 'sockaddr'
struct sockaddr
^
/lib/modules/6.6.15-arm64/source/include/linux/socket.h:34:8: note: previous definition is here
struct sockaddr {
^
In file included from tsd.ebpf.c:6:
In file included from ./bpfdefs.h:145:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/bpf.h:31:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/memcontrol.h:22:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/writeback.h:13:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/blk_types.h:10:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/bvec.h:10:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/highmem.h:8:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/cacheflush.h:5:
In file included from /lib/modules/6.6.15-arm64/source/arch/arm64/include/asm/cacheflush.h:11:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/kgdb.h:19:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/kprobes.h:28:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/ftrace.h:23:
In file included from /lib/modules/6.6.15-arm64/source/arch/arm64/include/asm/ftrace.h:52:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/compat.h:16:
In file included from /usr/include/linux/if.h:28:
In file included from /usr/include/aarch64-linux-gnu/sys/socket.h:33:
/usr/include/aarch64-linux-gnu/bits/socket.h:196:8: error: redefinition of '__kernel_sockaddr_storage'
struct sockaddr_storage
^
/lib/modules/6.6.15-arm64/source/include/linux/socket.h:47:26: note: expanded from macro 'sockaddr_storage'
#define sockaddr_storage __kernel_sockaddr_storage
^
/lib/modules/6.6.15-arm64/source/include/uapi/linux/socket.h:16:8: note: previous definition is here
struct __kernel_sockaddr_storage {
^
In file included from tsd.ebpf.c:6:
In file included from ./bpfdefs.h:145:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/bpf.h:31:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/memcontrol.h:22:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/writeback.h:13:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/blk_types.h:10:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/bvec.h:10:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/highmem.h:8:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/cacheflush.h:5:
In file included from /lib/modules/6.6.15-arm64/source/arch/arm64/include/asm/cacheflush.h:11:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/kgdb.h:19:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/kprobes.h:28:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/ftrace.h:23:
In file included from /lib/modules/6.6.15-arm64/source/arch/arm64/include/asm/ftrace.h:52:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/compat.h:16:
In file included from /usr/include/linux/if.h:28:
In file included from /usr/include/aarch64-linux-gnu/sys/socket.h:33:
/usr/include/aarch64-linux-gnu/bits/socket.h:207:5: error: expected identifier
MSG_OOB = 0x01, /* Process out-of-band data. */
^
/lib/modules/6.6.15-arm64/source/include/linux/socket.h:303:18: note: expanded from macro 'MSG_OOB'
#define MSG_OOB 1
^
In file included from tsd.ebpf.c:6:
In file included from ./bpfdefs.h:145:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/bpf.h:31:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/memcontrol.h:22:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/writeback.h:13:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/blk_types.h:10:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/bvec.h:10:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/highmem.h:8:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/cacheflush.h:5:
In file included from /lib/modules/6.6.15-arm64/source/arch/arm64/include/asm/cacheflush.h:11:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/kgdb.h:19:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/kprobes.h:28:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/ftrace.h:23:
In file included from /lib/modules/6.6.15-arm64/source/arch/arm64/include/asm/ftrace.h:52:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/compat.h:16:
In file included from /usr/include/linux/if.h:28:
In file included from /usr/include/aarch64-linux-gnu/sys/socket.h:33:
/usr/include/aarch64-linux-gnu/bits/socket.h:209:5: error: expected identifier
MSG_PEEK = 0x02, /* Peek at incoming messages. */
^
/lib/modules/6.6.15-arm64/source/include/linux/socket.h:304:18: note: expanded from macro 'MSG_PEEK'
#define MSG_PEEK 2
^
In file included from tsd.ebpf.c:6:
In file included from ./bpfdefs.h:145:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/bpf.h:31:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/memcontrol.h:22:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/writeback.h:13:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/blk_types.h:10:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/bvec.h:10:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/highmem.h:8:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/cacheflush.h:5:
In file included from /lib/modules/6.6.15-arm64/source/arch/arm64/include/asm/cacheflush.h:11:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/kgdb.h:19:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/kprobes.h:28:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/ftrace.h:23:
In file included from /lib/modules/6.6.15-arm64/source/arch/arm64/include/asm/ftrace.h:52:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/compat.h:16:
In file included from /usr/include/linux/if.h:28:
In file included from /usr/include/aarch64-linux-gnu/sys/socket.h:33:
/usr/include/aarch64-linux-gnu/bits/socket.h:211:5: error: expected identifier
MSG_DONTROUTE = 0x04, /* Don't use local routing. */
^
/lib/modules/6.6.15-arm64/source/include/linux/socket.h:305:23: note: expanded from macro 'MSG_DONTROUTE'
#define MSG_DONTROUTE 4
^
In file included from tsd.ebpf.c:6:
In file included from ./bpfdefs.h:145:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/bpf.h:31:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/memcontrol.h:22:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/writeback.h:13:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/blk_types.h:10:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/bvec.h:10:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/highmem.h:8:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/cacheflush.h:5:
In file included from /lib/modules/6.6.15-arm64/source/arch/arm64/include/asm/cacheflush.h:11:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/kgdb.h:19:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/kprobes.h:28:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/ftrace.h:23:
In file included from /lib/modules/6.6.15-arm64/source/arch/arm64/include/asm/ftrace.h:52:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/compat.h:16:
In file included from /usr/include/linux/if.h:28:
In file included from /usr/include/aarch64-linux-gnu/sys/socket.h:33:
/usr/include/aarch64-linux-gnu/bits/socket.h:218:5: error: expected identifier
MSG_CTRUNC = 0x08, /* Control data lost before delivery. */
^
/lib/modules/6.6.15-arm64/source/include/linux/socket.h:307:20: note: expanded from macro 'MSG_CTRUNC'
#define MSG_CTRUNC 8
^
In file included from tsd.ebpf.c:6:
In file included from ./bpfdefs.h:145:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/bpf.h:31:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/memcontrol.h:22:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/writeback.h:13:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/blk_types.h:10:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/bvec.h:10:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/highmem.h:8:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/cacheflush.h:5:
In file included from /lib/modules/6.6.15-arm64/source/arch/arm64/include/asm/cacheflush.h:11:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/kgdb.h:19:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/kprobes.h:28:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/ftrace.h:23:
In file included from /lib/modules/6.6.15-arm64/source/arch/arm64/include/asm/ftrace.h:52:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/compat.h:16:
In file included from /usr/include/linux/if.h:28:
In file included from /usr/include/aarch64-linux-gnu/sys/socket.h:33:
/usr/include/aarch64-linux-gnu/bits/socket.h:222:5: error: expected identifier
MSG_TRUNC = 0x20,
^
/lib/modules/6.6.15-arm64/source/include/linux/socket.h:309:19: note: expanded from macro 'MSG_TRUNC'
#define MSG_TRUNC 0x20
^
In file included from tsd.ebpf.c:6:
In file included from ./bpfdefs.h:145:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/bpf.h:31:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/memcontrol.h:22:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/writeback.h:13:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/blk_types.h:10:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/bvec.h:10:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/highmem.h:8:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/cacheflush.h:5:
In file included from /lib/modules/6.6.15-arm64/source/arch/arm64/include/asm/cacheflush.h:11:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/kgdb.h:19:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/kprobes.h:28:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/ftrace.h:23:
In file included from /lib/modules/6.6.15-arm64/source/arch/arm64/include/asm/ftrace.h:52:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/compat.h:16:
In file included from /usr/include/linux/if.h:28:
In file included from /usr/include/aarch64-linux-gnu/sys/socket.h:33:
/usr/include/aarch64-linux-gnu/bits/socket.h:224:5: error: expected identifier
MSG_DONTWAIT = 0x40, /* Nonblocking IO. */
^
/lib/modules/6.6.15-arm64/source/include/linux/socket.h:310:22: note: expanded from macro 'MSG_DONTWAIT'
#define MSG_DONTWAIT 0x40 /* Nonblocking io */
^
In file included from tsd.ebpf.c:6:
In file included from ./bpfdefs.h:145:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/bpf.h:31:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/memcontrol.h:22:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/writeback.h:13:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/blk_types.h:10:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/bvec.h:10:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/highmem.h:8:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/cacheflush.h:5:
In file included from /lib/modules/6.6.15-arm64/source/arch/arm64/include/asm/cacheflush.h:11:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/kgdb.h:19:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/kprobes.h:28:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/ftrace.h:23:
In file included from /lib/modules/6.6.15-arm64/source/arch/arm64/include/asm/ftrace.h:52:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/compat.h:16:
In file included from /usr/include/linux/if.h:28:
In file included from /usr/include/aarch64-linux-gnu/sys/socket.h:33:
/usr/include/aarch64-linux-gnu/bits/socket.h:226:5: error: expected identifier
MSG_EOR = 0x80, /* End of record. */
^
/lib/modules/6.6.15-arm64/source/include/linux/socket.h:311:25: note: expanded from macro 'MSG_EOR'
#define MSG_EOR 0x80 /* End of record */
^
In file included from tsd.ebpf.c:6:
In file included from ./bpfdefs.h:145:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/bpf.h:31:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/memcontrol.h:22:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/writeback.h:13:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/blk_types.h:10:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/bvec.h:10:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/highmem.h:8:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/cacheflush.h:5:
In file included from /lib/modules/6.6.15-arm64/source/arch/arm64/include/asm/cacheflush.h:11:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/kgdb.h:19:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/kprobes.h:28:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/ftrace.h:23:
In file included from /lib/modules/6.6.15-arm64/source/arch/arm64/include/asm/ftrace.h:52:
In file included from /lib/modules/6.6.15-arm64/source/include/linux/compat.h:16:
In file included from /usr/include/linux/if.h:28:
In file included from /usr/include/aarch64-linux-gnu/sys/socket.h:33:
/usr/include/aarch64-linux-gnu/bits/socket.h:228:5: error: expected identifier
MSG_WAITALL = 0x100, /* Wait for a full request. */
^
/lib/modules/6.6.15-arm64/source/include/linux/socket.h:312:21: note: expanded from macro 'MSG_WAITALL'
#define MSG_WAITALL 0x100 /* Wait for a full request */
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Makefile:78: tsd.ebpf.o] Error 1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.