This is an archive of the discontinued LLVM Phabricator instance.

WIP strawman building perf.cpp on an older kernel
AbandonedPublic

Authored by DavidSpickett on Sep 13 2022, 2:22 AM.

Details

Reviewers
None

Diff Detail

Event Timeline

DavidSpickett created this revision.Sep 13 2022, 2:22 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 13 2022, 2:22 AM
DavidSpickett requested review of this revision.Sep 13 2022, 2:22 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 13 2022, 2:22 AM
DavidSpickett planned changes to this revision.Sep 13 2022, 2:23 AM
DavidSpickett added inline comments.
lldb/source/Plugins/Process/Linux/Perf.cpp
28

Use this sort of thing, or an ifdef set by cmake.

labath added a subscriber: labath.Sep 13 2022, 7:52 AM

(This file is only used for the processor trace feature, and one can debug just fine without it. So, I'd just conditionally compile out the processor trace support on older kernels -- it's highly questionable whether this works there anyway).