Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2264351imu; Fri, 14 Dec 2018 08:17:16 -0800 (PST) X-Google-Smtp-Source: AFSGD/X23QgZaDRJqqjl/SlcMQK5eT1mz9DolgdXjfvlD3Vb9gnkfpL4xeEawZ3MroxjWg7CrqK3 X-Received: by 2002:a63:68c4:: with SMTP id d187mr3205067pgc.11.1544804235959; Fri, 14 Dec 2018 08:17:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544804235; cv=none; d=google.com; s=arc-20160816; b=SsnGkywcrupDsaxoGPF+sh6O6cjrVz0+4Uryo4yNQPdy/t5U7R6FqpuFnswGP1Yz0d HJ1YTngUMgW4O7/YsKq+xFFd3i8zeeajuhfIrEcs3FidKl4s2ic2Io5zqmpaveb1Z3PQ YH3yh/uXYzl+RplnhYBNrk7f4Gjb5F+YJX1wJWu1LopW0TNgISxeC+hZIGB6fiZIEvuC nWxruxv+1Rt6cwnCOBNZxzzs1PRTSmeW6LerkSwNQ13Kak/KHFU8nHJxY4jwcYNPh1Li sQzJIMaOxWbJ+SVZzpN+OH9LlbB/ppQhEtJ62yx2r+e5KXbRdK7xfo7gT5fkaiy2nBmR 7aTQ== 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; bh=2/nbRsdhWbpCx274kW83JjMJetCYLC4sBzkiUaRwrB8=; b=Wy+jOqj7kmxsGPzcYWUMStBdRGjIA+feZXeVWALiPPmFk/UcJeazc2YhFJP9PBbXQl ZSAISaEKBre+FEdztI6+MX1ua5OisZ3Xy4Ay8CW7Zu8TNPTTpbAOPkt8wLyrwv5u1NNp YUoOK+NcBo5SbNJyhzrOskr+Q7O3kWV42COSi8HLVwY9tXIW2PuAN7gt6VSQcMHO6i+r JqbP3/4G11T6TvInnepYJRBOKxViT7kiciaJnsc09ow2Zmg7tjnsGqrwBP1Yb44nfJ2w N0Kcx4fytZ1yniFYNIceY1COW4QHAxcxG3u2Xt9fdl7FTQvwGCbCDnS07d5XBehONsoX I0Lw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j10si241565pgt.155.2018.12.14.08.16.34; Fri, 14 Dec 2018 08:17:15 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729773AbeLNQPQ (ORCPT + 99 others); Fri, 14 Dec 2018 11:15:16 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:54774 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727795AbeLNQPQ (ORCPT ); Fri, 14 Dec 2018 11:15:16 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E15AC1650; Fri, 14 Dec 2018 08:15:15 -0800 (PST) Received: from mail-it1-f169.google.com (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C8AE33F7F4; Fri, 14 Dec 2018 08:15:15 -0800 (PST) Received: by mail-it1-f169.google.com with SMTP id i145so9597378ita.4; Fri, 14 Dec 2018 08:15:15 -0800 (PST) X-Gm-Message-State: AA+aEWZMssbrm9wm/aKGLlRHv2yPYCI9ru4s4JpgmuH9K6JGegywUraK TjJNylELwJFKweOWFXUQfgKXdiai2VAksNjyC9E= X-Received: by 2002:a24:3555:: with SMTP id k82mr3746465ita.84.1544804114998; Fri, 14 Dec 2018 08:15:14 -0800 (PST) MIME-Version: 1.0 References: <20181130162015.83FE767357@newverein.lst.de> <20181214094714.GA30043@lst.de> In-Reply-To: <20181214094714.GA30043@lst.de> From: Amit Daniel Kachhap Date: Fri, 14 Dec 2018 21:45:03 +0530 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5] arm64: implement ftrace with regs To: duwe@lst.de Cc: Will Deacon , Catalin Marinas , julien.thierry@arm.com, rostedt@goodmis.org, jpoimboe@redhat.com, mingo@redhat.com, Ard Biesheuvel , Arnd Bergmann , takahiro.akashi@linaro.org, LAK , linux-kernel@vger.kernel.org, live-patching@vger.kernel.org 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 Hi, On Fri, Dec 14, 2018 at 3:18 PM Torsten Duwe wrote: > > On Thu, Dec 13, 2018 at 11:01:38PM +0530, Amit Daniel Kachhap wrote: > > On Fri, Nov 30, 2018 at 9:53 PM Torsten Duwe wrote: > > > > Hi Torsten, > > > > I was testing your patch and it seems to work fine for function trace. However > > function graph trace seems broken. Is it work in progress ? or I am > > missing something. > > What did you base your tests on, you didn't specify? > OTOH neither did I ;-) I precluded all addressees had the full picture. > > Precisely, I basically start with 4.19, but 4.20-rc shouldn't make a > difference. BUT... > > > > [Changes from v4] > > > > > > * include Ard's feedback and pending changes: > > > - ADR/ADRP veneers > > > - ftrace_trampolines[2] > > > - add a .req for fp, just in case > " [PATCH 1/2] arm64/insn: add support for emitting ADR/ADRP instructions " > <20181122084646.3247-2-ard.biesheuvel@linaro.org> et.al, esp: > Git-commit: bdb85cd1d20669dfae813555dddb745ad09323ba > > > > - comment on the pt_regs.stackframe[2] mapping > > > * include Mark's ftrace cleanup > > > - GLOBAL() > > > - prepare_ftrace_return(pc, &lr, fp) > > > > " [PATCH 1/6] linkage: add generic GLOBAL() macro " > <20181115224203.24847-2-mark.rutland@arm.com> et.al., esp: > Git-commit: 7dc48bf96aa0fc8aa5b38cc3e5c36ac03171e680 > > change the API this patch set relies on. AFAIU they are on their way into > mainline so I updated v5 accordingly. If you don't have these, just use v4; > the other changes are only for compatibility and cosmetics. Sorry I didn't mention my environment. I am using 4.20-rc3 and it has all the above 8 extra patches mentioned by you. I read your change description in v3 patchset. You had mentioned there that graph caller is broken. //Amit > > HTH, > Torsten >