The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/gdbscripts/lwps

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 #       $NetBSD: lwps,v 1.1.24.1 2009/08/07 06:20:31 snj Exp $
    2 
    3 define lwps
    4         set $i = 0
    5 
    6         while ($i < 2)
    7                 if ($i == 0)
    8                         set $p = allproc.lh_first
    9                 end
   10                 if ($p)
   11                         printf "\t     lwp   pid   lid     flag            wchan\n"
   12                 end
   13                 while ($p)
   14                         set $l = $p->p_lwps.lh_first
   15                         set $j = 0
   16                         while ($j < $p->p_nlwps)
   17                                 printf "%16lx %5d %5d %8x %16lx", \
   18                                         $l, $p->p_pid, $l->l_lid, $l->l_flag, $l->l_wchan
   19                                 if ($l->l_wmesg)
   20                                         printf " (%s)", (char *)$l->l_wmesg
   21                                 end
   22                                 set $l = $l->l_sibling.le_next
   23                                 printf "\n"
   24                                 set $j++
   25                         end
   26                         set $p = $p->p_list.le_next
   27                 end
   28                 set $i++
   29         end
   30 end

Cache object: 11cfe8ec1eef88e62b03570d33a578f2


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.