Commit Graph

156307 Commits

Author SHA1 Message Date
dsl eebb2036b8 Document 'systat syscall'. 2007-02-18 17:29:26 +00:00
ad 4de88fa799 Drop proc::p_smutex before calling cpu_getmcontext(). 2007-02-18 17:11:27 +00:00
dsl 49c5f0e9e5 Include code to display per system call counts and times. 2007-02-18 17:00:08 +00:00
dsl d64834e4f1 Add code to support per-system call statistics:
option SYSCALL_STATS	counts the number of times each system call is made
option SYSCALL_TIMES	counts the amount of time spent in each system call
Currently the counting hooks have only been added to the i386 system call
handler, and the time spent in interrupts is not subtracted.
It ought also be possible to add the times to the processes profiling
counters in order to get a more accurate user/system/interrupt split.
The counts themselves are readable via the sysctl interface.
2007-02-18 16:58:15 +00:00
ad 987a3f27ee Add missing headers. 2007-02-18 16:56:44 +00:00
ad e2147a0dfd + mutex.h, rwlock.h 2007-02-18 16:25:44 +00:00
ad 85fc2680c6 + mutex.h 2007-02-18 16:24:31 +00:00
ad 237f052be3 + mutex.h, rwlock.h 2007-02-18 16:18:25 +00:00
hannken 61eeb25754 Fix typo in last: Pk_32 -> PK_32 2007-02-18 16:17:26 +00:00
dsl ff6d800c8f Optimise canonicalisation of l_rtime for the case when the start and stop
times are in the same second.
2007-02-18 16:03:06 +00:00
briggs 5f2083f440 Install atomic.h, as needed by the installed rwlock.h. 2007-02-18 15:53:55 +00:00
dsl 6cdc9eacd6 There is no point acquiring locks if we don't do anything. 2007-02-18 15:51:54 +00:00
dsl c8acc5992d Update only user code that uses the types of the e_[pu]cred members
of struct kinfo_proc.
2007-02-18 15:22:44 +00:00
dsl 6209b5bbf3 The pre-kauth 'struct ucread' and 'struct pcred' are now only used in the
(depracted some time ago) 'struct kinfo_proc' returned by sysctl.
Move the definitions to sys/syctl.h and rename in order to ensure all the
users are located.
2007-02-18 15:20:34 +00:00
cube c7565916df Regen (missing lwp syscalls). 2007-02-18 15:00:14 +00:00
degroote 5bf3692f91 Fix the {ah,esp}4_ctlinput code 2007-02-18 14:28:25 +00:00
ad d266042a07 Release ufs_hashlock before calling ungetnewvnode(). 2007-02-18 14:26:52 +00:00
degroote b7fbb86788 Forgot to remove two useless extern 2007-02-18 14:13:52 +00:00
degroote b0339b36b0 Constify the code following the dyoung change ( the "bug" was hidden by the
extern declaration ).
While here, remove a Kame ifdef which is useless in netipsec code
2007-02-18 13:55:25 +00:00
martin c545f935c5 Make EMPTY expand to nop with gas, as it is used to mark empty branch
delay slots.
2007-02-18 13:28:28 +00:00
degroote 0a648e9c8b Remove __P
Remove useless extern
Use ansi declaration
2007-02-18 13:27:31 +00:00
wiz 784ece2d87 Improve wording, from Joerg Niendorf in PR 35660. 2007-02-18 12:33:47 +00:00
wiz 5c18c23b92 gcc-4.1.2 is out. 2007-02-18 12:29:24 +00:00
tsutsui 1359adc400 No need to specify BUS_DMA_ALLOCNOW for sglist map
since it will never be unloaded anyway.
2007-02-18 12:26:13 +00:00
tsutsui a632ff6d41 According to info from Byron Servies on port-cobalt,
the interrupt line from the primary (and only) tulip Ethernet
on Qube2700 is connected to CPU INT2, so handle it properly
in pci_intr_map(9).
2007-02-18 12:22:16 +00:00
tsutsui 14dfb0043c - KNF, ANSIfy, TAB/space cleanup
- unwrap some lines
- u_intNN_t -> uintNN_t
2007-02-18 12:16:14 +00:00
tsutsui bd2568487a KNF a bit. 2007-02-18 11:52:18 +00:00
dsl 923424a8c0 Keep proclist_lock held across p_find and use of result proc. 2007-02-18 11:45:35 +00:00
dsl 1564fa5d82 ANSI prototypes 2007-02-18 11:38:15 +00:00
dsl c7907fd992 Factor out the replicated code that verifies that the caller is allowed
to acces the required process into a separate function (hi cut and paste).
Acquire the proclist_lock across p_find().
2007-02-18 09:45:39 +00:00
cube c376ba15d1 Add missing lwp syscalls. Put them all together into a new file,
netbsd32_lwp.c, and remove remaining traces of SA.

