Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1206415

Re: [PATCH net-next] bpf: fix build warnings and add function read_trace_pipe()

From David Miller <davem@davemloft.net>
Newsgroups linux.kernel
Subject Re: [PATCH net-next] bpf: fix build warnings and add function read_trace_pipe()
Date 2015-08-13 01:40 +0200
Message-ID <pWNMK-2tG-13@gated-at.bofh.it> (permalink)
References <pWAFQ-px-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Kaixu Xia <xiakaixu@huawei.com>
Date: Wed, 12 Aug 2015 09:37:53 +0000

> There are two improvements in this patch:
>  1. Fix the build warnings;
>  2. Add function read_trace_pipe() to print the result on
>     the screen;
> 
> Before this patch, we can get the result through /sys/kernel/de
> bug/tracing/trace_pipe and get nothing on the screen.
> By applying this patch, the result can be printed on the screen.
>   $ ./tracex6
> 	...
>          tracex6-705   [003] d..1   131.428593: : CPU-3   19981414
>             sshd-683   [000] d..1   131.428727: : CPU-0   221682321
>             sshd-683   [000] d..1   131.428821: : CPU-0   221808766
>             sshd-683   [000] d..1   131.428950: : CPU-0   221982984
>             sshd-683   [000] d..1   131.429045: : CPU-0   222111851
>          tracex6-705   [003] d..1   131.429168: : CPU-3   20757551
>             sshd-683   [000] d..1   131.429170: : CPU-0   222281240
>             sshd-683   [000] d..1   131.429261: : CPU-0   222403340
>             sshd-683   [000] d..1   131.429378: : CPU-0   222561024
> 	...
> 
> Signed-off-by: Kaixu Xia <xiakaixu@huawei.com>

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH net-next] bpf: fix build warnings and add function read_trace_pipe() Kaixu Xia <xiakaixu@huawei.com> - 2015-08-12 11:40 +0200
  Re: [PATCH net-next] bpf: fix build warnings and add function  read_trace_pipe() Alexei Starovoitov <ast@plumgrid.com> - 2015-08-12 18:30 +0200
  Re: [PATCH net-next] bpf: fix build warnings and add function  read_trace_pipe() David Miller <davem@davemloft.net> - 2015-08-13 01:40 +0200

csiph-web