From: Alexei Starovoitov <alexei.starovoitov@gmail•com>
To: Chenbo Feng <chenbofeng.kernel@gmail•com>
Cc: netdev@vger•kernel.org, Alexei Starovoitov <ast@fb•com>,
Daniel Borkmann <daniel@iogearbox•net>,
Lorenzo Colitti <lorenzo@google•com>,
Willem de Bruijn <willemb@google•com>,
Chenbo Feng <fengc@google•com>
Subject: Re: [PATCH net-next v4 3/3] A Sample of using socket cookie and uid for traffic monitoring
Date: Mon, 20 Mar 2017 08:56:59 -0700 [thread overview]
Message-ID: <20170320155657.GD80094@ast-mbp.thefacebook.com> (raw)
In-Reply-To: <1489968524-2495-4-git-send-email-chenbofeng.kernel@gmail.com>
On Sun, Mar 19, 2017 at 05:08:44PM -0700, Chenbo Feng wrote:
> From: Chenbo Feng <fengc@google•com>
>
> Add a sample program to demostrate the possible usage of
> get_socket_cookie and get_socket_uid helper function. The program will
> store bytes and packets counting of in/out traffic monitored by iptables
> and store the stats in a bpf map in per socket base. The owner uid of
> the socket will be stored as part of the data entry. A shell script for
> running the program is also included.
>
> Signed-off-by: Chenbo Feng <chenbofeng.kernel@gmail•com>
> ---
> samples/bpf/cookie_uid_helper_example.c | 229 +++++++++++++++++++++++++++
> samples/bpf/libbpf.h | 10 ++
> samples/bpf/run_cookie_uid_helper_example.sh | 14 ++
Makefile update missing?
> + * Compile:
> + * gcc -I ../../usr/include -I ../../tools/lib -I ../../tools/include \
> + * -I ./ -Wall cookie_uid_helper_example.c ../../tools/lib/bpf/bpf.c -o \
> + * perSocketStats_example
this can be part of Makefile and please drop CamelStyle.
prev parent reply other threads:[~2017-03-20 15:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-20 0:08 [PATCH net-next v4 0/3] net: core: Two Helper function about socket information Chenbo Feng
2017-03-20 0:08 ` [PATCH net-next v4 1/3] Add a helper function to get socket cookie in eBPF Chenbo Feng
2017-03-20 15:47 ` Alexei Starovoitov
2017-03-20 15:53 ` Alexei Starovoitov
2017-03-20 0:08 ` [PATCH net-next v4 2/3] Add a eBPF helper function to retrieve socket uid Chenbo Feng
2017-03-20 0:08 ` [PATCH net-next v4 3/3] A Sample of using socket cookie and uid for traffic monitoring Chenbo Feng
2017-03-20 15:56 ` Alexei Starovoitov [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=20170320155657.GD80094@ast-mbp.thefacebook.com \
--to=alexei.starovoitov@gmail$(echo .)com \
--cc=ast@fb$(echo .)com \
--cc=chenbofeng.kernel@gmail$(echo .)com \
--cc=daniel@iogearbox$(echo .)net \
--cc=fengc@google$(echo .)com \
--cc=lorenzo@google$(echo .)com \
--cc=netdev@vger$(echo .)kernel.org \
--cc=willemb@google$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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