Searched hist:"61 a0abae" (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/kernel/bpf/ |
H A D | trampoline.c | 61a0abae Tue Oct 26 16:41:33 CDT 2021 Eric Dumazet <edumazet@google.com> bpf: Use u64_stats_t in struct bpf_prog_stats
Commit 316580b69d0a ("u64_stats: provide u64_stats_t type") fixed possible load/store tearing on 64bit arches.
For instance the following C code
stats->nsecs += sched_clock() - start;
Could be rightfully implemented like this by a compiler, confusing concurrent readers a lot:
stats->nsecs += sched_clock(); // arbitrary delay stats->nsecs -= start;
Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20211026214133.3114279-4-eric.dumazet@gmail.com
|
H A D | syscall.c | 61a0abae Tue Oct 26 16:41:33 CDT 2021 Eric Dumazet <edumazet@google.com> bpf: Use u64_stats_t in struct bpf_prog_stats
Commit 316580b69d0a ("u64_stats: provide u64_stats_t type") fixed possible load/store tearing on 64bit arches.
For instance the following C code
stats->nsecs += sched_clock() - start;
Could be rightfully implemented like this by a compiler, confusing concurrent readers a lot:
stats->nsecs += sched_clock(); // arbitrary delay stats->nsecs -= start;
Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20211026214133.3114279-4-eric.dumazet@gmail.com
|
/openbmc/linux/include/linux/ |
H A D | filter.h | 61a0abae Tue Oct 26 16:41:33 CDT 2021 Eric Dumazet <edumazet@google.com> bpf: Use u64_stats_t in struct bpf_prog_stats
Commit 316580b69d0a ("u64_stats: provide u64_stats_t type") fixed possible load/store tearing on 64bit arches.
For instance the following C code
stats->nsecs += sched_clock() - start;
Could be rightfully implemented like this by a compiler, confusing concurrent readers a lot:
stats->nsecs += sched_clock(); // arbitrary delay stats->nsecs -= start;
Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20211026214133.3114279-4-eric.dumazet@gmail.com
|