Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5937855ybi; Wed, 12 Jun 2019 11:02:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqztWvCs1c+B4WH3Y8jOL8VVE4ia+vX45HehDCR8PPlMMOlHBMx1jsd26jpP7kQeFCSOiANF X-Received: by 2002:a17:90a:7107:: with SMTP id h7mr474270pjk.38.1560362540843; Wed, 12 Jun 2019 11:02:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560362540; cv=none; d=google.com; s=arc-20160816; b=E6TuPSx4K7QO1rn0LudHN+F1vIiS6hETUL+TPlzJanvJBxTbIQGYTAL5xqVAyZq3pq h6vnC0ENPLBNXKQ9+EzaewRvtoTPaN7PDpqEadCUiFjE2+yWjtNFp0wq++V+MEeYZy6L iVteCgJ8tG0aR2kJ17OeOzczYC33w2mYOzau8G+DHS9beACAx+azpYRqV3tVMtz6xAhh /KVep16JSMgEZ4MCXI6sD8+6/AyT0+5cQWlAnu/9gdOkf3z30MwdXWTto6VJaLdvlteC tWcZLtdHf2dM4oUmBBfmmABz5mrUss9q0WD/g8vlWrNH41YYvRAC4NeWq3oerbqM1viV DcGw== 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=Hv6pwZ9eYwz3uib1Vm+iYTQrpw951uuDyJcaxQyrOS4=; b=tCQ4JSpHNSy4DpwkZVMIwugZmWeFviBm4ifPy7uf1XNeC3v+0lLhT/fxWid3ibn9jR RUCdjXm3ZCQoa4VYfZBGwWQm3wuWqTlscuYci4C08ylXnD0N/HYV1KO3rnNRvmYUTPqo AOqwilIiPcV9OWQuRpmMNmshmEJaUZtYLxtGawM+BFomN/fZSaFTBkqH8m4SsjKjO19M eh9Gu44rdQ5hxEZC9WAjQKDiFUGq75xvJMSnw5BEAUNi/E17YkWFnnoUseRX6kyoQErz g/jdsUlLK1ZcP1AuOpqi2BNkiBIdgLL6DP6OVGenHqoN9U8hK4BF7yoQvJTzH8AL0yNF NXJg== 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 q9si423618pjp.77.2019.06.12.11.02.06; Wed, 12 Jun 2019 11:02:20 -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 S2439676AbfFLO1E (ORCPT + 99 others); Wed, 12 Jun 2019 10:27:04 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60032 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2439638AbfFLO1B (ORCPT ); Wed, 12 Jun 2019 10:27:01 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 91C0DC18B2F3; Wed, 12 Jun 2019 14:27:00 +0000 (UTC) Received: from treble (ovpn-120-37.rdu2.redhat.com [10.10.120.37]) by smtp.corp.redhat.com (Postfix) with ESMTPS id BA67519483; Wed, 12 Jun 2019 14:26:54 +0000 (UTC) Date: Wed, 12 Jun 2019 09:26:52 -0500 From: Josh Poimboeuf To: Steven Rostedt Cc: Peter Zijlstra , 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: <20190612142652.tzrlwduirm4edmtf@treble> References: <20190522174517.pbdopvookggen3d7@treble> <20190522234635.a47bettklcf5gt7c@treble> <20190523133253.tad6ywzzexks6hrp@treble> <20190523152413.m2pbnamihu3s2c5s@treble> <20190524085319.GE2589@hirez.programming.kicks-ass.net> <20190612030501.7tbsjy353g7l74ej@treble> <20190612091023.6bccf262@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190612091023.6bccf262@gandalf.local.home> User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Wed, 12 Jun 2019 14:27:01 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 12, 2019 at 09:10:23AM -0400, Steven Rostedt wrote: > On Tue, 11 Jun 2019 22:05:01 -0500 > Josh Poimboeuf wrote: > > > Right now, ftrace has a special hook in the ORC unwinder > > (orc_ftrace_find). It would be great if we could get rid of that in > > favor of the "always use frame pointers" approach. I'll hold off on > > doing the kpatch/kprobe trampoline conversions in my patches since it > > would conflict with yours. > > Basically, IIUC, what you are saying is that the ftrace trampoline > should always store the %sp in %rb even when CONFIG_FRAME_POINTER is not > enabled? And this can allow you to remove the ftrace specific code from > the orc unwinder? Basically, yes. Though the frame pointer encoding which Peter is adding to the ftrace/kprobes trampolines might complicate things a bit. -- Josh