Displaying 20 results from an estimated 26 matches for "curthread".
Did you mean:
cur_thread
2007 Feb 21
6
CPU stats problem
...hrtime_t timeuser;
this hrtime_t timesystem;
this hrtime_t timewait;
this int in;
dtrace:::BEGIN
{
this -> start = timestamp;
this -> timeidle = 0;
this -> timeuser = 0;
this -> timesystem = 0;
this -> timewait = 0;
this -> in = 0;
}
sched:::on-cpu
{
this -> timeidle = curthread -> t_cpu -> cpu_acct[2];
this -> timeuser = curthread -> t_cpu -> cpu_acct[0];
this -> timesystem = curthread -> t_cpu -> cpu_acct[1];
this -> in = 1;
}
sched:::off-cpu
/this->in/
{
@user = sum(curthread->t_cpu->cpu_acct[0] - this...
2011 Jun 02
0
Debian 6.0 + Xen4.0 + FreeBSD hvm amd64 -> fpudna: fpcurthread == curthread XXXX times
Hello,
I''m working with full virtual FreeBSD 8.2-RELEASE-p1 amd64 domU under debian
squeeze and xen-hypervisor-4.0-amd64.
If I cfg this hvm with cpu > 4 :
vcpus = 5
the server is blocked by these messages :
fpudna: fpcurthread == curthread XXXX times
The machine is pingable but I''m unable to ssh to it.
On single user, freebsd works fine, fsck an so on ok, but when switching to
multiuser these fpudna messages start flooding.
I''ve googled but haven''t found anything; something from 2005 about
f...
2013 Jun 06
1
Reproducable Infiniband panic
Hello,
I see a reproducable panic when doing ibping and aborting it with ^C. My
setup is two machines with Mellanox Infinihost III HCAs (one Linux one
FreeBSD) connected back-to-back.
Details below. I can upload 2 crash dumps, if this is useful. For some
reason the port doesn't become ACTIVE, so no packets arrive, but that is
probably unrelated.
% uname -a
FreeBSD cosel.inf.tu-dresden.de
2008 Mar 04
0
Determining curthread pointer (ulwp_t) via libproc on i386
How would I determine the address of the ulwp_t structure for the
current thread of a process from a 32-bit i386 executable looking at a
32-bit executable? (This is in support of a fix for 6593259:
"libdtrace should prefer pid probes to breakpoints".)
For example, if I compile the following code 64-bit snippet, I can get
that address from 32-bit or 64-bit executables:
2006 Jul 17
7
access to errno when using pid provider
I would like to know how to get access to errno when using pid provider to probe calls to
libc functions like fopen(). The built-in errno appears to be only for system calls. What I''d
like to be able to do is investigate where in an application I''m encountering EMFILE and
what the stack looks like at the time.
This message posted from opensolaris.org
2006 Feb 15
4
Script for Stackdepth by Thread/LWP?
I''m interested in monitoring the amount of stack used by a multi-threaded program. I assume ''stackdepth'' built-in would be useful...but not sure. Been through demo''s, ToolKit, and internals..but it''s just not clicking for me yet.
Not sure how to measure start/end of stack size dynamically...Anyone know how to break this down?
This message posted from
2007 Feb 14
10
Asynchronous signal handling in fasttrap provider
Hi,
I was going through the implementation of the fasttrap provider. I found
that when displaced execution happens (ie., when the instruction traced is
being executed out of the scratch space) if an asynchrnous signal comes we
need to defer the delivery.
Can somebody explain why this is necessary and how is it implemented?
Thanks in advance
Saravanan S
-------------- next part --------------
An
2008 Oct 01
5
ustack()s of SIGSEGV''ed programs
Hi all,
I am trying to write a D script which would print ustack() for every
program in the system receiving SIGSEGV. All the stacks printed in
trap()/sigtoproc() context do not have meaningful symbols.
The following solves the problem to some degree but I''d much rather have
a self-contained D script.
dtrace -w -n ''fbt:genunix:sigtoproc:entry/arg2 == 11/ {
2006 Jun 02
5
Read-write locks in libzpool
Hi,
I think I found a bug in the rw_enter() implementation (emulation?) in
libzpool, file /usr/src/lib/libzpool/common/kernel.c:
void
rw_enter(krwlock_t *rwlp, krw_t rw)
{
ASSERT(!RW_LOCK_HELD(rwlp));
ASSERT(rwlp->rw_owner != (void *)-1UL);
ASSERT(rwlp->rw_owner != curthread);
if (rw == RW_READER)
(void) rw_rdlock(&rwlp->rw_lock);
else
(void) rw_wrlock(&rwlp->rw_lock);
rwlp->rw_owner = curthread;
}
Doesn''t RW_LOCK_HELD() check if there''s a reader or a writer locked? If it
does, then these read-write locks would produce an a...
2007 Aug 29
6
How do I look up syscall name
I''m using a fbt probe where I get a system call id as an argument, how do I look up the name of it? At the moment I''m post-processing the output using /etc/name/to_sysnum but that doesn''t feel right :)
cheers,
/Martin
--
This message posted from opensolaris.org
2003 Aug 04
0
Thread woes after 4.7 - 4.8 upgrade
...so.1...done.
#0 0x2811a781 in _spinlock_debug () from /usr/lib/libc_r.so.4
(gdb) bt full
#0 0x2811a781 in _spinlock_debug () from /usr/lib/libc_r.so.4
No symbol table info available.
#1 0x2811e726 in _pthread_mutex_lock (mutex=0x80b99d4) at
/usr/src/lib/libc_r/uthread/uthread_mutex.c:445
curthread = (struct pthread *) 0x8075800
ret = 0
#2 0x8067576 in ldap_pvt_thread_mutex_lock (mutex=0x80b99d4) at
thr_posix.c:165
mutex = (ldap_pvt_thread_mutex_t *) 0x1
#3 0x804b832 in slapd_daemon (port=0x185) at daemon.c:344
from = {sin_len = 16 '\020', sin_family = 2 '...
2007 May 30
5
Determining Parent''s execname
Hi,
I''m trying to trace the io of a given file, but I have a feeling that it''s been
done via a script, as such I''d like to be able to tell the names of the calling
processe tree, similar to what ptree produces.
Is there any way to get this information without running ptree using system()?
Thanks,
Darren.
2006 Jun 03
8
dtrace causing sigtrap?
Just to let people know what my big picture is, I''m trying to write a script
that will let me run a program, and name a progeny of that program
that I want to debug. My script should find the first occurrence
of that progeny, and run it until it finishes initializing the
runtime linker, but stop it before it runs any shared library startup
routines. (Failing that, I''d be okay
2007 Feb 14
1
Re: qemu-0.9.0 with initial tap interface
...s10/s11, so that the statement...
struct kqemu_user_page * CDECL
kqemu_lock_user_page(unsigned long *ppage_index, unsigned long user_addr)
{
proc_t *p = curproc;
sets ''p'' to a junk proc_t*.
% grep curproc /usr/include/sys/thread.h
#define curproc (ttoproc(curthread)) /* current process pointer */
Compiling on S9 for S9 might fix it, but I''ve not yet tested that...
2013 Jul 07
1
Shutdown hangs on unmount of a gjournaled file system in 8-Stable
...,
(kgdb) list
1272 while (mp->mnt_kern_flag & MNTK_SUSPEND)
1273 msleep(&mp->mnt_flag, MNT_MTX(mp), PUSER - 1,
"wsuspfs", 0);
1274 mp->mnt_kern_flag |= MNTK_SUSPEND;
1275 mp->mnt_susp_owner = curthread;
1276 if (mp->mnt_writeopcount > 0)
1277 (void) msleep(&mp->mnt_writeopcount,
1278 MNT_MTX(mp), (PUSER - 1)|PDROP, "suspwt", 0);
1279 else
1280 MNT_IUNLOCK(mp);
1281 if ((error = VFS_SYN...
2004 Sep 17
1
Fwd: FreeBSD kernel buffer overflow
...from a syscall and copying
>them in a kspace
>pointer in order to accessing them. The code to do that is the following:
>
>void
>syscall(frame)
> struct trapframe frame;
>{
> caddr_t params;
> struct sysent *callp;
> struct thread *td = curthread;
> struct proc *p = td->td_proc;
> register_t orig_tf_eflags;
> u_int sticks;
> int error;
> int narg;
> int args[8];
> u_int code;
>
>
> ...
>
>
> narg = callp->sy_narg & SYF_AR...
2008 Apr 01
10
Request for code review: the brendan() action
This came up as an RFE during the conference (I believe it''s been logged
as "4012008: brendan() action needed for DTrace Toolkit".)
As everyone here is aware, DTrace is not quite as user friendly as it
could be. For the uninitiated, it can be confusing to run a DTrace
script and not see the expected output. Brendan Gregg has addressed
this in the DTrace Toolkit[1] by
2013 Jul 22
2
stopping amd causes a freeze
Occasionally stopping amd freezes my system. It's a rare occurrence,
and I haven't found a reliable way to reproduce it.
It's also a real freeze, so there's no way to get into the debugger
or grab a core dump. I only can perform the 4 seconds hard shutdown to
revive the system.
I run amd through sysutils/automounter, which is a scripting solution
that generates an amd.map file
2008 Oct 14
1
FreeBSD 7-STABLE, isp(4), QLE2462: panic & deadlocks
...[idle: cpu6]
11 0 0 0 RL CPU 7 [idle: cpu7]
1 0 1 0 SLs wait 0xc6793ae0 [init]
10 0 0 0 SL audit_wo 0xc0cb40a4 [audit]
0 0 0 0 SLs sched 0xc0c542c0 [swapper]
db> show pcpu
cpuid = 1
curthread = 0xc74c6690: pid 768 "bsdtar"
curpcb = 0xed2ddd90
fpcurthread = none
idlethread = 0xc67a7460: pid 17 "idle: cpu1"
APIC ID = 1
currentldt = 0x50
spin locks held:
db> show allpcpu
Current CPU: 1
cpuid = 0
curthread = 0xc67a7230: pid 18 "idle:...
2008 Oct 02
0
Comments for squeue.c; part 2.
...ole reenter thing is quite a hack that at least requires clear explanation.
12.
715 if (!(sqp->sq_state & SQS_REENTER) &&
716 (process_flag != SQ_FILL) && (sqp->sq_first == NULL) &&
717 (sqp->sq_run == curthread) && (cnt == 1) &&
718 (connp->conn_on_sqp == B_FALSE)) {
How can it happen that sq_run != NULL && connp->conn_on_sqp == B_FALSE?
13.
630 if (connp->conn_sqp == sqp) {
631 SQUEUE_DBG_S...