The NetBSD Project

CVS log for src/lib/libpthread/Attic/pthread_debug.c

[BACK] Up to [cvs.NetBSD.org] / src / lib / libpthread

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.13.2.1, Wed Jan 9 01:36:34 2008 UTC (16 years, 3 months ago) by matt
Branch: matt-armv6
Changes since 1.13: +2 -2 lines
FILE REMOVED

sync with HEAD

Revision 1.15, Mon Nov 19 15:14:12 2007 UTC (16 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, yamt-pagecache-tag8, yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, mjf-devfs2-base, mjf-devfs2, matt-nb5-pq3-base, matt-nb5-pq3, matt-armv6-nbase, localcount-20160914, keiichi-mipv6-base, keiichi-mipv6, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, hpcarm-cleanup-nbase, hpcarm-cleanup-base, cube-autoconf-base, cube-autoconf, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2, agc-symver-base, agc-symver, HEAD
Changes since 1.14: +2 -2 lines
FILE REMOVED

Remove the debuglog stuff. ktrace is more useful now.

Revision 1.14 / (download) - annotate - [select for diffs], Tue Nov 13 15:57:11 2007 UTC (16 years, 5 months ago) by ad
Branch: MAIN
Changes since 1.13: +4 -4 lines
Diff to previous 1.13 (colored)

For PR bin/37347:

- Override __libc_thr_init() instead of using our own constructor.
- Add pthread__getenv() and use instead of getenv(). This is used before
  we are up and running and unfortunatley getenv() takes locks.

Other changes:

- Cache the spinlock vectors in pthread__st. Internal spinlock operations
  now take 1 function call instead of 3 (i386).
- Use pthread__self() internally, not pthread_self().
- Use __attribute__ ((visibility("hidden"))) in some places.
- Kill PTHREAD_MAIN_DEBUG.

Revision 1.12.2.1 / (download) - annotate - [select for diffs], Mon Sep 3 10:14:15 2007 UTC (16 years, 7 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.12: +16 -20 lines
Diff to previous 1.12 (colored) next main 1.13 (colored)

Sync with HEAD.

Revision 1.13 / (download) - annotate - [select for diffs], Thu Aug 16 12:01:49 2007 UTC (16 years, 8 months ago) by ad
Branch: MAIN
CVS Tags: nick-csl-alignment-base5, nick-csl-alignment-base4, nick-csl-alignment-base3, matt-armv6-prevmlocking, matt-armv6-base
Branch point for: matt-armv6
Changes since 1.12: +16 -20 lines
Diff to previous 1.12 (colored)

- Reinitialize the absolute minimum when recycling user thread state.
  Chops another ~10% off create/join in a loop on i386.
- Disable low level debugging as this is stable. Improves benchmarks
  across the board by a small percentage. Uncontested mutex acquire
  and release in a loop becomes about 8% quicker.
- Minor cleanup.

Revision 1.12 / (download) - annotate - [select for diffs], Fri Mar 2 18:53:52 2007 UTC (17 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: nick-csl-alignment-base2, nick-csl-alignment-base, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: nick-csl-alignment
Changes since 1.11: +6 -20 lines
Diff to previous 1.11 (colored)

Remove the PTHREAD_SA option. If M:N threads is reimplemented it's
better off done with a seperate library.

Revision 1.11 / (download) - annotate - [select for diffs], Sat Jan 20 18:57:41 2007 UTC (17 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.10: +4 -10 lines
Diff to previous 1.10 (colored)

remove unused variable/code.

Revision 1.10 / (download) - annotate - [select for diffs], Sat Dec 23 05:14:47 2006 UTC (17 years, 4 months ago) by ad
Branch: MAIN
Changes since 1.9: +16 -3 lines
Diff to previous 1.9 (colored)

Conditionalised support for 1:1 threads. Needs associated kernel changes
and more work to be useful.

Revision 1.9 / (download) - annotate - [select for diffs], Thu Dec 14 20:40:57 2006 UTC (17 years, 4 months ago) by ad
Branch: MAIN
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

pthread__debuglog_printf(): check for linebuf == NULL.

Revision 1.8 / (download) - annotate - [select for diffs], Sun Mar 14 01:19:41 2004 UTC (20 years, 1 month ago) by cl
Branch: MAIN
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.7: +62 -14 lines
Diff to previous 1.7 (colored)

add libpthread part of concurrency support for SA on MP systems
- enable concurrency according to environment variable PTHREAD_CONCURRENCY
- add idle VP wakeup if there are additional jobs and idle VPs
- make reidlequeue per VP
- enable spinning for locks
- fix race condition in alarm processing
- fix race condition in mutex locking
- make debugging output line buffered and add VP prefix to debug lines

Revision 1.7 / (download) - annotate - [select for diffs], Fri Jan 2 14:13:16 2004 UTC (20 years, 3 months ago) by cl
Branch: MAIN
Changes since 1.6: +15 -4 lines
Diff to previous 1.6 (colored)

logging/debugging changes:
- add PTHREAD_PID_DEBUG which prints the pid before each debuglog line
- output thread returned in pthread__next
- add asserts in pthread__sched akin to asserts in pthread__sched_bulk:
  check if scheduled thread is at front/end of queue
- pthread__upcall: output event/interrupted LWP count instead of LWPid
  of the first event/interrupted LWP (since unblock upcalls can have
  multiple event LWPs).
- pthread__find_interrupted: output LWPid here

Revision 1.6 / (download) - annotate - [select for diffs], Mon Jun 16 21:24:48 2003 UTC (20 years, 10 months ago) by nathanw
Branch: MAIN
Changes since 1.5: +27 -16 lines
Diff to previous 1.5 (colored)

Dodge a potential race condition in pthread__debuglog_printf(). It's
still possible for multiple threads to write into the same space, but
they shouldn't be able to corrupt the write pointer in the process.

Also, check for pointer-lapping a bit more carefully in the wrap
vs. non-wrap case.

Revision 1.5 / (download) - annotate - [select for diffs], Wed Apr 16 17:37:47 2003 UTC (21 years ago) by nathanw
Branch: MAIN
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)

Fix a fencepost error in writing to the debug buffer.

Revision 1.4 / (download) - annotate - [select for diffs], Sat Mar 8 08:03:35 2003 UTC (21 years, 1 month ago) by lukem
Branch: MAIN
Changes since 1.3: +4 -1 lines
Diff to previous 1.3 (colored)

add __RCSID()

Revision 1.3 / (download) - annotate - [select for diffs], Sat Jan 18 18:45:53 2003 UTC (21 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.2: +11 -9 lines
Diff to previous 1.2 (colored)

de-lint

Revision 1.2 / (download) - annotate - [select for diffs], Sat Jan 18 10:34:15 2003 UTC (21 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.1: +168 -0 lines
Diff to previous 1.1 (colored)

Merge the nathanw_sa branch.

Revision 1.1.2.12 / (download) - annotate - [select for diffs], Mon Jan 13 19:19:05 2003 UTC (21 years, 3 months ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.1.2.11: +5 -3 lines
Diff to previous 1.1.2.11 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Textual names for event counters.

Revision 1.1.2.11 / (download) - annotate - [select for diffs], Tue Oct 22 19:00:33 2002 UTC (21 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.1.2.10: +11 -4 lines
Diff to previous 1.1.2.10 (colored) to branchpoint 1.1 (colored)

Copy the debug counters before printing anything out, to avoid
observing the effect of printing them.

Revision 1.1.2.10 / (download) - annotate - [select for diffs], Mon May 20 17:52:08 2002 UTC (21 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.1.2.9: +2 -2 lines
Diff to previous 1.1.2.9 (colored) to branchpoint 1.1 (colored)

The temporary sprintf buffer doesn't need to be static.

Revision 1.1.2.9 / (download) - annotate - [select for diffs], Wed Apr 24 05:23:36 2002 UTC (22 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.1.2.8: +3 -1 lines
Diff to previous 1.1.2.8 (colored) to branchpoint 1.1 (colored)

Add a variable that tracks whether the process is being debugged.

Revision 1.1.2.8 / (download) - annotate - [select for diffs], Wed Feb 6 19:20:20 2002 UTC (22 years, 2 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.1.2.7: +25 -6 lines
Diff to previous 1.1.2.7 (colored) to branchpoint 1.1 (colored)

Move a couple of debugging declarations to pthread_debug.c, where they belong.

Add a debug routine to print the pthread event counters if the environment
variable PTHREAD_DEBUGCOUNTERS is set.

Revision 1.1.2.7 / (download) - annotate - [select for diffs], Mon Jan 28 18:38:56 2002 UTC (22 years, 2 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.1.2.6: +4 -5 lines
Diff to previous 1.1.2.6 (colored) to branchpoint 1.1 (colored)

Create the debug log with wider permissions.
Clean up a couple of error messages.

Revision 1.1.2.6 / (download) - annotate - [select for diffs], Sun Dec 30 02:25:39 2001 UTC (22 years, 3 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.1.2.5: +7 -1 lines
Diff to previous 1.1.2.5 (colored) to branchpoint 1.1 (colored)

Only do debug logging if the environment variable PTHREAD_DEBUGLOG is
set.

Revision 1.1.2.5 / (download) - annotate - [select for diffs], Tue Jul 31 00:15:03 2001 UTC (22 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.1.2.4: +4 -4 lines
Diff to previous 1.1.2.4 (colored) to branchpoint 1.1 (colored)

Add a "force" argument to pthread__debuglog_init(), to reset buffer
parameters even when the magic value seems okay.

Revision 1.1.2.4 / (download) - annotate - [select for diffs], Fri Jul 27 17:27:03 2001 UTC (22 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.1.2.3: +3 -2 lines
Diff to previous 1.1.2.3 (colored) to branchpoint 1.1 (colored)

Account for the size of the header structure when computing the usable
debug buffer size.

Revision 1.1.2.3 / (download) - annotate - [select for diffs], Wed Jul 25 23:56:06 2001 UTC (22 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.1.2.2: +5 -2 lines
Diff to previous 1.1.2.2 (colored) to branchpoint 1.1 (colored)

Fix printf-style varargs to err(); add some includes.

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Tue Jul 24 21:23:22 2001 UTC (22 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.1.2.1: +3 -3 lines
Diff to previous 1.1.2.1 (colored) to branchpoint 1.1 (colored)

Log the PID as well as the program name when starting up.

Revision 1.1.2.1 / (download) - annotate - [select for diffs], Tue Jul 17 20:22:41 2001 UTC (22 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.1: +129 -0 lines
Diff to previous 1.1 (colored)

Add a mechanisim for debugging that is less likely to change scheduling
behaviour than using printf (writing to a shared memory segment), and a
simple tool for dumping the buffer. Partly inspired by the kernel msgbuf
code.

Revision 1.1, Tue Jul 17 20:22:41 2001 UTC (22 years, 9 months ago) by nathanw
Branch: MAIN
CVS Tags: nathanw_sa_before_merge
Branch point for: nathanw_sa
FILE REMOVED

file pthread_debug.c was initially added on branch nathanw_sa.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>