login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
March
»
23
Re: [PATCH -tip 10/10] perf probe: Accessing members in data structures
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Arnaldo Carvalho de Melo
Subject:
Re: [PATCH -tip 10/10] perf probe: Accessing members in data structures
Date: Tuesday, March 23, 2010 - 9:27 am
Em Tue, Mar 23, 2010 at 04:55:13PM +0100, Peter Zijlstra escreveu:
quoted text
> On Thu, 2010-03-18 at 04:28 +0100, Frederic Weisbecker wrote: > > On Wed, Mar 17, 2010 at 03:14:43PM -0400, Masami Hiramatsu wrote: > > > Mark Wielaard wrote: > > > > If you find that a problem then you can do like SystemTap does and allow > > > > '.' in place of '->'. In the code you already use the > > > > perf_probe_arg_field ref flag only to check that the DIE gives you the > > > > same information. So you could just drop that and use any separator. > > > > Then you decide based on whether you see a DW_TAG_pointer_type. This > > > > gives the user some extra flexibility by letting them not having to care > > > > about specifying extra type information already available elsewhere.
quoted text
> > > Thanks, when designing this feature, I considered it too.
quoted text
> > > Since perf probe already support displaying source code by --line option, > > > users will read the probed code itself and try to probe it. In that case, > > > I think they naturally use '.' and '->' as they read (they might try to > > > copy & paste it).
quoted text
> > > So, I think that it would be good to support both of '.' and '->' as > > > they are used in the code, because it will not confuse users.
quoted text
> > And lets people use what is common for them: expressions that follow > > C rules in the context.
quoted text
> > And those who will be more familiar with perf probe will know they can > > use the simplified "." based scheme.
quoted text
> I'd expect a syntax error when I mix up '.' and '->'.
Yup, I'd stick with following the C language rules. - Arnaldo --
unsubscribe notice
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/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[PATCH -tip 00/10] perf-probe updates - data-structure sup ...
, Masami Hiramatsu
, (Tue Mar 16, 3:05 pm)
[PATCH -tip 01/10] perf tools: Introduce xzalloc() for det ...
, Masami Hiramatsu
, (Tue Mar 16, 3:05 pm)
[PATCH -tip 03/10] perf probe: Move add-probe routine unde ...
, Masami Hiramatsu
, (Tue Mar 16, 3:05 pm)
[PATCH -tip 04/10] perf probe: Rename session to param
, Masami Hiramatsu
, (Tue Mar 16, 3:05 pm)
[PATCH -tip 05/10] perf probe: Rename some die_get_* functions
, Masami Hiramatsu
, (Tue Mar 16, 3:05 pm)
[PATCH -tip 06/10] perf probe: Introduce die_find_child() ...
, Masami Hiramatsu
, (Tue Mar 16, 3:05 pm)
[PATCH -tip 07/10] perf probe: Add --dry-run option
, Masami Hiramatsu
, (Tue Mar 16, 3:06 pm)
[PATCH -tip 08/10] perf probe: Introduce kprobe_trace_even ...
, Masami Hiramatsu
, (Tue Mar 16, 3:06 pm)
[PATCH -tip 09/10] perf probe: List probes with line numbe ...
, Masami Hiramatsu
, (Tue Mar 16, 3:06 pm)
[PATCH -tip 10/10] perf probe: Accessing members in data s ...
, Masami Hiramatsu
, (Tue Mar 16, 3:06 pm)
Re: [PATCH -tip 10/10] perf probe: Accessing members in da ...
, Mark Wielaard
, (Wed Mar 17, 3:25 am)
Re: [PATCH -tip 00/10] perf-probe updates - data-structure ...
, Ingo Molnar
, (Wed Mar 17, 3:34 am)
[tip:perf/core] perf tools: Introduce xzalloc() for detect ...
, tip-bot for Masami H ...
, (Wed Mar 17, 4:27 am)
[tip:perf/core] perf probe: Move add-probe routine to util/
, tip-bot for Masami H ...
, (Wed Mar 17, 4:28 am)
[tip:perf/core] perf probe: Rename session to param
, tip-bot for Masami H ...
, (Wed Mar 17, 4:28 am)
[tip:perf/core] perf probe: Rename some die_get_* functions
, tip-bot for Masami H ...
, (Wed Mar 17, 4:28 am)
[tip:perf/core] perf probe: Introduce die_find_child() fun ...
, tip-bot for Masami H ...
, (Wed Mar 17, 4:29 am)
[tip:perf/core] perf probe: Add --dry-run option
, tip-bot for Masami H ...
, (Wed Mar 17, 4:29 am)
[tip:perf/core] perf probe: Introduce kprobe_trace_event a ...
, tip-bot for Masami H ...
, (Wed Mar 17, 4:29 am)
[tip:perf/core] perf probe: List probes with line number a ...
, tip-bot for Masami H ...
, (Wed Mar 17, 4:29 am)
[tip:perf/core] perf probe: Add data structure member acce ...
, tip-bot for Masami H ...
, (Wed Mar 17, 4:30 am)
[tip:perf/core] perf probe: Fix !dwarf build
, tip-bot for Ingo Molnar
, (Wed Mar 17, 4:30 am)
Re: [tip:perf/core] perf probe: Fix !dwarf build
, Masami Hiramatsu
, (Wed Mar 17, 7:14 am)
Re: [PATCH -tip 10/10] perf probe: Accessing members in da ...
, Masami Hiramatsu
, (Wed Mar 17, 12:14 pm)
Re: [PATCH -tip 10/10] perf probe: Accessing members in da ...
, Frederic Weisbecker
, (Wed Mar 17, 8:28 pm)
[tip:perf/core] perf events: Fix false positive build warn ...
, tip-bot for Ingo Molnar
, (Thu Mar 18, 10:38 am)
Re: [tip:perf/core] perf events: Fix false positive build ...
, Masami Hiramatsu
, (Thu Mar 18, 1:03 pm)
Re: [PATCH -tip 10/10] perf probe: Accessing members in da ...
, Masami Hiramatsu
, (Fri Mar 19, 9:20 pm)
Re: [PATCH -tip 10/10] perf probe: Accessing members in da ...
, Peter Zijlstra
, (Tue Mar 23, 8:55 am)
Re: [PATCH -tip 10/10] perf probe: Accessing members in da ...
, Arnaldo Carvalho de Melo
, (Tue Mar 23, 9:27 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Paul Turner
[tg_shares_up rewrite v2 11/11] sched: update tg->shares after cpu.shares write
Ingo Molnar
Re: [RFC] Cpu-hotplug: Using the Process Freezer (try2)
Michal Nazarewicz
Re: [PATCH] USB: Gadget: g_multi: added INF file for gadget with multiple configur...
Eric W. Biederman
Re: init's children list is long and slows reaping children.
Jeffrey V. Merkey
Re: Versioning file system
git
:
Matthieu Moy
Re: Bugs in Gitosis
Daniel Barkalow
Re: About git and the use of SHA-1
David Lang
Re: mingw, windows, crlf/lf, and git
Shawn O. Pearce
Re: Bugs in Gitosis
Junio C Hamano
Re: [PATCH 14/21] Convert ce_path_match() to use struct pathspec
linux-netdev
:
David Miller
Re: [2.6.30-rc3] powerpc: compilation error of mace module
David Miller
Re: [PATCH] ipv6: fix display of local and remote sit endpoints
Cong Wang
Re: [PATCH] s2io: add dynamic LRO disable support
Tobacco New Year Promo
Eric Dumazet
Re: [PATCH] net: implement emergency route cache rebulds when gc_elasticity is exc...
git-commits-head
:
Linux Kernel Mailing List
V4L/DVB: tm6000: add special usb request to quit i2c tuner transfer
Linux Kernel Mailing List
of/flattree: merge early_init_dt_scan_memory() common code
Linux Kernel Mailing List
b43: N-PHY: add some registers and structs definitions
Linux Kernel Mailing List
powerpc: Move /proc/ppc64 to /proc/powerpc and add symlink
Linux Kernel Mailing List
drivers/acpi: use kasprintf
openbsd-misc
:
Ted Bullock
Re: Proliant DL380 G3 cannot get on network
Eric Furman
Re: Defending OpenBSD Performance
Damien Miller
Re: Patching a SSH 'Weakness'
Tony Abernethy
Re: The Atheros story in much fewer words
Nick Holland
Re: 1 out of 3 hunks failed--saving rejects to kerberosV/src/lib/krb5/crypto.c.rej
Colocation donated by:
Syndicate