From: "Darrick J. Wong" <djwong@kernel.org>
To: akpm@linux-foundation.org, daniel@gluo.nz,
kent.overstreet@linux.dev, djwong@kernel.org
Cc: Dave Chinner <david@fromorbit.com>, Theodore Ts'o <tytso@mit.edu>,
Coly Li <colyli@suse.de>,
linux-xfs@vger.kernel.org, linux-bcachefs@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: [PATCHSET 1/6] time_stats: promote to lib/
Date: Fri, 23 Feb 2024 17:07:44 -0800 [thread overview]
Message-ID: <170873667479.1860799.16660964083961996807.stgit@frogsfrogsfrogs> (raw)
In-Reply-To: <20240224010017.GM6226@frogsfrogsfrogs>
Hi all,
This is Kent Overstreet's series to lift the mean and variance
computation code, as well as the time statistics code, to become
generic library code.
If you're going to start using this code, I strongly recommend pulling
from my git trees, which are linked below.
This has been running on the djcloud for months with no problems. Enjoy!
Comments and questions are, as always, welcome.
--D
kernel git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfs-linux.git/log/?h=timestats-hoist
---
Commits in this patchset:
* mean and variance: Promote to lib/math
* eytzinger: Promote to include/linux/
* bcachefs: bch2_time_stats_to_seq_buf()
* time_stats: Promote to lib/
---
MAINTAINERS | 22 ++
fs/bcachefs/Kconfig | 10 -
fs/bcachefs/Makefile | 3
fs/bcachefs/alloc_foreground.c | 13 -
fs/bcachefs/bcachefs.h | 11 +
fs/bcachefs/bset.c | 2
fs/bcachefs/btree_cache.c | 2
fs/bcachefs/btree_gc.c | 2
fs/bcachefs/btree_io.c | 8 -
fs/bcachefs/btree_iter.c | 8 -
fs/bcachefs/btree_locking.h | 2
fs/bcachefs/btree_update_interior.c | 8 -
fs/bcachefs/io_read.c | 4
fs/bcachefs/io_write.c | 4
fs/bcachefs/journal.c | 5 -
fs/bcachefs/journal_io.c | 9 -
fs/bcachefs/journal_reclaim.c | 9 -
fs/bcachefs/journal_seq_blacklist.c | 6 -
fs/bcachefs/journal_types.h | 11 -
fs/bcachefs/nocow_locking.c | 2
fs/bcachefs/replicas.c | 19 +-
fs/bcachefs/replicas.h | 3
fs/bcachefs/super-io.h | 2
fs/bcachefs/super.c | 14 +
fs/bcachefs/util.c | 339 ++--------------------------------
fs/bcachefs/util.h | 86 ---------
include/linux/eytzinger.h | 58 +++---
include/linux/mean_and_variance.h | 0
include/linux/time_stats.h | 134 +++++++++++++
lib/Kconfig | 4
lib/Kconfig.debug | 9 +
lib/Makefile | 2
lib/math/Kconfig | 3
lib/math/Makefile | 2
lib/math/mean_and_variance.c | 3
lib/math/mean_and_variance_test.c | 3
lib/sort.c | 89 +++++++++
lib/time_stats.c | 271 +++++++++++++++++++++++++++
38 files changed, 662 insertions(+), 520 deletions(-)
rename fs/bcachefs/eytzinger.h => include/linux/eytzinger.h (77%)
rename fs/bcachefs/mean_and_variance.h => include/linux/mean_and_variance.h (100%)
create mode 100644 include/linux/time_stats.h
rename fs/bcachefs/mean_and_variance.c => lib/math/mean_and_variance.c (99%)
rename fs/bcachefs/mean_and_variance_test.c => lib/math/mean_and_variance_test.c (99%)
create mode 100644 lib/time_stats.c
next prev parent reply other threads:[~2024-02-24 1:07 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-24 1:00 [PATCHBOMB] time_stats, thread_with_file: lifting generic code to lib Darrick J. Wong
2024-02-24 1:07 ` Darrick J. Wong [this message]
2024-02-24 1:09 ` [PATCH 1/4] mean and variance: Promote to lib/math Darrick J. Wong
2024-02-24 1:09 ` [PATCH 2/4] eytzinger: Promote to include/linux/ Darrick J. Wong
2024-02-24 1:09 ` [PATCH 3/4] bcachefs: bch2_time_stats_to_seq_buf() Darrick J. Wong
2024-02-24 1:10 ` [PATCH 4/4] time_stats: Promote to lib/ Darrick J. Wong
2024-02-24 1:08 ` [PATCHSET 2/6] time_stats: cleanups and fixes Darrick J. Wong
2024-02-24 1:10 ` [PATCH 01/10] time_stats: report lifetime of the stats object Darrick J. Wong
2024-02-24 1:10 ` [PATCH 02/10] time_stats: split stats-with-quantiles into a separate structure Darrick J. Wong
2024-02-24 1:10 ` [PATCH 03/10] time_stats: fix struct layout bloat Darrick J. Wong
2024-02-24 1:11 ` [PATCH 04/10] time_stats: add larger units Darrick J. Wong
2024-02-24 1:11 ` [PATCH 05/10] time_stats: don't print any output if event count is zero Darrick J. Wong
2024-02-24 1:11 ` [PATCH 06/10] time_stats: allow custom epoch names Darrick J. Wong
2024-02-24 1:11 ` [PATCH 07/10] mean_and_variance: put struct mean_and_variance_weighted on a diet Darrick J. Wong
2024-02-24 1:12 ` [PATCH 08/10] time_stats: shrink time_stat_buffer for better alignment Darrick J. Wong
2024-02-24 1:12 ` [PATCH 09/10] time_stats: report information in json format Darrick J. Wong
2024-02-24 4:15 ` Darrick J. Wong
2024-02-24 5:10 ` Kent Overstreet
2024-02-24 6:02 ` Darrick J. Wong
2024-02-24 1:12 ` [PATCH 10/10] time_stats: Kill TIME_STATS_HAVE_QUANTILES Darrick J. Wong
2024-02-24 1:08 ` [PATCHSET 4/6] thread_with_file: promote to lib/ Darrick J. Wong
2024-02-24 1:14 ` [PATCH 01/10] bcachefs: thread_with_stdio: eliminate double buffering Darrick J. Wong
2024-02-24 1:14 ` [PATCH 02/10] bcachefs: thread_with_stdio: convert to darray Darrick J. Wong
2024-02-24 1:14 ` [PATCH 03/10] bcachefs: thread_with_stdio: kill thread_with_stdio_done() Darrick J. Wong
2024-02-24 1:14 ` [PATCH 04/10] bcachefs: thread_with_stdio: fix bch2_stdio_redirect_readline() Darrick J. Wong
2024-02-24 1:15 ` [PATCH 05/10] bcachefs: Thread with file documentation Darrick J. Wong
2024-02-24 1:15 ` [PATCH 06/10] darray: lift from bcachefs Darrick J. Wong
2024-02-24 1:15 ` [PATCH 07/10] thread_with_file: Lift " Darrick J. Wong
2024-02-24 1:15 ` [PATCH 08/10] thread_with_stdio: Mark completed in ->release() Darrick J. Wong
2024-02-24 1:16 ` [PATCH 09/10] kernel/hung_task.c: export sysctl_hung_task_timeout_secs Darrick J. Wong
2024-02-24 1:16 ` [PATCH 10/10] thread_with_stdio: suppress hung task warning Darrick J. Wong
2024-02-24 1:08 ` [PATCHSET 5/6] thread_with_file: cleanups and fixes Darrick J. Wong
2024-02-24 1:16 ` [PATCH 1/5] thread_with_file: allow creation of readonly files Darrick J. Wong
2024-02-24 1:16 ` [PATCH 2/5] thread_with_file: fix various printf problems Darrick J. Wong
2024-02-24 1:17 ` [PATCH 3/5] thread_with_file: create ops structure for thread_with_stdio Darrick J. Wong
2024-02-24 1:17 ` [PATCH 4/5] thread_with_file: allow ioctls against these files Darrick J. Wong
2024-02-24 1:17 ` [PATCH 5/5] thread_with_file: Fix missing va_end() Darrick J. Wong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=170873667479.1860799.16660964083961996807.stgit@frogsfrogsfrogs \
--to=djwong@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=colyli@suse.de \
--cc=daniel@gluo.nz \
--cc=david@fromorbit.com \
--cc=kent.overstreet@linux.dev \
--cc=linux-bcachefs@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-xfs@vger.kernel.org \
--cc=tytso@mit.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®