lkml.org 
[lkml]   [2022]   [Oct]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    Subject[PATCH v1 0/8] Update to C11, fix signal undefined behavior
    From
    The use of C11 is mainstream in the kernel [1]. There was some
    confusion on volatile and signal handlers in [2]. Switch to using
    stdatomic.h (requires C11) and sig_atomic_t as per [3]. Thanks to Leo
    Yan <leo.yan@linaro.org> for the suggestions.

    [1] https://lore.kernel.org/lkml/CAHk-=whWbENRz-vLY6vpESDLj6kGUTKO3khGtVfipHqwewh2HQ@mail.gmail.com/
    [2] https://lore.kernel.org/lkml/20221024011024.462518-1-irogers@google.com/
    [3] https://wiki.sei.cmu.edu/confluence/display/c/SIG31-C.+Do+not+access+shared+objects+in+signal+handlers


    Ian Rogers (8):
    perf build: Update to C standard to gnu11
    perf record: Use sig_atomic_t for signal handlers
    perf daemon: Use sig_atomic_t to avoid UB
    perf ftrace: Use sig_atomic_t to avoid UB
    perf session: Change type to avoid UB
    perf stat: Use sig_atomic_t to avoid UB
    perf top: Use sig_atomic_t to avoid UB
    perf trace: Use sig_atomic_t to avoid UB

    tools/perf/Makefile.config | 2 +-
    tools/perf/builtin-daemon.c | 3 ++-
    tools/perf/builtin-ftrace.c | 4 ++--
    tools/perf/builtin-record.c | 9 +++++----
    tools/perf/builtin-stat.c | 9 +++++----
    tools/perf/builtin-top.c | 4 ++--
    tools/perf/builtin-trace.c | 4 ++--
    tools/perf/util/session.c | 3 ++-
    8 files changed, 21 insertions(+), 17 deletions(-)

    --
    2.38.0.135.g90850a2211-goog

    \
     
     \ /
      Last update: 2022-10-24 21:10    [W:3.228 / U:0.152 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site