Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1105752imu; Tue, 11 Dec 2018 12:49:10 -0800 (PST) X-Google-Smtp-Source: AFSGD/VUKBx/iyh+FhKLI8SFHGBsVVqEtI9AyLAUToMzOehxgYS0FiA9ceY0MvVz6ro+k76AUL0r X-Received: by 2002:a62:16d6:: with SMTP id 205mr17720989pfw.256.1544561350171; Tue, 11 Dec 2018 12:49:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544561350; cv=none; d=google.com; s=arc-20160816; b=E5PLy48b25WvX+1l93a4m+dmmb3/1hXAblKY9H0XXbo7gVW40rGqd8yE3SrfwoFle2 2Apa7/j+ep3kH213AEzYDCfWX024YhljPETlZWLXBYACTHP5OVEHjzI5f2rVEQ224Ph7 XzKy/TMJ4+uwh+mEttgAWlH4Yv2M0NAU+uPweYYw5DhY7TY0F1dWGxJFPIxZxz1nlTSK AlzeQTQUer+xnG7kqv09X2Ddbjpqf0joy7wajmMnaABYlnjpanH81uF92mj20vLLqJXw TE4MlxZCMcSmhCNRXTIoqyFE8yxF15LPE4pzGysCgxtQbBM8A0Ol67IJPScvoBHb5fDf oO8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :organization:message-id:date:subject:cc:to:from:dkim-signature; bh=ECWndV0QxHjC96VZfaQV2SYBHZMVHW6XW56U0w9sy8I=; b=y3Bb/Ncg4Fnx2FBDkooSSTkvTOESN6gqlzy9gkpzWHKv18PIzGQVzVoDD7GTM/UGt5 GslCVTE2aIWyJDT6btms5/8FksSaxpBkKoZLG3k0GwEcfV9iVpE6SbJ5jH+9HwHvO3vv K0zrhKNl88gvwkZJ+SVl4XfqeDaifXWSMU9fLjUbnQFH9Q1O62BIDaERBwJ/5vdZdsUt nX9LRzfsgQsDfZ8bc1V4ENVH27nMylnR+1FIWUrgKaBRr+8IAJFk7e4NobYsYjgvISOL ztMrwB7InotgKOJX2o4GplMB0uhfjIorABZx6uzozUJUjxihUXLb6OnVKqjzBd84ixOp WU4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kdab.com header.s=dkim header.b=NZA+MPPR; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=kdab.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e66si13869369plb.339.2018.12.11.12.48.47; Tue, 11 Dec 2018 12:49:09 -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; dkim=pass header.i=@kdab.com header.s=dkim header.b=NZA+MPPR; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=kdab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726365AbeLKUrs (ORCPT + 99 others); Tue, 11 Dec 2018 15:47:48 -0500 Received: from mail.kdab.com ([176.9.126.58]:30084 "EHLO mail.kdab.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726134AbeLKUrs (ORCPT ); Tue, 11 Dec 2018 15:47:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kdab.com; h= content-type:content-type:mime-version:references:in-reply-to :organization:message-id:date:date:subject:subject:from:from; s= dkim; t=1544561262; x=1545425263; bh=ECWndV0QxHjC96VZfaQV2SYBHZM VHW6XW56U0w9sy8I=; b=NZA+MPPRR2h5McbRQ4iYBmbyx+dwGzqwitlwIcvGAvq eV29SwckfS5wmL0+QdqFXf/+tClFJuOHCfAnOngo6EcKSaiSWtEUS5g2hp4DGGqo vugYzFQkHbm2faX2ml8DcECw8YfOM+new1YMe7WaqSPcbLyDB1vMySy1pPFpnUMs = X-Virus-Scanned: amavisd-new at kdab.com From: Milian Wolff To: Andi Kleen Cc: Arnaldo Carvalho de Melo , Adrian Hunter , linux-kernel@vger.kernel.org, jolsa@kernel.org, Andi Kleen Subject: Re: [PATCH] perf script: Fix LBR skid dump problems in brstackinsn Date: Tue, 11 Dec 2018 21:47:41 +0100 Message-ID: <1690253.Gbn1XyeY7h@agathebauer> Organization: KDAB In-Reply-To: <20181206225207.eomszl6sq3omrth7@two.firstfloor.org> References: <20181120050617.4119-1-andi@firstfloor.org> <20181206212920.GC32567@kernel.org> <20181206225207.eomszl6sq3omrth7@two.firstfloor.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart4383625.WZvTJiQvXz"; micalg="sha256"; protocol="application/pkcs7-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --nextPart4383625.WZvTJiQvXz Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" On Donnerstag, 6. Dezember 2018 23:52:07 CET Andi Kleen wrote: > On Thu, Dec 06, 2018 at 06:29:20PM -0300, Arnaldo Carvalho de Melo wrote: > > Em Thu, Dec 06, 2018 at 12:51:48PM -0800, Andi Kleen escreveu: > > > On Thu, Dec 06, 2018 at 02:01:40PM -0300, Arnaldo Carvalho de Melo wrote: > > > > Em Mon, Nov 19, 2018 at 09:06:17PM -0800, Andi Kleen escreveu: > > > > > From: Andi Kleen > > > > > > > > > > This is a fix for another instance of the skid problem Milian > > > > > recently found [1] > > > > I think you forgot to add the reference, i.e. what is the url or > > message-id that this [1] refers to? > > Hmm, I thought I saw some patches from Milian for this earlier, > but now I can't find them. Perhaps I misremember. Milian > can point to them if they exist and are not just a figment > of my imagination :-) I only have very early POC patches, cf.: https://lkml.org/lkml/2018/11/14/608 I've now also pushed that on my WIP branch: https://github.com/milianw/linux/ tree/pebs-callchain-breakage I haven't had the time since to work on this. The patches as-is are not upstreamable. There are some open questions on my side (see mail referenced above). > These were the changes to report the stack frame RIP/RSP in the PEBS > handler and use it for unwinding in perf. Yes, I was looking at something different. I've no experience with brstackinsn usage in perf, so I can't really add my tested-by. Cheers -- Milian Wolff | milian.wolff@kdab.com | Senior Software Engineer KDAB (Deutschland) GmbH, a KDAB Group company Tel: +49-30-521325470 KDAB - The Qt, C++ and OpenGL Experts --nextPart4383625.WZvTJiQvXz Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Disposition: attachment; filename="smime.p7s" Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwEAAKCCDEIw ggXmMIIDzqADAgECAhBqm+E4O/8ra58B1dm4p1JWMA0GCSqGSIb3DQEBDAUAMIGFMQswCQYDVQQG EwJHQjEbMBkGA1UECBMSR3JlYXRlciBNYW5jaGVzdGVyMRAwDgYDVQQHEwdTYWxmb3JkMRowGAYD VQQKExFDT01PRE8gQ0EgTGltaXRlZDErMCkGA1UEAxMiQ09NT0RPIFJTQSBDZXJ0aWZpY2F0aW9u IEF1dGhvcml0eTAeFw0xMzAxMTAwMDAwMDBaFw0yODAxMDkyMzU5NTlaMIGXMQswCQYDVQQGEwJH QjEbMBkGA1UECBMSR3JlYXRlciBNYW5jaGVzdGVyMRAwDgYDVQQHEwdTYWxmb3JkMRowGAYDVQQK ExFDT01PRE8gQ0EgTGltaXRlZDE9MDsGA1UEAxM0Q09NT0RPIFJTQSBDbGllbnQgQXV0aGVudGlj YXRpb24gYW5kIFNlY3VyZSBFbWFpbCBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB AL6znlesKHZ1QBbHOAOY08YYdiFQ8yV5C0y1oNF9Olg+nKcxLqf2NHbZhGra0D00SOTq9bus3/mx gUsg/Wh/eXQ0pnp8tZ8XZWAnlyKMpjL+q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