This is an archive of the discontinued LLVM Phabricator instance.

[llvm-profgen] Deduplicate PID when processing perf input
ClosedPublic

Authored by wenlei on Oct 7 2021, 9:42 PM.

Details

Summary

When parsing mmap to retrieve PID, deduplicate them before passing PID list to perf script. Perf script would error out when there's duplicated PID in the input, however raw perf data may main duplicated PID for large binary where more than one mmap is needed to load executable segment.

Diff Detail

Event Timeline

wenlei created this revision.Oct 7 2021, 9:42 PM
wenlei requested review of this revision.Oct 7 2021, 9:42 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 7 2021, 9:42 PM
wlei accepted this revision.Oct 7 2021, 10:29 PM

LGTM, thanks!

This revision is now accepted and ready to land.Oct 7 2021, 10:29 PM
hoy accepted this revision.Oct 7 2021, 10:49 PM

lgtm.

This revision was automatically updated to reflect the committed changes.