diff options
author | Ulrich Drepper <drepper@redhat.com> | 1997-08-08 00:36:47 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1997-08-08 00:36:47 +0000 |
commit | a3412bbd3d319f26507f1ea968bda97df7d21c0c (patch) | |
tree | 5dae4ad9b9e414d84ec2019ceb9a5bee9dd7cd4e /sunrpc/publickey.c | |
parent | 21b29282a26415a96e2f84c38c48d5c215ce1bb8 (diff) |
(profile_waiter): Do vm_deallocate
after releasing lock. Use special RPC stubs and avoid assert,
thus making this function entirely independent of the threadvar
mechanism and of cthreads.
(lock): Convert to be a spin lock instead of a mutex, so that the
waiter thread need not use cthreads. Use a fork prepare hook
instead of _hurd_fork_locks to make sure we are clean before
forking.
(fork_profil_child): Renamed from fork_profil.
(profil_reply_port): New variable.
(profil_vm_deallocate, profil_task_get_sampled_pcs): Special RPC
stubs made by special hacks.
(fetch_samples): New function, guts from profile_waiter.
(profile_waiter): Use fetch_samples.
(profil): When turning off profiling, fetch the last bunch of
samples before disabling PC sampling.
(fetch_samples): Add prototype.
(fetch_samples): Sample buffer need not be vm_deallocated; it's a stack buffer.
(profil_vm_deallocate): Delete prototype.
(#include <../mach/RPC_vm_deallocate_rpc.c>): Drop this inclusion.
(fetch_samples): Initialize NSAMPLES.
(fetch_samples): Do arithmetic on PC's in long long to avoid overflow.
(fetch_samples): Put parens in the right place.
Diffstat (limited to 'sunrpc/publickey.c')
0 files changed, 0 insertions, 0 deletions