Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755082AbbEFBoP (ORCPT ); Tue, 5 May 2015 21:44:15 -0400 Received: from mail.kernel.org ([198.145.29.136]:47703 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751336AbbEFBoM (ORCPT ); Tue, 5 May 2015 21:44:12 -0400 Date: Tue, 5 May 2015 22:44:07 -0300 From: Arnaldo Carvalho de Melo To: Masami Hiramatsu Cc: He Kuang , ast@plumgrid.com, davem@davemloft.net, mingo@redhat.com, a.p.zijlstra@chello.nl, jolsa@kernel.org, wangnan0@huawei.com, lizefan@kernel.org, linux-kernel@vger.kernel.org, pi3orama@163.com Subject: Re: [RFC PATCH 0/6] perf bpf: Probing with local variable Message-ID: <20150506014407.GB10475@kernel.org> References: <1430820612-84443-1-git-send-email-hekuang@huawei.com> <55497061.8090903@hitachi.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55497061.8090903@hitachi.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: 838 Lines: 22 Em Wed, May 06, 2015 at 10:37:37AM +0900, Masami Hiramatsu escreveu: > On 2015/05/05 19:10, He Kuang wrote: > > (79) r3 = *(u64 *)(r6 +88) > > (bf) r9 = r3 > > (bf) r2 = r7 > > (bf) r3 = r8 > > (bf) r4 = r9 > Hmm, this idea looks good to me, I need to learn what the bpf needs for review. > BTW, if it is so easily to compose the byte code in perf, can we do it in the > kernel too? I'd like to check the possibility of replacing the old fetch_arg > functions with these byte code for optimizing performance and reduce redundant > functionality. :) Excellent idea! ;-) - Arnaldo -- 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/