mirror_frr/lib
Donald Sharp a2012b80b1 lib: Slight Optimization of thread handling.
This commit does these things:

1) Make thread_add_unuse own the setting of THREAD_UNUSED.
2) Move thread->hist finding to to thread_get.
   We are storing the thread->hist even when the thread
   is on the unused.  This means that we check to see
   if the funcname or func have changed and we get new
   history.  Else we've probably just retrieved the last
   unused which has the same func/funcanme.  This is
   a common practice to do THREAD_OFF/THREAD_ON in
   quick succession.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com.
2016-12-21 20:26:14 -05:00
..
.gitignore lib: add grammar_sandbox to .gitignore 2016-12-20 06:39:37 +00:00
agentx.c lib: AgentX: use threads instead of eventloop hack 2016-07-28 07:27:47 -04:00
bfd.c *: split & distribute memtypes and stop (re|ab)using lib/ MTYPEs 2016-09-19 16:31:04 -04:00
bfd.h Expand #defines in command strings 2016-09-25 16:49:39 +00:00
bitfield.h Merge remote-tracking branch 'cmaster-next' into cmaster-next-releng 2016-11-19 11:58:52 +01:00
buffer.c *: split & distribute memtypes and stop (re|ab)using lib/ MTYPEs 2016-09-19 16:31:04 -04:00
buffer.h 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
checksum.c lib: force local MIN/MAX macros 2016-09-23 12:12:17 -04:00
checksum.h lib: improve fletcher checksum validation 2012-10-25 10:15:58 -07:00
command_lex.l lib: parser: accept number-only word tokens 2016-12-16 20:48:31 +01:00
command_match.c lib: parser: move allowrepeat to cmd_token 2016-12-16 20:42:01 +01:00
command_match.h lib, vtysh: Fix memory leaks, change cmd_element to const 2016-11-12 01:06:32 +00:00
command_parse.y lib: parser: remove startnode & sentence_root 2016-12-16 20:48:31 +01:00
command.c lib: fix crash when tab-completing do ... commands 2016-12-18 05:14:55 +00:00
command.h lib: parser: move allowrepeat to cmd_token 2016-12-16 20:42:01 +01:00
csv.c *: Fix up licensing to be right 2016-11-18 10:14:03 -05:00
csv.h *: Fix up licensing to be right 2016-11-18 10:14:03 -05:00
distribute.c vtysh: fix some macro breakage 2016-11-23 08:32:30 +01:00
distribute.h lib: Make distribute.c accepts both v4 and v6. 2016-09-26 10:52:41 -04:00
event_counter.c lib: add event_counter 2016-10-18 08:39:23 -04:00
event_counter.h lib: add event_counter 2016-10-18 08:39:23 -04:00
fifo.h lib, bgpd: Remove 'struct fifo' from lib/zebra.h 2016-09-16 21:22:30 -04:00
filter.c lib: Fix ipv6 access-list... and ipv6 prefix-list... 2016-11-18 21:27:30 +00:00
filter.h lib, bgpd, tests: Refactor FILTER_X in zebra.h 2016-08-16 11:00:22 -04:00
getopt1.c *: make sure zebra.h is always included first 2016-06-09 10:45:22 -04:00
getopt.c *: make sure zebra.h is always included first 2016-06-09 10:45:22 -04:00
getopt.h 2005-08-10 Greg Troxel <gdt@fnord.ir.bbn.com> 2005-08-10 13:20:03 +00:00
gitversion.pl build: fix minimal mixup in gitinfo suffix 2013-04-09 17:05:08 +02:00
grammar_sandbox.c lib: parser: refresh grammar_sandbox 2016-12-15 23:07:45 +01:00
grammar_sandbox.h lib: parser: refresh grammar_sandbox 2016-12-15 23:07:45 +01:00
graph.c Merge remote-tracking branch 'origin/cmaster-next' into vtysh-grammar 2016-09-20 21:17:34 -04:00
graph.h lib: parser: move allowrepeat to cmd_token 2016-12-16 20:42:01 +01:00
hash.c *: split & distribute memtypes and stop (re|ab)using lib/ MTYPEs 2016-09-19 16:31:04 -04:00
hash.h *: split & distribute memtypes and stop (re|ab)using lib/ MTYPEs 2016-09-19 16:31:04 -04:00
if_rmap.c lib: lib compiles 2016-09-23 21:34:33 +00:00
if_rmap.h 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
if.c lib: remove vty->index 2016-12-09 17:36:25 +01:00
if.h Merge branch 'queue/osr/vtysh-generic' 2016-12-05 20:04:08 +01:00
imsg-buffer.c ldpd: adapt the code for Quagga 2016-09-23 09:31:09 -04:00
imsg.c ldpd: adapt the code for Quagga 2016-09-23 09:31:09 -04:00
imsg.h ldpd: copy original sources from OpenBSD (14/09/2016) 2016-09-23 09:31:05 -04:00
jhash.c Fix most compiler warnings in default GCC build. 2016-05-26 18:57:39 +00:00
jhash.h Fix arm compilation failures of sockunion_hash issues 2015-09-08 13:26:57 -07:00
json.c Merge branch 'cmaster-next' into vtysh-grammar 2016-10-21 19:49:16 +00:00
json.h *: add #include "command.h" where needed 2016-11-29 14:15:05 +01:00
keychain.c lib: remove vty->index 2016-12-09 17:36:25 +01:00
keychain.h lib: qobj: register ifaces, routemaps & keychains 2016-10-07 09:09:51 -04:00
libospf.h ospfd/ospf6d/zebra: Change interface bandwidth range and auto-cost range to 100G 2016-06-13 09:06:45 -04:00
linklist.c *: split & distribute memtypes and stop (re|ab)using lib/ MTYPEs 2016-09-19 16:31:04 -04:00
linklist.h lib: linklist: clean up insert-before/after dups 2016-07-28 07:27:47 -04:00
log.c lib, pimd, zebra: Allow pimd to ask the kernel about mroute info 2016-12-21 20:26:06 -05:00
log.h Merge branch 'cmaster-next' into vtysh-grammar 2016-11-12 05:17:37 +00:00
Makefile.am lib: Add Timer Wheel functionality 2016-12-21 20:26:13 -05:00
md5.c *: fix signedness mix-ups 2016-06-07 08:47:49 -04:00
md5.h *: fix signedness mix-ups 2016-06-07 08:47:49 -04:00
memory_vty.c build: massively remove needless checks 2016-11-15 14:23:17 +09:00
memory_vty.h lib: clean/restore memory debugging functions 2016-09-19 16:31:08 -04:00
memory.c lib: replace MIT license with ISC 2016-12-01 17:18:57 +01:00
memory.h lib: replace MIT license with ISC 2016-12-01 17:18:57 +01:00
mpls.h mpls: add support for LDP LSPs 2016-09-23 09:31:12 -04:00
network.c lib, pimd: Modify writen to retry on certain failures 2016-12-21 20:26:10 -05:00
network.h lib: add and use set_cloexec() 2016-11-09 13:40:05 +01:00
nexthop.c Merge remote-tracking branch 'cmaster-next' into cmaster-next-releng 2016-11-28 17:35:08 +01:00
nexthop.h mpls: add support for LDP LSPs 2016-09-23 09:31:12 -04:00
ns.c Merge branch 'stable/2.0' 2016-12-05 19:48:38 +01:00
ns.h lib: convert namespace code to use red-black trees 2016-11-28 16:18:35 -02:00
openbsd-queue.h ldpd: copy original sources from OpenBSD (14/09/2016) 2016-09-23 09:31:05 -04:00
openbsd-tree.h ldpd: copy original sources from OpenBSD (14/09/2016) 2016-09-23 09:31:05 -04:00
pid_output.c build: massively remove needless checks 2016-11-15 14:23:17 +09:00
plist_int.h lib: Fix missing plist_int.h 2015-11-03 10:00:30 -08:00
plist.c lib: Fix ipv6 access-list... and ipv6 prefix-list... 2016-11-18 21:27:30 +00:00
plist.h lib: straighten out ORF prefix list support 2015-11-03 05:49:39 -08:00
pqueue.c *: split & distribute memtypes and stop (re|ab)using lib/ MTYPEs 2016-09-19 16:31:04 -04:00
pqueue.h lib: use heap to manage timers 2014-04-22 21:17:00 +02:00
prefix.c bgpd: add L3/L2VPN Virtual Network Control feature 2016-10-03 08:17:02 -04:00
prefix.h lib: Use single correct definition for prefix string buffer 2016-12-21 20:26:06 -05:00
privs.c lib: privs: always look up VTY group 2016-11-09 13:40:37 +01:00
privs.h 2005-09-29 Paul Jakma <paul.jakma@sun.com> 2005-09-29 14:39:32 +00:00
ptm_lib.c *: Fix up licensing to be right 2016-11-18 10:14:03 -05:00
ptm_lib.h *: Fix up licensing to be right 2016-11-18 10:14:03 -05:00
qobj.c bgpd: shuffle qobj_init() 2016-12-16 20:42:01 +01:00
qobj.h lib: make qobj NULL-safe/aware 2016-12-09 17:36:25 +01:00
queue.h *: fix detection and usage of sys/cdefs.h 2014-08-18 01:50:19 +02:00
route_types.pl "ip protocol" is missing ospf as an option 2016-05-11 13:12:08 +00:00
route_types.txt Merge branch 'cmaster-next' into vtysh-grammar 2016-10-20 16:31:49 +00:00
routemap.c lib: remove vty->index 2016-12-09 17:36:25 +01:00
routemap.h Merge branch 'cmaster-next' into vtysh-grammar 2016-10-20 16:31:49 +00:00
sigevent.c lib: dump memory stats on core 2016-09-03 11:05:51 -04:00
sigevent.h *: use array_size() helper macro 2012-10-25 10:15:59 -07:00
skiplist.c lib: add skiplist 2016-09-30 13:22:35 -04:00
skiplist.h lib: add skiplist 2016-09-30 13:22:35 -04:00
smux.c lib: add 'int idx_foo' argv index variables 2016-09-23 20:17:29 +00:00
smux.h *: add missing includes 2016-06-07 08:50:09 -04:00
snmp.c snmp: fix warnings 2016-05-26 15:33:29 +00:00
sockopt.c *: always set SO_SNDBUF and SO_RCVBUF using a best effort approach 2016-12-08 12:50:25 +01:00
sockopt.h *: always set SO_SNDBUF and SO_RCVBUF using a best effort approach 2016-12-08 12:50:25 +01:00
sockunion.c lib: replace strlcpy & strlcat with glibc versions 2016-11-15 17:35:36 +09:00
sockunion.h build: massively remove needless checks 2016-11-15 14:23:17 +09:00
stream.c *: split & distribute memtypes and stop (re|ab)using lib/ MTYPEs 2016-09-19 16:31:04 -04:00
stream.h Update Traffic Engineering Support for OSPFD 2016-09-03 11:05:50 -04:00
strlcat.c lib: replace strlcpy & strlcat with glibc versions 2016-11-15 17:35:36 +09:00
strlcpy.c lib: replace strlcpy & strlcat with glibc versions 2016-11-15 17:35:36 +09:00
systemd.c quagga: Fixup startup to allow consistency between sysV and systemd 2016-04-27 16:04:48 -04:00
systemd.h quagga: Fixup startup to allow consistency between sysV and systemd 2016-04-27 16:04:48 -04:00
table.c zebra/lib: plug several memleaks 2016-11-28 16:15:27 -02:00
table.h zebra/lib: plug several memleaks 2016-11-28 16:15:27 -02:00
thread.c lib: Slight Optimization of thread handling. 2016-12-21 20:26:14 -05:00
thread.h *: make DEFUN installations file-local 2016-12-01 17:25:56 +01:00
vector.c *: split & distribute memtypes and stop (re|ab)using lib/ MTYPEs 2016-09-19 16:31:04 -04:00
vector.h *: split & distribute memtypes and stop (re|ab)using lib/ MTYPEs 2016-09-19 16:31:04 -04:00
version.h.in build: massively remove needless checks 2016-11-15 14:23:17 +09:00
vrf.c lib: remove vty->index 2016-12-09 17:36:25 +01:00
vrf.h Merge branch 'queue/osr/vtysh-generic' 2016-12-05 20:04:08 +01:00
vty.c *: make DEFUN installations file-local 2016-12-01 17:25:56 +01:00
vty.h lib: remove vty->index 2016-12-09 17:36:25 +01:00
wheel.c lib: Turn off automatic debugging of Wheel code. 2016-12-21 20:26:13 -05:00
wheel.h lib: Add Timer Wheel functionality 2016-12-21 20:26:13 -05:00
workqueue.c *: make DEFUN installations file-local 2016-12-01 17:25:56 +01:00
workqueue.h *: make DEFUN installations file-local 2016-12-01 17:25:56 +01:00
zassert.h Add missing GPL headers, and copyright claims that certainly apply. 2016-05-26 01:06:59 +00:00
zclient.c lib: Partial Revert of 4ecc09d and modify zclient connect behavior 2016-12-14 18:24:57 -02:00
zclient.h lib/zebra: remove code duplication in redist_del_instance() 2016-10-18 08:51:24 -04:00
zebra.h lib, pimd, zebra: Allow pimd to ask the kernel about mroute info 2016-12-21 20:26:06 -05:00