You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by "jelipo (via GitHub)" <gi...@apache.org> on 2023/04/03 17:23:06 UTC

[GitHub] [skywalking-rover] jelipo commented on pull request #87: replace the way to get tgid and pid

jelipo commented on PR #87:
URL: https://github.com/apache/skywalking-rover/pull/87#issuecomment-1494703190

   This "_" macro uses the `bpf_probe_read` function to read memory, and the `bpf_probe_read` function will have additional bounds checks and memory copying.
   https://github.com/apache/skywalking-rover/blob/main/bpf/include/api.h#L37
   
   `bpf_get_current_pid_tgid` is a function specially used to obtain tgid and pid in the ebpf program, and has less performance loss.
   https://elixir.bootlin.com/linux/latest/source/kernel/bpf/helpers.c#L216


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org