facebookincubator / dynolog

Dynolog is a telemetry daemon for performance monitoring and tracing. It exports metrics from different components in the system like the linux kernel, CPU, disks, Intel PT, GPUs etc. Dynolog also integrates with pytorch and can trigger traces for distributed training applications.
MIT License
188 stars 34 forks source link

bperf: Use tp_btf instead of raw_tp event #198

Closed liu-song-6 closed 7 months ago

liu-song-6 commented 7 months ago

Summary: This will make the context switch a little faster. Note that we cannot use BPF_PROG_TEST_RUN on tp_btf program. To do the BPF_PROG_TEST_RUN (gather running data to bpf maps on read), we need another raw_tp program, which is not attached, but only used for BPF_PROG_TEST_RUN.

Also, rename the programs as bperf_on_sched_switch and bperf_read_trigger to be more clear that these program belongs to bperf.

Differential Revision: D51870606

facebook-github-bot commented 7 months ago

This pull request was exported from Phabricator. Differential Revision: D51870606

facebook-github-bot commented 7 months ago

This pull request was exported from Phabricator. Differential Revision: D51870606

facebook-github-bot commented 7 months ago

This pull request has been merged in facebookincubator/dynolog@6e11d89c10625657a06fe2c8ebf41c133991431f.