Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp428562ybi; Fri, 24 May 2019 06:08:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqy0EowHHY9azXudENvhVdWW2Gdywq9VvOkHcagvoGMXjYgeTALOOxq7Wn6qJ1GoEVySPlTs X-Received: by 2002:a17:90a:8982:: with SMTP id v2mr9003674pjn.138.1558703288562; Fri, 24 May 2019 06:08:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558703288; cv=none; d=google.com; s=arc-20160816; b=ooat83JxR8nN4Dayi0yulaOnX8Ftl8PHoVP4J+ZN/VJGqSFcLtDX4hZTSbpqHFdzD9 CbSnY1I3/J3NlvzS/APa0/FsHIYWY3KE89w2bDv1a46abVcBagzQV5Z2BnVZihcmt5gh CtpWY805lh1DfkiUFG3SuYRxVR24RauYdk07NOGjIPVD36YMYWeeVeDFquGUOUiD7nK2 ie8isIg9XnshS6mEqSNpOGxcSIWrlBuu8IcJZpEU6x9wydCmg4ocqvTRBKxf/kiLmdam 4Qq24bhnAxj+rEJ7MUz4S6Kae1D8R/Y/T9qvVD54mIWWRmAVGSA9jGrY+PzHdSFFqHek gGng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=26m+IAwcFhtYlFzp8fWKq8NVgHVQMcB9sHaW0nmYf9Y=; b=cto2cRHfkVUy3bBnG1z4senWKCfGm0+EYYHS2XyF38Ou5tL6CXSlYTwAjuF3nWICpG bFvZ4Yzi5fXOCgMq3IjqatUeFXncUVCIMLSfH+g5Lw2Rzl2ba9LPaiQySYNeqU/CcYYh S1c6DS46UZG+X3rj4OQEAv1VcajdUtaMh/6tayC7iGTTYxbx/B1uo7JlZS5BAEuFagP3 ZZOudNTr9LyivrWsO8q/oDrViEyaPd+g2BvDyQT4qQeZzHVEXgDWM4/aKE40GtQ/HgUO WBIPITTIvi7dOpsSjZX8msjz4bsqGmXJ8gK7qQ7nxCDGj6hFTbDGdaxac4OAie3cqyME /7tQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w12si4446653pgl.310.2019.05.24.06.07.51; Fri, 24 May 2019 06:08:08 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391525AbfEXNGB (ORCPT + 99 others); Fri, 24 May 2019 09:06:01 -0400 Received: from mx1.redhat.com ([209.132.183.28]:29648 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391193AbfEXNGB (ORCPT ); Fri, 24 May 2019 09:06:01 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0561E308338F; Fri, 24 May 2019 13:06:01 +0000 (UTC) Received: from treble (ovpn-121-106.rdu2.redhat.com [10.10.121.106]) by smtp.corp.redhat.com (Postfix) with ESMTPS id EEC6F68706; Fri, 24 May 2019 13:05:59 +0000 (UTC) Date: Fri, 24 May 2019 08:05:57 -0500 From: Josh Poimboeuf To: Peter Zijlstra Cc: Kairui Song , Alexei Starovoitov , Song Liu , lkml , Kernel Team , Alexei Starovoitov , Daniel Borkmann , "bpf@vger.kernel.org" Subject: Re: Getting empty callchain from perf_callchain_kernel() Message-ID: <20190524130557.icmofltzzotqvurg@treble> References: <20190522140233.GC16275@worktop.programming.kicks-ass.net> <20190522174517.pbdopvookggen3d7@treble> <20190522234635.a47bettklcf5gt7c@treble> <20190523133253.tad6ywzzexks6hrp@treble> <20190523152413.m2pbnamihu3s2c5s@treble> <20190524085319.GE2589@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190524085319.GE2589@hirez.programming.kicks-ass.net> User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.44]); Fri, 24 May 2019 13:06:01 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 24, 2019 at 10:53:19AM +0200, Peter Zijlstra wrote: > On Thu, May 23, 2019 at 10:24:13AM -0500, Josh Poimboeuf wrote: > > > Here's the latest version which should fix it in all cases (based on > > tip/master): > > > > https://git.kernel.org/pub/scm/linux/kernel/git/jpoimboe/linux.git/commit/?h=bpf-orc-fix > > That patch suffers an inconsitency, the comment states: > > 'if they have "jump_table" in the name' > > while the actual code implements: > > 'if the name starts with "jump_table"' > > Other than that, I suppose that works just fine ;-) The thing is, gcc converts a static local variable named "jump_table" to an ELF symbol with a numbered suffix, something like "jump_table.12345". But yeah I should at least clarify that in the comment. -- Josh