Age | Commit message (Collapse) | Author | |
---|---|---|---|
2017-11-17 | Fix a wide comment | Nick Mathewson | |
2017-11-17 | Only log about lost KIST support once | Matt Traudt | |
2017-11-06 | Fix a 32-bit formatting warning | Nick Mathewson | |
2017-11-02 | sched: Rate limit scheduler_bug_occurred() | David Goulet | |
Just in case we end up hitting a SCHED_BUG() multiple times, rate limit the log warning. Signed-off-by: David Goulet <dgoulet@torproject.org> | |||
2017-11-02 | sched: Use SCHED_BUG() macro in scheduler | David Goulet | |
When a BUG() occurs, this macro will print extra information about the state of the scheduler and the given channel if any. This will help us greatly to fix future bugs in the scheduler especially when they occur rarely. Fixes #23753 Signed-off-by: David Goulet <dgoulet@torproject.org> | |||
2017-10-03 | sched: Implement SCHED_BUG() | David Goulet | |
Signed-off-by: David Goulet <dgoulet@torproject.org> | |||
2017-09-25 | Merge branch 'bug23539_032_01_squashed' | Nick Mathewson | |
2017-09-25 | Whitespace fix. | Nick Mathewson | |
2017-09-25 | sched: Make KISTSchedRunInterval non negative | David Goulet | |
Fixes #23539. Signed-off-by: David Goulet <dgoulet@torproject.org> | |||
2017-09-22 | Fix check-spaces and a weird copyright. | Nick Mathewson | |
2017-09-22 | Remove unused chosen_scheduler_type variable. | Nick Mathewson | |
2017-09-22 | sched: move code to respect comments | Matt Traudt | |
The diff is confusing, but were two static scheduler functions that needed moving to static comment block. No code change. Thanks dgoulet for original commit | |||
2017-09-22 | sched: only log when scheduler type changes | Matt Traudt | |
Closes 23552. Thanks dgoulet for original impl | |||
2017-09-21 | sched: Hard exit if we can't select a scheduler | David Goulet | |
Fixes #23581 Signed-off-by: David Goulet <dgoulet@torproject.org> | |||
2017-09-19 | sched: reorder code to fit comment bodies; comment typos | Matt Traudt | |
Closes 23560 | |||
2017-09-19 | fix typos/etc found while starting to look at scheduler | Roger Dingledine | |
2017-09-19 | sched: Allow the new sched to react to new cons | Matt Traudt | |
2017-09-19 | Avoid a compilation warning on macOS in scheduler_ev_add() | teor | |
This warning is caused by a different tv_usec data type on macOS compared to the system on which the patch was developed. Fixes 23575 on 0.3.2.1-alpha. | |||
2017-09-18 | sched: BUG() on event_add() and log_warn next_run | David Goulet | |
It is highly unlikely to happen but if so, we need to know and why. The warning with the next_run values could help. Signed-off-by: David Goulet <dgoulet@torproject.org> | |||
2017-09-15 | Run our #else/#endif annotator on our source code. | Nick Mathewson | |
2017-09-15 | sched: Revert IF_BUG_ONCE() to tor_assert() | David Goulet | |
Signed-off-by: David Goulet <dgoulet@torproject.org> | |||
2017-09-15 | sched: Define SCHEDULER_KIST_PRIVATE for more encapsulation | David Goulet | |
Signed-off-by: David Goulet <dgoulet@torproject.org> | |||
2017-09-15 | sched: Improve logging if KIST is disabled | David Goulet | |
Signed-off-by: David Goulet <dgoulet@torproject.org> | |||
2017-09-15 | test: Fix unit tests with latest scheduler changes | David Goulet | |
Signed-off-by: David Goulet <dgoulet@torproject.org> | |||
2017-09-15 | sched: Make the scheduler object static | David Goulet | |
Each type of scheduler implements its own static scheduler_t object and returns a reference to it. This commit also makes it a const pointer that is it can only change inside the scheduler type subsystem but not outside for extra protection. Signed-off-by: David Goulet <dgoulet@torproject.org> | |||
2017-09-15 | sched: Don't expose the global scheduler libevent object | David Goulet | |
Instead, add wrappers to do the needed action the different scheduler needs with the libevent object. Signed-off-by: David Goulet <dgoulet@torproject.org> | |||
2017-09-15 | sched: Always call on_channel_free() regardless of state | David Goulet | |
A channel can bounce in the scheduler and bounce out with the IDLE state which means that if it came in the scheduler once, it has socket information that needs to be freed from the global hash table. Signed-off-by: David Goulet <dgoulet@torproject.org> | |||
2017-09-15 | sched: Add Schedulers torrc option | David Goulet | |
This option is a list of possible scheduler type tor can use ordered by priority. Its default value is "KIST,KISTLite,Vanilla" which means that KIST will be used first and if unavailable will fallback to KISTLite and so on. Signed-off-by: David Goulet <dgoulet@torproject.org> | |||
2017-09-15 | sched: change most asserts to non-fatal BUGs | Matt Traudt | |
2017-09-15 | sched: rename scheduler to the_scheduler | Matt Traudt | |
2017-09-15 | sched: switch to monotonic time; add/fix comments, style, and logs msgs | Matt Traudt | |
2017-09-15 | sched: Detect KIST support at compile time | David Goulet | |
Add a detection for the KIST scheduler in our build system and set HAVE_KIST_SUPPORT if available. Adapt the should use kist function with this new compile option. Signed-off-by: David Goulet <dgoulet@torproject.org> | |||
2017-09-15 | sched: Implement the KIST scheduler | Matt Traudt | |
Closes #12541 Signed-off-by: David Goulet <dgoulet@torproject.org> | |||
2017-09-07 | consensus: Add a generic notification function on new consensus | Matt Traudt | |
Some groundwork for the KIST scheduler implementation. Signed-off-by: David Goulet <dgoulet@torproject.org> | |||
2017-08-03 | Switch to offsetof() | Neel Chauhan | |
2017-03-15 | Run the copyright update script. | Nick Mathewson | |
2016-10-26 | Whitespace fixes | Nick Mathewson | |
2016-10-20 | Turn scheduler.c documentation into doxygen. | Nick Mathewson | |
2016-07-28 | Merge branch 'bug18902_squashed' | Nick Mathewson | |
2016-07-28 | Fix all -Wshadow warnings on Linux | Nick Mathewson | |
This is a partial fix for 18902. | |||
2016-07-04 | Raise libevent dependency to 2.0.10-stable or newer | Sebastian Hahn | |
Only some very ancient distributions don't ship with Libevent 2 anymore, even the oldest supported Ubuntu LTS version has it. This allows us to get rid of a lot of compat code. | |||
2016-02-27 | Update the copyright year. | Nick Mathewson | |
2015-02-06 | Fix scheduler compilation on targets where char is unsigned. | Yawning Angel | |
Per discussion with nickm, the `dir` argument should be a int rather than a signed char. Fixes bug #14764. | |||
2015-01-02 | Bump copyright dates to 2015, in case someday this matters. | Nick Mathewson | |
2014-12-22 | Coverity complained that we were not checking this return value | Nick Mathewson | |
2014-11-28 | Fix a signed/unsigned comparison warning in scheduler_run | Nick Mathewson | |
2014-11-27 | One more, appease "make check-spaces" | Nick Mathewson | |
2014-10-07 | Make queue thresholds and flush size for global scheduler into config options | Andrea Shepard | |
2014-09-30 | Make scheduler_compare_channels() mockable | Andrea Shepard | |
2014-09-30 | Make scheduler_run() mockable | Andrea Shepard | |