Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031576AbbKDWYF (ORCPT ); Wed, 4 Nov 2015 17:24:05 -0500 Received: from mail.kernel.org ([198.145.29.136]:46662 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030434AbbKDWYC (ORCPT ); Wed, 4 Nov 2015 17:24:02 -0500 Date: Wed, 4 Nov 2015 19:23:58 -0300 From: Arnaldo Carvalho de Melo To: Wang Nan Cc: namhyung@kernel.org, lizefan@huawei.com, pi3orama@163.com, linux-kernel@vger.kernel.org, He Kuang Subject: Re: [PATCH 3/4] perf test: Enforce LLVM test: update basic BPF test program Message-ID: <20151104222358.GN13236@kernel.org> References: <1446636007-239722-1-git-send-email-wangnan0@huawei.com> <1446636007-239722-4-git-send-email-wangnan0@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1446636007-239722-4-git-send-email-wangnan0@huawei.com> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1679 Lines: 35 Em Wed, Nov 04, 2015 at 11:20:06AM +0000, Wang Nan escreveu: > This patch replaces the original toy BPF program with previous introduced > bpf-script-example.c. Dynamically embedded it into 'llvm-src-base.c'. > > The newly introduced BPF program attaches a BPF program to > 'sys_epoll_pwait()'. perf itself never use that syscall, so further test > can verify their result with it. The program would generate 1 sample > in every 2 calls of epoll_pwait() system call. > > Since the resuling BPF object is useful, test_llvm__fetch_bpf_obj() is > introduced for creating BPF objects for source. llvm test is rewritten > according to it. [acme@zoo linux]$ am /wb/1.patch Applying: perf test: Enforce LLVM test: update basic BPF test program /home/acme/git/linux/.git/rebase-apply/patch:149: space before tab in indent. *p_obj_buf = NULL; /home/acme/git/linux/.git/rebase-apply/patch:150: space before tab in indent. *p_obj_buf_sz = 0; error: patch failed: tools/perf/tests/llvm.c:28 error: tools/perf/tests/llvm.c: patch does not apply Patch failed at 0001 perf test: Enforce LLVM test: update basic BPF test program The copy of the patch that failed is found in: /home/acme/git/linux/.git/rebase-apply/patch When you have resolved this problem, run "git am --continue". If you prefer to skip this patch, run "git am --skip" instead. To restore the original branch and stop patching, run "git am --abort". [acme@zoo linux]$ -- 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/