Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933577AbZJHVOy (ORCPT ); Thu, 8 Oct 2009 17:14:54 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759629AbZJHVOy (ORCPT ); Thu, 8 Oct 2009 17:14:54 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36086 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759537AbZJHVOx (ORCPT ); Thu, 8 Oct 2009 17:14:53 -0400 Message-ID: <4ACE56EE.8060000@redhat.com> Date: Thu, 08 Oct 2009 17:17:34 -0400 From: Masami Hiramatsu User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.4pre) Gecko/20090922 Fedora/3.0-2.7.b4.fc11 Thunderbird/3.0b4 MIME-Version: 1.0 To: Masami Hiramatsu CC: Frederic Weisbecker , Steven Rostedt , Ingo Molnar , lkml , systemtap , DLE , Thomas Gleixner , Arnaldo Carvalho de Melo , Mike Galbraith , Paul Mackerras , Peter Zijlstra , Christoph Hellwig , Ananth N Mavinakayanahalli , Jim Keniston , "Frank Ch. Eigler" Subject: Re: [PATCH tracing/kprobes v3 6/7] perf: Add perf probe subcommand for kprobe-event setup helper References: <20091007222733.1684.32035.stgit@dhcp-100-2-132.bos.redhat.com> <20091007222822.1684.3251.stgit@dhcp-100-2-132.bos.redhat.com> In-Reply-To: <20091007222822.1684.3251.stgit@dhcp-100-2-132.bos.redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1589 Lines: 49 Masami Hiramatsu wrote: > Add perf probe subcommand for kprobe-event setup helper to perf command. > This allows user to define kprobe events by C expressions (C line numbers, > C function names, and C local variables). > > Usage > ----- > perf probe [] -P 'PROBEDEF' [-P 'PROBEDEF' ...] > > -k, --vmlinux vmlinux/module pathname > -P, --probe > probe point definition, where > p: kprobe probe > r: kretprobe probe > GRP: Group name (optional) > NAME: Event name > FUNC: Function name > OFFS: Offset from function entry (in byte) > SRC: Source code path > LINE: Line number > ARG: Probe argument (local variable name or > kprobe-tracer argument format is supported.) Oops, I found it caused compilation error on gcc < 4.4 as below: CC builtin-trace.o CC builtin-probe.o cc1: warnings being treated as errors builtin-probe.c: In function 'parse_probepoint': builtin-probe.c:109: error: implicit declaration of function 'strndup' builtin-probe.c:109: error: incompatible implicit declaration of built-in function 'strndup' Since I forgot to add _GNU_SOURCE... -- Masami Hiramatsu Software Engineer Hitachi Computer Products (America), Inc. Software Solutions Division e-mail: mhiramat@redhat.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/