Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752539AbbEZRxy (ORCPT ); Tue, 26 May 2015 13:53:54 -0400 Received: from mail-pd0-f182.google.com ([209.85.192.182]:36165 "EHLO mail-pd0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752400AbbEZRxv (ORCPT ); Tue, 26 May 2015 13:53:51 -0400 Message-ID: <5564B32C.5010302@plumgrid.com> Date: Tue, 26 May 2015 10:53:48 -0700 From: Alexei Starovoitov User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: He Kuang , wangnan0@huawei.com, paulus@samba.org, a.p.zijlstra@chello.nl, mingo@redhat.com, acme@kernel.org, namhyung@kernel.org, jolsa@kernel.org, masami.hiramatsu.pt@hitachi.com, dsahern@gmail.com, brendan.d.gregg@gmail.com, daniel@iogearbox.net CC: lizefan@huawei.com, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH v2 15/15] samples/bpf: Add sample for no-debuginfo case References: <1432456091-73384-1-git-send-email-hekuang@huawei.com> <1432456091-73384-16-git-send-email-hekuang@huawei.com> In-Reply-To: <1432456091-73384-16-git-send-email-hekuang@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: 599 Lines: 18 On 5/24/15 1:28 AM, He Kuang wrote: > +SEC("generic_perform_write=generic_perform_write $params") > +int NODE_generic_perform_write(struct pt_regs *ctx, > + void *file, > + void *i, > + void *pos) instead: SEC("generic_perform_write(void*, void*, void*)") int prog(struct pt_regs *ctx, void *fild, void *i, void *pos) would be arch-independent. -- 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/