From: Chandan Kumar <chandan.kumar@linux.vnet.ibm.com>
To: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org
Cc: acme@redhat.com, mpe@ellerman.id.au, jolsa@redhat.com,
anju@linux.vnet.ibm.com, maddy@linux.vnet.ibm.com,
naveen.n.rao@linux.vnet.ibm.com, hemant@linux.vnet.ibm.com,
Chandan Kumar <chandan.kumar@linux.vnet.ibm.com>
Subject: [PATCH 0/3] Add support for perf user stack dump in powerpc
Date: Thu, 28 Apr 2016 15:01:07 +0530 [thread overview]
Message-ID: <1461835870-67778-1-git-send-email-chandan.kumar@linux.vnet.ibm.com> (raw)
This patch set enables perf user stack dump on powerpc
Example with "ls" command as user program
./perf record --call-graph=dwarf,8192 ls
./perf script
---------8< -----
..
...
perf 12549 75938.934539: 1771 cycles:ppp:
210d90 .perf_event_exec (/boot/vmlinux)
34b914 .load_elf_binary (/boot/vmlinux)
2dcabc .search_binary_handler (/boot/vmlinux)
2dd6f0 .do_execveat_common.isra.28 (/boot/vmlinux)
2ddcd8 .sys_execve (/boot/vmlinux)
19258 system_call (/boot/vmlinux)
perf 12549 75938.934549: 8415 cycles:ppp:
207a88 .perf_event_aux_ctx (/boot/vmlinux)
0 [unknown] ([unknown])
214ab8 .perf_event_comm (/boot/vmlinux)
2dcfb8 .__set_task_comm (/boot/vmlinux)
2ddb44 .setup_new_exec (/boot/vmlinux)
34b914 .load_elf_binary (/boot/vmlinux)
2dcabc .search_binary_handler (/boot/vmlinux)
2dd6f0 .do_execveat_common.isra.28 (/boot/vmlinux)
2ddcd8 .sys_execve (/boot/vmlinux)
19258 system_call (/boot/vmlinux)
ls 12549 75938.934562: 33745 cycles:ppp:
ee570 .task_work_add (/boot/vmlinux)
0 [unknown] ([unknown])
2ce380 .filp_close (/boot/vmlinux)
2fc464 .do_close_on_exec (/boot/vmlinux)
2ddbd8 .setup_new_exec (/boot/vmlinux)
34b914 .load_elf_binary (/boot/vmlinux)
2dcabc .search_binary_handler (/boot/vmlinux)
2dd6f0 .do_execveat_common.isra.28 (/boot/vmlinux)
2ddcd8 .sys_execve (/boot/vmlinux)
19258 system_call (/boot/vmlinux)
ls 12549 75938.934587: 116078 cycles:ppp:
6ff94 .__clear_user (/boot/vmlinux)
944400 .padzero ([kernel.vmlinux].text.unlikely)
34bd28 .load_elf_binary (/boot/vmlinux)
2dcabc .search_binary_handler (/boot/vmlinux)
2dd6f0 .do_execveat_common.isra.28 (/boot/vmlinux)
2ddcd8 .sys_execve (/boot/vmlinux)
19258 system_call (/boot/vmlinux)
...
..
----- 8< -----
Chandan Kumar (2):
powerpc: Add HAVE_PERF_USER_STACK_DUMP support
powerpc/perf: Add support for unwinding perf-stackdump
Naveen N. Rao (1):
perf tools: Fix perf regs mask generation
.../features/perf/perf-regs/arch-support.txt | 2 +-
.../features/perf/perf-stackdump/arch-support.txt | 2 +-
arch/powerpc/Kconfig | 1 +
tools/perf/arch/powerpc/util/Build | 1 +
tools/perf/arch/powerpc/util/unwind-libunwind.c | 96 ++++++++++++++++++++++
tools/perf/config/Makefile | 1 +
tools/perf/util/perf_regs.c | 8 +-
7 files changed, 105 insertions(+), 6 deletions(-)
create mode 100644 tools/perf/arch/powerpc/util/unwind-libunwind.c
--
1.9.3
next reply other threads:[~2016-04-28 9:31 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-28 9:31 Chandan Kumar [this message]
2016-04-28 9:31 ` [PATCH 1/3] powerpc: Add HAVE_PERF_USER_STACK_DUMP support Chandan Kumar
2016-05-08 3:59 ` [1/3] " Michael Ellerman
2016-04-28 9:31 ` [PATCH 2/3] powerpc/perf: Add support for unwinding perf-stackdump Chandan Kumar
2016-05-08 3:59 ` [2/3] " Michael Ellerman
2016-04-28 9:31 ` [PATCH 3/3] perf tools: Fix perf regs mask generation Chandan Kumar
2016-05-08 3:59 ` [3/3] " Michael Ellerman
2016-04-28 14:23 ` [PATCH 0/3] Add support for perf user stack dump in powerpc Naveen N. Rao
2016-04-28 15:29 ` Arnaldo Carvalho de Melo
2016-04-28 16:14 ` Naveen N. Rao
2016-04-28 16:31 ` Arnaldo Carvalho de Melo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1461835870-67778-1-git-send-email-chandan.kumar@linux.vnet.ibm.com \
--to=chandan.kumar@linux.vnet.ibm.com \
--cc=acme@redhat.com \
--cc=anju@linux.vnet.ibm.com \
--cc=hemant@linux.vnet.ibm.com \
--cc=jolsa@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=maddy@linux.vnet.ibm.com \
--cc=mpe@ellerman.id.au \
--cc=naveen.n.rao@linux.vnet.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).