陶捷 Euler Tao
2007-Apr-20 17:57 UTC
[dtrace-discuss] something puzzled in libdtrace source code
Dear all: I''m reading the dtrace source code now. I found "NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*elf));" appears many times when I came to the libdtrace part. The tools I used is source insight, but it could not report any useful information about "NOW_INVISIBLE_TO_OTHER_THREADS" to me, neither declaration nor definition of it. Then I tried to use ggrep command, "ggrep -R -I -n NOW_INVISIBLE_TO_OTHER_THREADS", but it was only report the usage of it. e.g. ./cmd/syslogd/syslogd.c:801: _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*mp)) I was puzzled about this. Where was the definition and declaration of NOW_INVISIBLE_TO_OTHER_THREADS? Thanks in advance. Regards TJ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/dtrace-discuss/attachments/20070421/9d6bdb59/attachment.html>
Rayson Ho
2007-Apr-20 18:02 UTC
[dtrace-discuss] something puzzled in libdtrace source code
This article helps: http://developers.sun.com/sunstudio/articles/locklint.html Rayson On 4/20/07, ?? Euler Tao <eulertao at gmail.com> wrote:> Dear all: > > I''m reading the dtrace source code now. I found > "NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*elf));" appears many > times when I came to the libdtrace part. > The tools I used is source insight, but it could not report any useful > information about "NOW_INVISIBLE_TO_OTHER_THREADS" to me, > neither declaration nor definition of it. > > Then I tried to use ggrep command, "ggrep -R -I -n > NOW_INVISIBLE_TO_OTHER_THREADS", but it was only report the > usage of it. > e.g. ./cmd/syslogd/syslogd.c:801: > _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*mp)) > > I was puzzled about this. Where was the definition and declaration of > NOW_INVISIBLE_TO_OTHER_THREADS? > > Thanks in advance. > > Regards > TJ > > _______________________________________________ > dtrace-discuss mailing list > dtrace-discuss at opensolaris.org >
陶捷 Euler Tao
2007-Apr-21 06:33 UTC
[dtrace-discuss] something puzzled in libdtrace source code
oh, I see. thank you :) 2007/4/21, Rayson Ho <rayrayson at gmail.com>:> > This article helps: > > http://developers.sun.com/sunstudio/articles/locklint.html > > Rayson > > > > On 4/20/07, ?? Euler Tao <eulertao at gmail.com> wrote: > > Dear all: > > > > I''m reading the dtrace source code now. I found > > "NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*elf));" appears many > > times when I came to the libdtrace part. > > The tools I used is source insight, but it could not report any useful > > information about "NOW_INVISIBLE_TO_OTHER_THREADS" to me, > > neither declaration nor definition of it. > > > > Then I tried to use ggrep command, "ggrep -R -I -n > > NOW_INVISIBLE_TO_OTHER_THREADS", but it was only report the > > usage of it. > > e.g. ./cmd/syslogd/syslogd.c:801: > > _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*mp)) > > > > I was puzzled about this. Where was the definition and declaration of > > NOW_INVISIBLE_TO_OTHER_THREADS? > > > > Thanks in advance. > > > > Regards > > TJ > > > > _______________________________________________ > > dtrace-discuss mailing list > > dtrace-discuss at opensolaris.org > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/dtrace-discuss/attachments/20070421/c0b1da6f/attachment.html>