From: bibo mao <bibo_mao@linux.intel.com>
To: Li Guanglei <guanglei@cn.ibm.com>
Cc: "Mao, Bibo" <bibo.mao@intel.com>,
systemtap <systemtap@sources.redhat.com>
Subject: Re: patch for module function probe
Date: Mon, 03 Apr 2006 09:24:00 -0000 [thread overview]
Message-ID: <4430E75E.5090204@linux.intel.com> (raw)
In-Reply-To: <4430E569.8050904@cn.ibm.com>
If it is designed feature, then kernel.function("foo") will be regarded
as module("kernel").function("foo"). But if there is one module named
"kernel.ko", how to probe its function although its module name is
weird? In another way to say what is the meaning of
module("kernel").function("foo"), else stap manual clarify that
module("kernel") means kernel image, user had better not use the same
module name.
Li Guanglei wrote:
> Mao, Bibo :
>> Hi,
>> Currently systemtap has some problem when searching module
>> function, which is reported in
>> http://sourceware.org/ml/systemtap/2006-q1/msg00674.html. Kernel is
>> treated as one module whose name is TOK_KERNEL "kernel". So this script
>> will pass to compile, it indeed will probe kernel function:
>> probe module("kernel").function("sys_read"){
>> }
>> But there will be problem when there is actually one module named
>> kernel.ko though its name is weird.
>>
>> Bibo,mao
>>
> Actually, I think the expansion of module("*").function("foo") into
> kernel.function("foo") is a designed feature. It is especially useful
> for those compiled-in kernel modules. For example, in LKET, I can use:
>
> probe addevent.scsi.iodispatching
> = module("*").function("scsi_dispatch_cmd@drivers/scsi/scsi.c")
>
> to let LKET work despite scsi_mod being compiled as a module or into the
> kernel.
>
>
>
next prev parent reply other threads:[~2006-04-03 9:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-03 8:56 Mao, Bibo
2006-04-03 9:06 ` Li Guanglei
2006-04-03 9:24 ` bibo mao [this message]
2006-04-03 10:03 ` Li Guanglei
2006-04-03 16:14 ` Frank Ch. Eigler
2006-04-03 19:16 ` Roland McGrath
2006-04-03 21:47 Stone, Joshua I
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=4430E75E.5090204@linux.intel.com \
--to=bibo_mao@linux.intel.com \
--cc=bibo.mao@intel.com \
--cc=guanglei@cn.ibm.com \
--cc=systemtap@sources.redhat.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 read-only IMAP folder(s) and NNTP newsgroup(s).