This still needs some MD (and possibly MI, depending on the chosen
solution) changes to actually work.
2007-02-18 09:03:54 +00:00
macallan e8e145b6d9 fix typo - softintr.c is in arch/arm/arm/ not arch/arm/ 2007-02-18 08:10:41 +00:00
cube 061b57d684 Fix a couple missed occurrences of P_32 -> PK_32. 2007-02-18 08:08:41 +00:00
matt 981ae6645d Don't export spl_smasks or soft_interrupts. They are local to intr.c
Make sure that softintr_init() is called when needed.
Assume __HAVE_GENERIC_SOFT_INTERRUPTS is defined (since newlock2 requires it).
2007-02-18 07:48:20 +00:00
matt c51fe0708a Changes for newlock2. 2007-02-18 07:25:34 +00:00
matt 3a0eef4ed3 Add <arm/mutex.h> and <arm/rwlock.h>
Add atomic_cas to <arm/atomic.h> for use by <rwlock.h>
2007-02-18 07:24:42 +00:00
matt 37f7079751 Call softintr_init() 2007-02-18 07:20:40 +00:00
matt 6aa56b9197 Compile in arm/arm/softintr.c 2007-02-18 07:17:57 +00:00
dyoung 3365b046ad Use satocsin to cast to const struct sockaddr_in *. 2007-02-18 07:17:48 +00:00
matt d44aac9ad3 Map IPL_SOFTxxx to SI_SOFTxxx. 2007-02-18 07:17:18 +00:00
matt 39cadbf356 Add __HAVE_GENERIC_SOFT_INTERRUPTS support for shark. This was done by
extenting the current arm generic intrs to support softintrs.  Add
IPL_SOFTCLOCK, IPL_SOFTNET, IPL_SOFTSERIAL.
2007-02-18 07:13:17 +00:00
dogcow 27a0c93811 constify struct sockaddr. 2007-02-18 06:20:10 +00:00
dyoung 2d212326ef Use the new ifnet->if_output signature, the one with a const
argument, when __NetBSD__Version >= 499001100.
2007-02-18 04:01:27 +00:00
dyoung c0e346c1a9 Hello, NetBSD 4.99.11. (For ifnet change.) 2007-02-18 03:54:34 +00:00
dogcow 51701d90f7 constify struct sockaddr for no_output and write_output, due to if.h 1.122 2007-02-18 03:22:03 +00:00
tsutsui dbc219b5ff Add a missing break, which causes bogus debug messages on
check condition during device probe.
2007-02-18 02:46:44 +00:00
tsutsui 6b5f49046d Install mutex.h and rwlock.h. 2007-02-18 02:45:31 +00:00
hubertf 96ed6e7862 Make this compile after TSEL() const poisoning
OK'd by dyoung@
2007-02-18 01:56:17 +00:00
pooka 7b63f0de5d Don't check for validity of p in lookup for root nodes, since it
will always be NULL.  Rather, just call pt_valid with NULL directly
and let it decide if we're a linux mount or not.
2007-02-18 01:55:26 +00:00
hubertf 6eb43c8c6d TSEL() is const char* now 2007-02-18 01:48:37 +00:00