LKML Archive on
help / color / mirror / Atom feed
From: Yabin Cui <>
To: Peter Zijlstra <>,
	Ingo Molnar <>,
	Arnaldo Carvalho de Melo <>,
	Alexander Shishkin <>,
	Jiri Olsa <>, Namhyung Kim <>
Cc:, Yabin Cui <>
Subject: Re: [PATCH] perf/ring_buffer: Fix exposing a temporarily decreased data_head.
Date: Thu, 16 May 2019 11:37:47 -0700	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

>Indeed, good catch! Have you observed this, or is this patch due to code

I observed this. I was using perf_event_open instead of linux tools perf
to monitor a process continuously forking new processes, generating a lot
of mmap records. And a sample record happens while generating a mmap record.

For missing barriers, I thought local_xxx provided implied barriers. But
I found atomic_ops.txt said not. Thanks for reminding! I will add them in
path v2.

I also think it's a good idea to use READ_ONCE/WRITE_ONCE for rb->nest. Will
use it in patch v2.

  reply	other threads:[~2019-05-16 18:38 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-15  0:30 Yabin Cui
2019-05-15  6:51 ` Alexander Shishkin
2019-05-15  9:43   ` Peter Zijlstra
2019-05-15 10:04     ` Alexander Shishkin
2019-05-15 10:51       ` Peter Zijlstra
2019-05-15 10:48 ` Peter Zijlstra
2019-05-16 18:37   ` Yabin Cui [this message]
2019-05-16 18:40 ` [PATCH v2] " Yabin Cui
2019-05-17  8:47   ` Peter Zijlstra
2019-05-17 17:59     ` [PATCH] " Yabin Cui

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \ \ \
    --subject='Re: [PATCH] perf/ring_buffer: Fix exposing a temporarily decreased data_head.' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).