Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3121301ybb; Mon, 6 Apr 2020 02:31:00 -0700 (PDT) X-Google-Smtp-Source: APiQypKHr7A6K1bvscoolNu7RPMZHZOhNKGfDp8QhSZmMfOvs79oEf5SBFWcNNUXpfhW7cujiNwC X-Received: by 2002:aca:bec1:: with SMTP id o184mr11674592oif.37.1586165460327; Mon, 06 Apr 2020 02:31:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586165460; cv=none; d=google.com; s=arc-20160816; b=ei8306gOfp+nxzFfIGbOp3EfjENBJILkn9etHp/C9ivAgRhEnu8ih2xrTKTOu5BcNG QWzGZKJHTrikOzWUbfHtN61jh2rnH8mU2WD4BcLQC58pmDTUOl09rXiZJgl9hxWaBabd 2rn44wtGnqLUde13rYCXvbGYgvbAB1ioth1fPCZGEM//NrPd1dcREpRJjQ7PutOAjdSV Ne1VSYn7ayKZTJ4CXFIi6NAMGkozjO6mn+fzppC3nJRiDE2A7IXAyzP9yuWEGs86Q2o6 TEl1kopEMOJtoSqhEhO+hgVSrTnrhDuAIvfzfYXwSg2FheaeungA+NqBHOVWdUeHgcHY 2kXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:dkim-signature; bh=5vm6kWbgKBBg6+wO/3BClKzp87CtAj5bz2y/9ANO1OI=; b=HR7sqqNAfid9KcJFwuBr8isGz/ES6yggVd24neLg6ooQ2C6P8iLxxz8/wH2dSrCNx6 +ulBSNL5n+Sspwy1uHCA7hieanQwWR0tRCIvKILxPBBqEs4KUBmN5BPYCuEiYk0uZwZ3 pvXjB8hInotyTQZXRETQaf9CZjQkMAdukjkrICXmnok2/TLj0HHpcHX1bfy5OUvYPKwW RT9n4ZwDcogSLKn2jwZA9KcU/HEgx1sPB2V/aTW44hYP9yQ0D7yyB+0uAsZ9FcSpo4Wh pYv1r+R2Dcy9HBBgFj9HvQzUzw+n3Xe+eObpx7bXKgAmZcHKelE0nXUpRVaifwkIayEr 7ZpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ee7z1+oZ; 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=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 x12si7849574otq.38.2020.04.06.02.30.48; Mon, 06 Apr 2020 02:31:00 -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=@redhat.com header.s=mimecast20190719 header.b=ee7z1+oZ; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726788AbgDFJab (ORCPT + 99 others); Mon, 6 Apr 2020 05:30:31 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:30732 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726718AbgDFJaa (ORCPT ); Mon, 6 Apr 2020 05:30:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1586165429; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5vm6kWbgKBBg6+wO/3BClKzp87CtAj5bz2y/9ANO1OI=; b=ee7z1+oZLnpMlztYcLco4fiqCyDD1ePMp8pPMa7U2xDK2blMw0puxt8j/Wrov8CjT3NdSl 7K5a/wJD3JcXcSOu6puxhhYfHTjlM3JSO8q4itEepvCCeraOsDwMFMRNstkerjVNeRvTQo hbCpbF0/ujSuf9RjD31r+yJ7CDgo+hM= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-231-R8tg8OMmO8WGPVNOS6wxkw-1; Mon, 06 Apr 2020 05:30:26 -0400 X-MC-Unique: R8tg8OMmO8WGPVNOS6wxkw-1 Received: by mail-wr1-f70.google.com with SMTP id t25so8065574wrb.16 for ; Mon, 06 Apr 2020 02:30:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=5vm6kWbgKBBg6+wO/3BClKzp87CtAj5bz2y/9ANO1OI=; b=Ayi9+gTbnOEkyhB+DxOi/v0p8PeS1Tz9UlDSLXVl5+V9KpLyYI7CtKihkpXBP3HYQP LZQ0xpnOUNSXK53KGpDuMM7O8LaChI3/vhf0H2L4VlZ5Hw6/l5N8YzBjMgW5qutXQhRk AaWHM4sOP7bG041QshheIFFjzkfFRKi5ahy4vnZ5Mko2izjzxI7UgabINdE/eRiIEFGV oYHMOHGjQp9kJoQdVqBzxu8kgdd5GO9NEQuh4ITh4tfe/mIVaKUDhgY9bLxpiVLN5X7f CA0995gNNzDJI5HIopFqcoLM0LBHbWvjc9pgEHQQmGuIF0a/ivZdpysHDbAdzm4DisM3 +3RA== X-Gm-Message-State: AGi0PuYAdFmNVswmYtjuCcB7lj6YoLnYL32yKaIMJIUxpew3OnPWtwYu KP/1wAGLMR7BOoUGybMmoQbNibexmEe475tFBdi6+eUndHPYjPkKgN3beElTEfV56xoqllOOVOI EHLoxl7ZfYDbEJXRhFpA3fy3h X-Received: by 2002:a5d:414f:: with SMTP id c15mr25202515wrq.60.1586165424916; Mon, 06 Apr 2020 02:30:24 -0700 (PDT) X-Received: by 2002:a5d:414f:: with SMTP id c15mr25202483wrq.60.1586165424680; Mon, 06 Apr 2020 02:30:24 -0700 (PDT) Received: from ?IPv6:2a02:8388:7c1:1280:a281:9dab:554b:2fdc? (2a02-8388-07c1-1280-a281-9dab-554b-2fdc.cable.dynamic.v6.surfer.at. [2a02:8388:7c1:1280:a281:9dab:554b:2fdc]) by smtp.gmail.com with ESMTPSA id t12sm26687712wrm.0.2020.04.06.02.30.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 06 Apr 2020 02:30:24 -0700 (PDT) Subject: Re: [PATCH] perf script report: fix segfault when using DWARF mode From: Andreas Gerstmayr To: Arnaldo Carvalho de Melo , Kim Phillips Cc: linux-perf-users@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Adrian Hunter , "Steven Rostedt (VMware)" , Kan Liang , linux-kernel@vger.kernel.org References: <05e0d633-54b4-fb3b-3d08-8963271017ea@amd.com> <20200402125417.422232-1-agerstmayr@redhat.com> <6a098ce1-1981-dcff-ea62-af5fc07ec7fb@amd.com> <20200403124028.GA18559@kernel.org> Message-ID: <0a942366-c8dd-4767-ee84-fdc0024b035f@redhat.com> Date: Mon, 6 Apr 2020 11:30:23 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03.04.20 15:16, Andreas Gerstmayr wrote: > On 03.04.20 14:40, Arnaldo Carvalho de Melo wrote: >> Em Thu, Apr 02, 2020 at 02:07:51PM -0500, Kim Phillips escreveu: >>> On 4/2/20 7:54 AM, Andreas Gerstmayr wrote: >>>> When running perf script report with a Python script and a callgraph in >>>> DWARF mode, intr_regs->regs can be 0 and therefore crashing the >>>> regs_map >>>> function. >>>> >>>> Added a check for this condition (same check as in >>>> builtin-script.c:595). >>>> >>>> Signed-off-by: Andreas Gerstmayr >>>> --- >>> >>> Tested-by: Kim Phillips >> >> Thanks, added this to that patch. >> > > Great, thanks! Ah, I thought you were referring to my initial flamegraph.py perf script. Is there anything I can do to get it merged? Cheers, Andreas