Re: [iovisor-dev] [PATCH RFC] bpf: add connection tracking helper functions

2017-09-01 Thread Alexei Starovoitov via iovisor-dev
On Fri, Sep 1, 2017 at 4:30 AM, William Tu wrote: > + > + /* TODO: conntrack expectation */ > + > + nf_ct_zone_init(, info->zone_id, > + NF_CT_DEFAULT_ZONE_DIR, 0); > + tmpl = nf_ct_tmpl_alloc(net, , GFP_KERNEL); did you test with

[iovisor-dev] [PATCH RFC] bpf: add connection tracking helper functions

2017-09-01 Thread William Tu via iovisor-dev
This patch adds two BPF conntrack helper functions, bpf_ct_lookup() and bpf_ct_commit(), to enable the possibility of BPF stateful firewall. There are two ways to implement BPF conntrack. One way is to not rely on helpers but implement the conntrack state table using BPF maps. So conntrack is

Re: [iovisor-dev] nfsslower tool

2017-09-01 Thread Samuel Nair via iovisor-dev
Great. Thanks for the feedback. Submitted the PR ( https://github.com/iovisor/bcc/pull/1331) -sam On Fri, Sep 1, 2017 at 11:09 PM, Brendan Gregg wrote: > G'Day Sam, > > If you're not sure about the script, then I'd start here or with an issue. > But an nfsslower

[iovisor-dev] Rewrite bcc/tools/biotop with C++ language but the outputs are weird

2017-09-01 Thread Weiwei Jia via iovisor-dev
Hi, Recently, I rewrite bcc/tools/biotop with C++ language and the source codes of it are here (https://github.com/HarryWei/bcc/blob/master/examples/cpp/IOMigrater.cc). When I execute it, the processes which do synchronous I/O are not printed out consecutively in a while(1) loop, and I also find