Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752113AbbHLXj2 (ORCPT ); Wed, 12 Aug 2015 19:39:28 -0400 Received: from shards.monkeyblade.net ([149.20.54.216]:60715 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751495AbbHLXj1 (ORCPT ); Wed, 12 Aug 2015 19:39:27 -0400 Date: Wed, 12 Aug 2015 16:39:26 -0700 (PDT) Message-Id: <20150812.163926.1443596955889419582.davem@davemloft.net> To: xiakaixu@huawei.com Cc: daniel@iogearbox.net, ast@plumgrid.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, wangnan0@huawei.com, pi3orama@163.com Subject: Re: [PATCH net-next] bpf: fix build warnings and add function read_trace_pipe() From: David Miller In-Reply-To: <1439372273-69958-1-git-send-email-xiakaixu@huawei.com> References: <1439372273-69958-1-git-send-email-xiakaixu@huawei.com> X-Mailer: Mew version 6.6 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Wed, 12 Aug 2015 16:39:27 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1394 Lines: 32 From: Kaixu Xia 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 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/