From: "Wangnan (F)" <wangnan0@huawei.com>
To: Joe Stringer <joe@ovn.org>, <linux-kernel@vger.kernel.org>
Cc: <netdev@vger.kernel.org>, <ast@fb.com>, <daniel@iogearbox.net>,
<acme@kernel.org>
Subject: Re: [PATCHv2 perf/core 1/2] tools lib bpf: Sync {tools,}/include/uapi/linux/bpf.h
Date: Thu, 17 Nov 2016 09:28:00 +0800 [thread overview]
Message-ID: <582D07A0.3050003@huawei.com> (raw)
In-Reply-To: <20161116174324.29675-2-joe@ovn.org>
On 2016/11/17 1:43, Joe Stringer wrote:
> The tools version of this header is out of date; update it to the latest
> version from the kernel headers.
>
> Signed-off-by: Joe Stringer <joe@ovn.org>
> ---
> v2: No change.
> ---
> tools/include/uapi/linux/bpf.h | 51 ++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 51 insertions(+)
Acked-by: Wang Nan <wangnan0@huawei.com>
> diff --git a/tools/include/uapi/linux/bpf.h b/tools/include/uapi/linux/bpf.h
> index 9e5fc168c8a3..f09c70b97eca 100644
> --- a/tools/include/uapi/linux/bpf.h
> +++ b/tools/include/uapi/linux/bpf.h
> @@ -95,6 +95,7 @@ enum bpf_prog_type {
> BPF_PROG_TYPE_SCHED_ACT,
> BPF_PROG_TYPE_TRACEPOINT,
> BPF_PROG_TYPE_XDP,
> + BPF_PROG_TYPE_PERF_EVENT,
> };
>
> #define BPF_PSEUDO_MAP_FD 1
> @@ -375,6 +376,56 @@ enum bpf_func_id {
> */
> BPF_FUNC_probe_write_user,
>
> + /**
> + * bpf_current_task_under_cgroup(map, index) - Check cgroup2 membership of current task
> + * @map: pointer to bpf_map in BPF_MAP_TYPE_CGROUP_ARRAY type
> + * @index: index of the cgroup in the bpf_map
> + * Return:
> + * == 0 current failed the cgroup2 descendant test
> + * == 1 current succeeded the cgroup2 descendant test
> + * < 0 error
> + */
> + BPF_FUNC_current_task_under_cgroup,
> +
> + /**
> + * bpf_skb_change_tail(skb, len, flags)
> + * The helper will resize the skb to the given new size,
> + * to be used f.e. with control messages.
> + * @skb: pointer to skb
> + * @len: new skb length
> + * @flags: reserved
> + * Return: 0 on success or negative error
> + */
> + BPF_FUNC_skb_change_tail,
> +
> + /**
> + * bpf_skb_pull_data(skb, len)
> + * The helper will pull in non-linear data in case the
> + * skb is non-linear and not all of len are part of the
> + * linear section. Only needed for read/write with direct
> + * packet access.
> + * @skb: pointer to skb
> + * @len: len to make read/writeable
> + * Return: 0 on success or negative error
> + */
> + BPF_FUNC_skb_pull_data,
> +
> + /**
> + * bpf_csum_update(skb, csum)
> + * Adds csum into skb->csum in case of CHECKSUM_COMPLETE.
> + * @skb: pointer to skb
> + * @csum: csum to add
> + * Return: csum on success or negative error
> + */
> + BPF_FUNC_csum_update,
> +
> + /**
> + * bpf_set_hash_invalid(skb)
> + * Invalidate current skb>hash.
> + * @skb: pointer to skb
> + */
> + BPF_FUNC_set_hash_invalid,
> +
> __BPF_FUNC_MAX_ID,
> };
>
next prev parent reply other threads:[~2016-11-17 1:28 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-16 17:43 [PATCHv2 perf/core 0/2] libbpf: Synchronize implementations Joe Stringer
2016-11-16 17:43 ` [PATCHv2 perf/core 1/2] tools lib bpf: Sync {tools,}/include/uapi/linux/bpf.h Joe Stringer
2016-11-17 1:28 ` Wangnan (F) [this message]
2016-11-16 17:43 ` [PATCHv2 perf/core 2/2] tools lib bpf: Sync with samples/bpf/libbpf Joe Stringer
2016-11-17 2:10 ` Wangnan (F)
2016-11-17 2:46 ` Joe Stringer
2016-11-17 3:21 ` Wangnan (F)
2016-11-17 3:40 ` Joe Stringer
2016-11-17 3:39 ` Wangnan (F)
2016-11-17 3:53 ` Joe Stringer
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=582D07A0.3050003@huawei.com \
--to=wangnan0@huawei.com \
--cc=acme@kernel.org \
--cc=ast@fb.com \
--cc=daniel@iogearbox.net \
--cc=joe@ovn.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).