From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2797 invoked by alias); 27 Oct 2009 20:42:05 -0000 Received: (qmail 2790 invoked by uid 22791); 27 Oct 2009 20:42:05 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 27 Oct 2009 20:42:00 +0000 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n9RKfxKg017832 for ; Tue, 27 Oct 2009 16:41:59 -0400 Received: from [127.0.0.1] (dhcp-100-2-46.bos.redhat.com [10.16.2.46]) by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n9RKfu4Y024831; Tue, 27 Oct 2009 16:41:57 -0400 From: Masami Hiramatsu Subject: [PATCH -tip perf/probes 00/10] x86 insn decoder bugfixes To: Ingo Molnar , Frederic Weisbecker , lkml Cc: Steven Rostedt , Jim Keniston , Ananth N Mavinakayanahalli , Christoph Hellwig , "Frank Ch. Eigler" , "H. Peter Anvin" , Jason Baron , "K.Prasad" , Peter Zijlstra , Srikar Dronamraju , systemtap, DLE Date: Tue, 27 Oct 2009 20:42:00 -0000 Message-ID: <20091027204156.30545.96425.stgit@harusame> User-Agent: StGIT/0.14.3 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org X-SW-Source: 2009-q4/txt/msg00309.txt.bz2 Hi Ingo, Here are bugfixes and some enhances of x86-insn decoder and perf-probe. - x86 insn decoder supports AVX and FMA. - perf-probe syntax change. - perf-probe supports function-relative line number. - minor bugfixes. New perf-probe syntax is below: perf probe 'PROBE' or perf probe --add 'PROBE' where, PROBE is : or [:|+|%return][@] e.g. perf probe 'schedule:10@kernel/sched.c' puts a probe at 10th line from entry line of schedule() function in kernel/sched.c." and perf probe 'vmalloc%return' puts a return probe at the returning of vmalloc. TODO: - Support --line option to show which lines user can probe. - Support lazy string matching. Thank you, --- Masami Hiramatsu (10): perf/probes: Support function entry relative line number perf/probes: Change probepoint syntax of perf-probe perf/probes: Change command-line option of perf-probe perf/probes: Exit searching after finding target function kprobe-tracer: Compare both of event-name and event-group to find probe x86: Add Intel FMA instructions to x86 opcode map x86: AVX instruction set decoder support x86: Add pclmulq to x86 opcode map x86: Merge INAT_REXPFX into INAT_PFX_* x86: Fix SSE opcode map bug arch/x86/include/asm/inat.h | 68 ++++- arch/x86/include/asm/insn.h | 43 +++ arch/x86/lib/inat.c | 12 + arch/x86/lib/insn.c | 54 ++++ arch/x86/lib/x86-opcode-map.txt | 464 +++++++++++++++++++--------------- arch/x86/tools/gen-insn-attr-x86.awk | 100 +++++-- kernel/trace/trace_kprobe.c | 8 - tools/perf/builtin-probe.c | 201 +++++++++------ tools/perf/util/probe-finder.c | 93 +++++-- tools/perf/util/probe-finder.h | 4 10 files changed, 695 insertions(+), 352 deletions(-) -- Masami Hiramatsu Software Engineer Hitachi Computer Products (America), Inc. Software Solutions Division e-mail: mhiramat@redhat.com