BPF List
 help / color / mirror / Atom feed
From: Steven Rostedt <rostedt@goodmis.org>
To: Song Liu <songliubraving@fb.com>
Cc: Matt Mullins <mmullins@fb.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"daniel@iogearbox.net" <daniel@iogearbox.net>,
	"bpf@vger.kernel.org" <bpf@vger.kernel.org>,
	"ast@kernel.org" <ast@kernel.org>, Andrew Hall <hall@fb.com>,
	"mingo@redhat.com" <mingo@redhat.com>,
	"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
	Martin Lau <kafai@fb.com>, Yonghong Song <yhs@fb.com>
Subject: Re: [PATCH bpf] bpf: preallocate a perf_sample_data per event fd
Date: Sat, 8 Jun 2019 16:39:33 -0400	[thread overview]
Message-ID: <20190608163933.50033e9f@oasis.local.home> (raw)
In-Reply-To: <C9035893-C2C6-4051-BF19-9AC931D475ED@fb.com>

On Fri, 31 May 2019 05:26:30 +0000
Song Liu <songliubraving@fb.com> wrote:

> We can also do something like
> 
>    ee = kzalloc(sizeof(struct bpf_event_entry) + sizeof(struct perf_sample_data));
>    ee->sd = (void *)ee + sizeof(struct bpf_event_entry);

Or perhaps:

	ee->sd = (struct perf_sample_data *)(ee + 1);

-- Steve

      reply	other threads:[~2019-06-08 20:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-30 22:55 [PATCH bpf] bpf: preallocate a perf_sample_data per event fd Matt Mullins
2019-05-30 23:28 ` Song Liu
2019-05-31  0:01   ` Matt Mullins
2019-05-31  5:26     ` Song Liu
2019-06-08 20:39       ` Steven Rostedt [this message]

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

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

  git send-email \
    --in-reply-to=20190608163933.50033e9f@oasis.local.home \
    --to=rostedt@goodmis.org \
    --cc=ast@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=hall@fb.com \
    --cc=kafai@fb.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=mmullins@fb.com \
    --cc=netdev@vger.kernel.org \
    --cc=songliubraving@fb.com \
    --cc=yhs@fb.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox