Skip to content

Commit

Permalink
add vdso to the pprof blocklist (#12201) (#12209)
Browse files Browse the repository at this point in the history
close #9765, ref #12201

Signed-off-by: ti-srebot <ti-srebot@pingcap.com>

Co-authored-by: YangKeao <yangkeao@chunibyo.icu>
  • Loading branch information
ti-srebot and YangKeao committed Mar 22, 2022
1 parent ab9bb00 commit 5b59a1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/status_server/profile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ where
let on_start = || {
let guard = pprof::ProfilerGuardBuilder::default()
.frequency(frequency)
.blocklist(&["libc", "libgcc", "pthread"])
.blocklist(&["libc", "libgcc", "pthread", "vdso"])
.build()
.map_err(|e| format!("pprof::ProfilerGuardBuilder::build fail: {}", e))?;
Ok(guard)
Expand Down

0 comments on commit 5b59a1e

Please sign in to comment.