From: "zhangwei(Jovi)" <jovi.zhangwei@huawei.com>
To: Ming Lei <tom.leiming@gmail.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [ANNOUNCE] ktap 0.1 released
Date: Wed, 22 May 2013 15:00:03 +0800 [thread overview]
Message-ID: <519C6CF3.1010502@huawei.com> (raw)
In-Reply-To: <CACVXFVPgLiFPSyLi48fa=RbyOantEu-jRynuuZFJ_4Lt5OSXYQ@mail.gmail.com>
On 2013/5/22 12:34, Ming Lei wrote:
> On Wed, May 22, 2013 at 12:19 PM, Ming Lei <tom.leiming@gmail.com> wrote:
>> On Wed, May 22, 2013 at 12:15 PM, Ming Lei <tom.leiming@gmail.com> wrote:
>>> On Tue, May 21, 2013 at 11:56 AM, zhangwei(Jovi)
>>>
>>> Nice job, I have run it on ARM already with only one line change.
>>>
>>> But looks 'Control-C' can't stop the tracing or need some time to complete it,
>>> see below:
>>
>> Sometimes, it doesn't work:
>>
>> $ sudo ./ktap ./scripts/kretprobe.kp
>> ......
>> vfs_read! (execname sshd); retval:38
>> ^Cvfs_read! (execname sshd); retval:38
>>
>> probe ending
>> vfs_read! (execname sshd); retval:48
>> vfs_read! (execname sshd); retval:2
>> ^C
>> ^C^C^C
>> ^C^C^C^C^C^C^C
>>
>> ^C^C^C^C^C^C
>
> This one can be fixed by below patch, but can't work on
> the last one.
>
> diff --git a/vm.c b/vm.c
> index c5f5733..a24a389 100644
> --- a/vm.c
> +++ b/vm.c
> @@ -1060,7 +1060,7 @@ ktap_State *kp_newthread(ktap_State *mainthread)
>
> void kp_user_complete(ktap_State *ks)
> {
> - if (!ks || !G(ks)->user_completion)
> + if (!ks || !G(ks) || !G(ks)->user_completion)
> return;
>
> complete(G(ks)->user_completion);
>
>
>
> Thanks,
>
Hi Ming,
Thanks for testing and your fix.
the ktap exit mechanism is not quite safe as you saw, so I plan to rewrite the logic
to make more safer, hopefully I could complete this work in next few days.
.jovi
prev parent reply other threads:[~2013-05-22 7:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-21 3:56 [ANNOUNCE] ktap 0.1 released zhangwei(Jovi)
2013-05-21 18:13 ` Frank Ch. Eigler
2013-05-24 3:17 ` zhangwei(Jovi)
2013-05-21 22:19 ` Jonathan Corbet
2013-05-22 3:29 ` zhangwei(Jovi)
2013-05-22 4:15 ` Ming Lei
2013-05-22 4:19 ` Ming Lei
2013-05-22 4:34 ` Ming Lei
2013-05-22 7:00 ` zhangwei(Jovi) [this message]
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=519C6CF3.1010502@huawei.com \
--to=jovi.zhangwei@huawei.com \
--cc=linux-kernel@vger.kernel.org \
--cc=tom.leiming@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.