From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756371AbcEQB4o (ORCPT ); Mon, 16 May 2016 21:56:44 -0400 Received: from mail.kernel.org ([198.145.29.136]:54364 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756353AbcEQB4m (ORCPT ); Mon, 16 May 2016 21:56:42 -0400 Date: Mon, 16 May 2016 22:56:36 -0300 From: Arnaldo Carvalho de Melo To: Masami Hiramatsu Cc: David Ahern , Jiri Olsa , Namhyung Kim , Linux Kernel Mailing List Subject: perf probe -L on ubuntu 16.04 Message-ID: <20160517015636.GC3455@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.6.0 (2016-04-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Masami, Have you ever tried using 'perf probe' on ubuntu? acme@ubuntu:~/git/linux$ sudo apt-cache search linux-image-$(uname -r) linux-image-4.4.0-21-generic - Linux kernel image for version 4.4.0 on 64 bit x86 SMP linux-image-4.4.0-21-generic-dbgsym - Linux kernel debug image for version 4.4.0 on 64 bit x86 SMP acme@ubuntu:~/git/linux$ acme@ubuntu:~/git/linux$ So those are installed, but then I try: root@ubuntu:~# perf probe -vvv -L getname_flags Looking at the vmlinux_path (8 entries long) Using /usr/lib/debug/boot/vmlinux-4.4.0-21-generic for symbols Open Debuginfo file: /usr/lib/debug/boot/vmlinux-4.4.0-21-generic fname: /build/linux-Ay7j_C/linux-4.4.0/fs/namei.c, lineno:125 New line range: 125 to 2147483647 Get 3665 lines from this CU Get 3665 lines from this CU Get 3665 lines from this CU Get 3665 lines from this CU Get 3665 lines from this CU Get 3665 lines from this CU Get 3665 lines from this CU Get 3665 lines from this CU Get 3665 lines from this CU Get 3665 lines from this CU Get 3665 lines from this CU Get 3665 lines from this CU Get 3665 lines from this CU Get 3665 lines from this CU Get 3665 lines from this CU Get 3665 lines from this CU Get 3665 lines from this CU Get 3665 lines from this CU Get 3665 lines from this CU Get 3665 lines from this CU Get 3665 lines from this CU Get 3665 lines from this CU Get 3665 lines from this CU path: /build/linux-Ay7j_C/linux-4.4.0/fs/namei.c Failed to find source file path. Error: Failed to show lines. Reason: No such file or directory (Code: -2) root@ubuntu:~# Couldn't find the source code files, which is the case: acme@ubuntu:~/git/linux$ dpkg -L linux-image-$(uname -r)-dbgsym | grep '\.c' acme@ubuntu:~/git/linux$ dpkg -L linux-image-$(uname -r)-dbgsym | grep '\.ko' | tail -2 /usr/lib/debug/lib/modules/4.4.0-21-generic/kernel/crypto/pcbc.ko /usr/lib/debug/lib/modules/4.4.0-21-generic/kernel/crypto/crc32.ko acme@ubuntu:~/git/linux$ Have to dig deeper to see where the source code is, ideas? - Arnaldo