Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp1620965imd; Sat, 27 Oct 2018 13:13:12 -0700 (PDT) X-Google-Smtp-Source: AJdET5fKkryC+WqfsowHBrlAVfRoTzBXExvKMlkTw+LcJQeIbIhQ/MOFcTFalQPpdU1S0PtX8GnW X-Received: by 2002:a17:902:7408:: with SMTP id g8-v6mr8101264pll.168.1540671192797; Sat, 27 Oct 2018 13:13:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540671192; cv=none; d=google.com; s=arc-20160816; b=HooqK7MnIq8O9XfN696jEbOds+WAnBLs3hIWJLTvyiT1EdJU5LwEL4FaXrTxQjJkDV V77wYO/DIQ96EjitQzkAkoyjNOHznqKzyrrrUj4RCvSR7cgYIVuZNhI4sYpziB4NIaBQ cyvC4jhKhCxKUgtcZl8EpdpHepssb7bX2vMB4PF5jIgEJt0acqxRKfSlJrjURmE842S8 d0gfszPQII2v1P5RtF2keK8fGpnrxGI1brqhZ9hhkjbS9JrHtho7FeSrPGapSkB4Qreb RoxbB7mJsa5qlmfwc9SpFlP91AO/TDbO9swPoeCOLrehzlHN+M3U0aEcTYBoL1xYw1Gr Ry+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=qLjgiEatrt34P+r/fd5c+/LB3zx7NYoSRD03Yd5cW5w=; b=RCH126G18dnA5dvHzOoRwHivMOiWVm7WVbj4oQT78ve2HaBIRnycLxOBerXKX0LKqz kZY4s0aYaI/l3YtA0OvmQR/WnZv7cyAVxTgqEZ9lR1Lgvv3tlFaxyQB0AMrBThSNxUkJ EqUG6LsJd0IQscKJZekczRMNTKjgFp5aLkBeYLluLVcjMoilUlSYYLRV7F+A/f9dqnu/ rWgrXC7euN4LQHuNhaFjFYy0uOBu7FUTYzjqedYg3k2Y802xPd3dnJD7NZDHTPH4+5Qw GJzrfclo9nrgblvm6g6zHNxe7WTj4gcLHsTmLVWUSpQvUM5rhOoS2U00GmwGXbJoBuFJ KmmQ== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s8-v6si17587697pgn.390.2018.10.27.13.12.41; Sat, 27 Oct 2018 13:13:12 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726582AbeJ1Evw (ORCPT + 99 others); Sun, 28 Oct 2018 00:51:52 -0400 Received: from mga14.intel.com ([192.55.52.115]:17890 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725833AbeJ1Evw (ORCPT ); Sun, 28 Oct 2018 00:51:52 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Oct 2018 13:09:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,433,1534834800"; d="scan'208";a="276147217" Received: from aemtb0042.gar.corp.intel.com (HELO ellie) ([10.254.186.127]) by fmsmga006.fm.intel.com with ESMTP; 27 Oct 2018 13:09:44 -0700 From: Vinicius Costa Gomes To: Jiri Olsa Cc: Adrian Hunter , Arnaldo Carvalho de Melo , Ingo Molnar , Clark Williams , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Arnaldo Carvalho de Melo , David Ahern , Jiri Olsa , Namhyung Kim , Wang Nan Subject: Re: [PATCH 11/11] perf tools: Stop fallbacking to kallsyms for vdso symbols lookup In-Reply-To: <20181027110541.GA25072@krava> References: <20181017225501.32150-1-acme@kernel.org> <20181017225501.32150-12-acme@kernel.org> <4c682937-3cee-6974-0970-68610e13ad37@intel.com> <87a7n070tj.fsf@intel.com> <20181027110541.GA25072@krava> Date: Sat, 27 Oct 2018 13:09:44 -0700 Message-ID: <87bm7fgnhz.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jirka, Jiri Olsa writes: > On Fri, Oct 26, 2018 at 04:19:52PM -0700, Vinicius Costa Gomes wrote: >> Hi, >> >> Adrian Hunter writes: >> >> > On 18/10/18 1:55 AM, Arnaldo Carvalho de Melo wrote: >> >> From: Arnaldo Carvalho de Melo >> >> >> >> David reports that: >> >> >> >> >> >> Perf has this hack where it uses the kernel symbol map as a backup when >> >> a symbol can't be found in the user's symbol table(s). >> > >> > I don't think this is a complete fix because it exposes new problems. >> >> This commit broke function name resolution for 'perf record -g' for me. >> >> What I mean is, with this commit applied: >> >> $ ./tools/perf/perf record -g -- sleep 1 >> >> $ ./tools/perf/perf report >> >> 'perf report' doesn't seem to be able to show the function names of the >> trace. >> >> If I revert this commit, function names are resolved fine. > > that commit just showed up some places where we have the > ip resolve wrong.. would attached patch fix it for you? Thank you for your patch. I can some difference in the output, but I wouldn't say that it's fixed. Here are some samples, if it's useful somehow: https://gist.github.com/vcgomes/985626705e0968b973e426964f86a4b0 The "ping" tests were done running $ sudo ./tools/perf/perf record -g -- ping -f -c 1000 127.0.0.1 And the "sleep" tests were done running $ sudo ./tools/perf/perf record -g -- /bin/sleep 1 -- Vinicius