lkml.org 
[lkml]   [2015]   [Nov]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: [PATCH 2/2] arm64: bpf: add BPF XADD instruction
    From
    From: Daniel Borkmann <daniel@iogearbox.net>
    Date: Wed, 11 Nov 2015 19:50:15 +0100

    > Well, on that note, it's not like you just change the target to bpf
    > in your Makefile and can compile (& load into the kernel) anything
    > you want with it. You do have to write small, restricted programs
    > from scratch for a specific use-case with the limited set of helper
    > functions and intrinsics that are available from the kernel. So I
    > don't think that "Programs that used to work will now no longer
    > work." holds if you regard it as such.

    +1

    Strict C language semantics do not apply here at all, we are talking
    about purposfully built modules of "C like" code that have any
    semantics we want and make the most sense for us.

    Maybe BPF_XADD is unfortunately named, but this is tangental to
    our ability to choose what atomic operations mean and what semantics
    they match up to.


    \
     
     \ /
      Last update: 2015-11-11 20:21    [W:2.473 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site