summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* | Add callchain parsing to -lpmc.jkoshy2007-12-032-4/+36
| | | | | | | | Sponsored by: FreeBSD Foundation and Google Inc.
* | Replace a spurious cross-reference to hwpmc(4) with correct text.jkoshy2007-12-031-4/+2
| |
* | In scanf, round according to the current rounding mode.das2007-12-037-8/+20
| |
* | One more glue update for BIND 9.4.2dougb2007-12-021-0/+1
| |
* | Update glue for BIND 9.4.2dougb2007-12-027-9/+34
| |
* | For un-prototyped static inline functions declared in pthread_md.h onrwatson2007-12-012-3/+3
| | | | | | | | | | | | ia64, powerpc, and sparc64, use ANSI function headers and specifically indicate the lack of arguments with 'void'. Otherwise, warnings are generated at WARNS=3, leading to a compile failure with -Werror.
* | WARNS=3'ify.deischen2007-11-30120-159/+532
| |
* | Initialize the current thread and signal locks so that sigaction()deischen2007-11-301-5/+16
| | | | | | | | | | | | will work after a fork(). WARNS=3'ify.
* | To reduce the impact of possible removal of the syscalls required bybrooks2007-11-291-3/+6
| | | | | | | | | | | | | | | | | | | | libkse in FreeBSD 8.0, do not build or install static versions of libkse (i.e. libkse*.a) in the default case. Static versions will be built and installed if libthr is not built or if libkse is the default threading library. Discussed on: freebsd-arch MFC after: 3 days
* | Make sure GSS-API mechanisms are loaded if gss_acquire_cred is calleddfr2007-11-281-4/+3
| | | | | | | | | | | | | | with a null mechanism list. PR: misc/117349 Submitted by: Sean McNeil <sean at mcneil dot com>
* | Only zero large allocations when necessary (for calloc()).jasone2007-11-281-1/+1
| |
* | Fix pointer dereferencing problems in _pthread_mutex_init_calloc_cb() thatjasone2007-11-282-8/+5
| | | | | | | | were obscured by pseudo-opaque pthreads API pointer casting.
* | Add _pthread_mutex_init_calloc_cb to libc's map, for which malloc definesjasone2007-11-271-0/+1
| | | | | | | | a stub.
* | Document the B and L MALLOC_OPTIONS.jasone2007-11-271-1/+26
| |
* | Implement dynamic load balancing of thread-->arena mapping, based on lockjasone2007-11-271-58/+297
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | contention. The intent is to dynamically adjust to load imbalances, which can cause severe contention. Use pthread mutexes where possible instead of libc "spinlocks" (they aren't actually spin locks). Conceptually, this change is meant only to support the dynamic load balancing code by enabling the use of spin locks, but it has the added apparent benefit of substantially improving performance due to reduced context switches when there is moderate arena lock contention. Proper tuning parameter configuration for this change is a finicky business, and it is very much machine-dependent. One seemingly promising solution would be to run a tuning program during operating system installation that computes appropriate settings for load balancing. (The pthreads adaptive spin locks should probably be similarly tuned.)
* | Add _pthread_mutex_init_calloc_cb() to libthr and libkse, so that malloc(3)jasone2007-11-2710-28/+74
| | | | | | | | | | (part of libc) can use pthreads mutexes without causing infinite recursion during initialization.
* | Implement lazy deallocation of small objects. For each arena, maintain ajasone2007-11-271-0/+218
| | | | | | | | | | | | | | | | | | | | | | vector of slots for lazily freed objects. For each deallocation, before doing the hard work of locking the arena and deallocating, try several times to randomly insert the object into the vector using atomic operations. This approach is particularly effective at reducing contention for multi-threaded applications that use the producer-consumer model, wherein one producer thread allocates objects, then multiple consumer threads deallocate those objects.
* | Avoid re-zeroing memory in calloc() when possible.jasone2007-11-271-143/+218
| |
* | Fix stats printing of the amount of memory currently consumed by hugejasone2007-11-271-36/+37
| | | | | | | | | | | | | | | | | | | | | | allocations. [1] Fix calculation of the number of arenas when 'n' is specified via MALLOC_OPTIONS. Clean up various style inconsistencies. Obtained from: [1] NetBSD
* | - Allow source descriptors with no data to be used as arguments to thejkoshy2007-11-262-12/+5
| | | | | | | | | | | | | | | | | | elf{32,64}_xlateto[fm]() translation functions. This change makes our libelf compatible with other ELF(3) implementations. [1] - Update manual page to reflect this change. - Style fixes: wrap a long line. Submitted by: jb [1]
* | Move the added code in revision 1.26 into function pthread_key_create,davidxu2007-11-261-6/+6
| | | | | | | | it should be there.
* | - Add an overview of the pmc(3) API.jkoshy2007-11-251-532/+331
| | | | | | | | | | - Defer detailed descriptions of individual functions in the API to function-specific manual pages.
* | Move the following functions into their own manual pages:jkoshy2007-11-258-16/+772
| | | | | | | | | | | | | | | | | | | | | | - pmc_attach(), pmc_detach(). - pmc_capabilities(), pmc_cpuinfo(), pmc_ncpu(), pmc_npmc(), pmc_pmcinfo(), pmc_width(). - pmc_get_driver_stats(). - pmc_get_msr(). - pmc_read(), pmc_rw(), pmc_write(). - pmc_set(). - pmc_start(), pmc_stop().
* | - Describe function pmc_init() in its own manual page.jkoshy2007-11-253-5/+195
| | | | | | | | | | - Describe functions pmc_configure_logfile(), pmc_flush_logfile() and pmc_writelog() in their own manual page.
* | Hmmm, must get reading glasses or else change the font on my terminal. Thatmtm2007-11-241-1/+1
| | | | | | | | | | | | comma looks like a period. Noticed by: brueffer
* | Describe convenience functions `pmc_name_of_{capability,class,cputype,jkoshy2007-11-242-7/+147
| | | | | | | | disposition,event,mode,state}' in their own manual page.
* | Describe pmc_event_names_of_class() in its own manual page.jkoshy2007-11-232-2/+77
| |
* | Describe pmc_enable() and pmc_disable() in their own manual page.jkoshy2007-11-232-3/+101
| |
* | Describe pmc_allocate() and pmc_release() in their own manual page.jkoshy2007-11-232-3/+186
| |
* | Sections of type SHT_GNU_versym use ELF type ELF_T_HALF. Update manualjkoshy2007-11-232-1/+2
| | | | | | | | | | | | | | page and code to match. Submitted by: jb MFC After: 1 day
* | Use an intermediate pointer to avoid a strict aliasing warning.jb2007-11-231-1/+2
| |
* | Simplify code, fix a thread cancellation bug in sem_wait and sem_timedwait.davidxu2007-11-231-21/+15
| |
* | Reuse nwaiter member field to record number of waiters, in sem_post(),davidxu2007-11-211-7/+31
| | | | | | | | | | this should reduce the chance having to do a syscall when there is no waiter in the semaphore.
* | Remove warning level and aliasing restrictions.davidxu2007-11-211-2/+0
| |
* | Convert ceiling type to unsigned integer before comparing, fix compilerdavidxu2007-11-211-3/+3
| | | | | | | | warnings.
* | Add some function prototypes.davidxu2007-11-211-0/+5
| |
* | Remove umtx_t definition, use type long directly, add wrapper functiondavidxu2007-11-217-18/+31
| | | | | | | | | | _thr_umtx_wait_uint() for umtx operation UMTX_OP_WAIT_UINT, use the function in semaphore operations, this fixed compiler warnings.
* | Use an intermediate pointer to avoid a strict aliasing warning.jb2007-11-211-1/+2
| | | | | | | | | | | | Note that ULong in this code is actually defined as an unsigned integer across all arches so that the gdtoa() function always processes 32 bit data despite the unfortunate naming of "ULong".
* | Enclose entire header in #ifndef _LIBDISK_H_mtm2007-11-201-0/+5
| |
* | While checking over the libraries for 7.0-REL Kris found the followingkensmith2007-11-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | libraries had not had their versions bumped relative to 6.3-REL but had indeed been changed. We need to bump their version so they can be properly added to the compat6x port: libasn1.so.8 libgssapi.so.8 libhdb.so.8 libkadm5clnt.so.8 libkadm5srv.so.8 libkafs5.so.8 libkrb5.so.8 libobjc.so.2 MFC After: 1 day
* | These are the things that the tinderbox has problems with because itjb2007-11-202-0/+2
| | | | | | | | | | | | | | | | doesn't use the default CFLAGS which contain -fno-strict-aliasing. Until the code is cleaned up, just add -fno-strict-aliasing to the CFLAGS of these for the tinderboxes' sake, allowing the rest of the tree to have -Werror enabled again.
* | Use intermediate pointers to avoid strict alias type check failuresjb2007-11-207-15/+47
| | | | | | | | | | using gcc 4.2. This is required for tinderbox which doesn't have -fno-strict-aliasing in it's custom CFLAGS.
* | Change the casts from (pthread_mutex_t *) to (void *) to keep gcc quiet.cognet2007-11-191-3/+3
| | | | | | | | Anybody with a cleaner solution feel free to change it.
* | Bump up the number of ttys supported by pty(4) to 512 by making use ofjhb2007-11-191-1/+1
| | | | | | | | | | | | | | [pt]ty[lmnoLMNO][0-9a-v]. MFC after: 3 days Reviewed by: rwatson
* | MFlibthr:davidxu2007-11-191-1/+5
| | | | | | | | In _pthread_key_create() ensure that libkse is initialized.
* | Capitalizationmtm2007-11-181-1/+1
| |
* | Constify the first argument to expand_number() so that it canjb2007-11-183-3/+3
| | | | | | | | be called with a const without the compiler grisling.
* | Build libthread_db for arm as well.cognet2007-11-171-5/+1
| | | | | | | | MFC after: 1 week
* | Add arm support in libthread_db.cognet2007-11-171-0/+116
| |
* | Fix bug in handling SDP continuation state.emax2007-11-161-5/+5
| | | | | | | | | | Reported by: Eric Millbrandt emillbrandt at coldhaus dot com MFC after: 3 days
OpenPOWER on IntegriCloud