Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932619AbbHLQ0F (ORCPT ); Wed, 12 Aug 2015 12:26:05 -0400 Received: from mail-pa0-f42.google.com ([209.85.220.42]:36277 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752588AbbHLQ0D (ORCPT ); Wed, 12 Aug 2015 12:26:03 -0400 Subject: Re: [PATCH net-next] bpf: fix build warnings and add function read_trace_pipe() To: Kaixu Xia , daniel@iogearbox.net, davem@davemloft.net References: <1439372273-69958-1-git-send-email-xiakaixu@huawei.com> Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, wangnan0@huawei.com, pi3orama@163.com From: Alexei Starovoitov Message-ID: <55CB7392.4070701@plumgrid.com> Date: Wed, 12 Aug 2015 09:25:54 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <1439372273-69958-1-git-send-email-xiakaixu@huawei.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1404 Lines: 32 On 8/12/15 2:37 AM, Kaixu Xia wrote: > 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 thanks! Acked-by: Alexei Starovoitov -- 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/