Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redefine asm_inline for Linux 5.4+, Fixes #2546 #2547

Merged
merged 1 commit into from
Oct 11, 2019

Commits on Oct 10, 2019

  1. Redefine asm_inline for Linux 5.4+, Fixes iovisor#2546

    Here's the upstream commit that introduced `asm_inline`:
    
    * torvalds/linux@eb11186
    
    Without this patch BCC fails with the following:
    
    ```
    $ sudo /usr/share/bcc/tools/opensnoop
    In file included from /virtual/main.c:2:
    In file included from include/uapi/linux/ptrace.h:142:
    In file included from ./arch/x86/include/asm/ptrace.h:5:
    ./arch/x86/include/asm/segment.h:254:2: error: expected '(' after 'asm'
            alternative_io ("lsl %[seg],%[p]",
            ^
    ./arch/x86/include/asm/alternative.h:240:2: note: expanded from macro 'alternative_io'
            asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, feature)   \
            ^
    include/linux/compiler_types.h:210:24: note: expanded from macro 'asm_inline'
                           ^
    ```
    bobrik committed Oct 10, 2019
    Configuration menu
    Copy the full SHA
    6c853f6 View commit details
    Browse the repository at this point in the history