Skip to content

[lldb] Conditionalize context_switch attribute based on kernel version #105705

@root-kidik

Description

@root-kidik

I build llvm toolchain with linux-headers 4.2, but get error, while compiling lldb

llvm-project/lldb/source/Plugins/Process/Linux/Perf.cpp:345:8: error: 'struct perf_event_attr' has no member named 'context_switch' attr.context_switch = 1%3b

can we replace or disable this functionality in lldb with older linux-headers?

https://man7.org/linux/man-pages/man2/perf_event_open.2.html
context_switch (since Linux 4.3)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions