Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1762665ybh; Sun, 15 Mar 2020 10:24:24 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvfUIIWQi3gwHc5tWdiSp99HYTHAsufI6u/XbEXV6fzGAP0ZySHCbTxKR+vTKlApljFTxqy X-Received: by 2002:a05:6830:210d:: with SMTP id i13mr20022664otc.104.1584293064733; Sun, 15 Mar 2020 10:24:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584293064; cv=none; d=google.com; s=arc-20160816; b=INUzNGSYmHuHlJSNqSnjKilxVRmGunR5WMdXRs89oaGk0BaCughXuYmyl39ZjWJ2uS 8+O5jciTlVdDjEAuVQK6iD6PBJQ86DDKoRH+3vCoja98LewqseXm1pHc61m/bLLWOplI 2SsXM1oZSK+IuDbWw3C+HohJBJ+KZXTo3qkS2M/6IIha90Z3GqvaD3kIwtwMNrwtgdqc UwXdix37cycPcb8wWGMwjg6cXMTihVdKbyQ92RyUSx9b/XexEw313++XACNl9Uk33jhR nfUD1iLzmRaGCgWLVB1VJkUsPvg6o1s2MxnxYWwGR+SxHtg1rcU9CtyCg9krxWIBqIBl m6ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=ZHiQ/FbU3EdxXuqVxa5G2UB3JyQ0NaBOT17ObRpJXD0=; b=lWTIR2Bt6tlR0PhX+L7jG/3h5sgnYyhf4LFn6EDZFjn55yoO9aMAbBPjP1KjxIbSmb FfbOy6wq/nMd1rTtazRImXWdohfdd28NBIxK4XPd6S/OiljOhpW7cRov7ydZLe96NNpF HlLhnJsmogspK1++Y2/iy4kmdHJUETb1LwFsdSG2QOVFVAbwzrr738EkKd96bb/dvVjm Lnreo0+kC8SsbXmRuEEnCoMCvTcMumPaX6sslfhKdHtypVI0XbUoS+mva+G9TF6HwFNV hUk+FPA135az3R7WxCEtgxB/iSsFhSuhdtueX6fbCH/6XcPkdeAZGt9wD7kwiu/gZH6k OQrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pUiKBfaI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s5si6591340oie.153.2020.03.15.10.24.11; Sun, 15 Mar 2020 10:24:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pUiKBfaI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728988AbgCORX6 (ORCPT + 99 others); Sun, 15 Mar 2020 13:23:58 -0400 Received: from mail-qv1-f68.google.com ([209.85.219.68]:45761 "EHLO mail-qv1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728628AbgCORX5 (ORCPT ); Sun, 15 Mar 2020 13:23:57 -0400 Received: by mail-qv1-f68.google.com with SMTP id h20so3595722qvr.12; Sun, 15 Mar 2020 10:23:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ZHiQ/FbU3EdxXuqVxa5G2UB3JyQ0NaBOT17ObRpJXD0=; b=pUiKBfaIwyeOAXGDP0+mpHpCwhrIA6jU6+lpo/JkovuqgMPgvdOZOaNoYOcLgTRICe FqPyH+LGL4bnSMwlwJ5s+fPVAJk46d3DB2t9hTa84R5DJQ7zFnpRbjvOzS1F9PXHH36u DHshudx7MQKMf2ycEPJMluDcvGF/oJ/XJD5veKve3pnhU1AZhARUDYvmwP5x3dlEPN8g E7FwS58HNbxdfNyIVGpwz3Jllq6z2dTjwsC6A8X/8mW3CJIPdaoE60BPNl0v87t7VNMk fw1VPJno8tHti1dToI/binHShA2Ci6u0wvwZejXa9gdKDRov/Kfn8t8qMpIGdeTGTQPa wgpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ZHiQ/FbU3EdxXuqVxa5G2UB3JyQ0NaBOT17ObRpJXD0=; b=cg7Q6HIhdL0EunPteajHhIonH51/CCMmD4vyKWwYXZZekTH54L0KKZsh2z+GnEstFr BpU3A5pG+A/wUL65sjCmppHcna4TQLH8FScr1eTH2V/RuNwiramEO8QsBIv6wqV3tNuc d+/cYOw2XqACU6WUUJ1YP3bXGLq7rSlwz0c5NyDPZ5gyag0TMF8pxciHJltK48dLQF9h xqEUwsIZTqVhuyJSSETHpsEEx82xH5/zIeQE/hH1kwtcub6wvQEUSc+Q2K7wL8g3xvnU iNH3VIWJmHPnUrpDTzLISCF5fYdTFjWURk7mFuUrVGYpUnB7LmG8+jApZqS0eV1xMjX3 v1UQ== X-Gm-Message-State: ANhLgQ0cYA1CZUQxAWyyHdztgdIO5z7ia4Ex9Vn57GcQ2qc4VjZBR+5h IhMnzMabga9m9uIP9JzcA1mdZXXwpX+KpP2QuV0= X-Received: by 2002:a0c:ecc3:: with SMTP id o3mr22113047qvq.163.1584293036467; Sun, 15 Mar 2020 10:23:56 -0700 (PDT) MIME-Version: 1.0 References: <20200315083252.22274-1-ethercflow@gmail.com> In-Reply-To: <20200315083252.22274-1-ethercflow@gmail.com> From: Andrii Nakryiko Date: Sun, 15 Mar 2020 10:23:45 -0700 Message-ID: Subject: Re: [PATCH] bpf: Fix ___bpf_kretprobe_args1(x) macro definition. To: Wenbo Zhang Cc: Alexei Starovoitov , Daniel Borkmann , Networking , bpf , open list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 15, 2020 at 1:33 AM Wenbo Zhang wrote: > > Use PT_REGS_RC instead of PT_REGS_RET to get ret currectly. > > Signed-off-by: Wenbo Zhang > --- Thanks! Fixes: df8ff35311c8 ("libbpf: Merge selftests' bpf_trace_helpers.h into libbpf's bpf_tracing.h") Acked-by: Andrii Nakryiko > tools/lib/bpf/bpf_tracing.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/lib/bpf/bpf_tracing.h b/tools/lib/bpf/bpf_tracing.h > index b0c9ae5c73b5..f3f3c3fb98cb 100644 > --- a/tools/lib/bpf/bpf_tracing.h > +++ b/tools/lib/bpf/bpf_tracing.h > @@ -390,7 +390,7 @@ ____##name(struct pt_regs *ctx, ##args) > > #define ___bpf_kretprobe_args0() ctx > #define ___bpf_kretprobe_args1(x) \ > - ___bpf_kretprobe_args0(), (void *)PT_REGS_RET(ctx) > + ___bpf_kretprobe_args0(), (void *)PT_REGS_RC(ctx) > #define ___bpf_kretprobe_args(args...) \ > ___bpf_apply(___bpf_kretprobe_args, ___bpf_narg(args))(args) > > -- > 2.17.1 >