Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3385818rwe; Mon, 29 Aug 2022 10:36:57 -0700 (PDT) X-Google-Smtp-Source: AA6agR7RCqoQ0x7KboFleJO9wjeU3ul33Us3GE8ipIY55OOskdEviKP8lWNeN/ho/sNpP2JCudAB X-Received: by 2002:a17:907:2d23:b0:730:acf0:4907 with SMTP id gs35-20020a1709072d2300b00730acf04907mr14543616ejc.700.1661794617169; Mon, 29 Aug 2022 10:36:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661794617; cv=none; d=google.com; s=arc-20160816; b=0pZXH2l3I3bFrz6Ok2N3BKLdJNpAPmnhqqDZj+t4vnSSyH4olIxfyURWDk5OvA6nLU YjVLb2EgwJej5+acWtTC7tdUgA2QbGbPm/JvVA0grysG0n7JyTDV0e/iGwQWycALBygC io7SgH7gU4VqiAOJFOnGDBveFzj2j5Y7U2HZ0N4O7+d5vcTBwccXiHJcIsDbf3EC0XJF 0tWsCcnKOLDg6lDDw8zhzjw6r4wPLLHL1KXn/7fiCttlEoIJpiWlVvvWftVM2CQXFEU9 xJK2fVIiSa72UPoRACeTpJPPc9numQfYl0b8DxJRGMudsdHMf+ts03TPX5oRknXUmh1/ LY0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:to:from:dkim-signature; bh=Jn5lv59v49oqnVMTwm6OT5fVqI/p3Eaw+i6Y9Lw/b/Y=; b=zeGTVRUrXAT/0d2hktlqXtNcygbR7/Cwv6cyan9I1gYRKAFu8qEY1DgvE27dtmVh7C xUQd+pfUX7SssN3tY42qyrDq8BUY+L6fVvh8P1MrAJLqPaD3FclZltD/us2NhrA0+ZQG vMzsITkEdBPA6eSg0bqungAFzSNXMvB23BUR8pKxamws5xMEMyWLjpI49/M5BLBplLmc ActqfX73ZKJmTAtrHhLL7rQ3cJkGWyNxfYcsDqIMZNWZ5DQjCp1huC6vH5Fi/Q6Yd4Ja sf+WP7oY1GZIBEWir9GQQFFPL3S5E5xs9W3UUPEQMiM3rTwW6B1Zc5o2IHgahF7aYocs ZPHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=WZ2JIPhV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gs30-20020a1709072d1e00b0073d87835a30si7765143ejc.961.2022.08.29.10.36.31; Mon, 29 Aug 2022 10:36:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=WZ2JIPhV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230229AbiH2Qyl (ORCPT + 99 others); Mon, 29 Aug 2022 12:54:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229963AbiH2Qyk (ORCPT ); Mon, 29 Aug 2022 12:54:40 -0400 Received: from out0.migadu.com (out0.migadu.com [IPv6:2001:41d0:2:267::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02C67844F9; Mon, 29 Aug 2022 09:54:39 -0700 (PDT) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1661792077; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=Jn5lv59v49oqnVMTwm6OT5fVqI/p3Eaw+i6Y9Lw/b/Y=; b=WZ2JIPhVguqw2EqnPm+Ifm5BSbGcPLKh2kVJXBsSfSR0lgMNcrO6/A0HF1bpeRW9Okaup7 Xi/jQYtMQvxNaoqUrSN/cGLSDfNus0kZl7TSL+MMyrs6onRJLjfNVruWyXG15gP1L5lfvh 4geajB+IO1ucSth75TGmUer/o+153TQ= From: Kent Overstreet To: linux-kernel@vger.kernel.org, linux-bcache@vger.kernel.org, colyli@suse.de Subject: Time stats library (from bcache/bcachefs) & generic latency instrumentation Date: Mon, 29 Aug 2022 12:53:41 -0400 Message-Id: <20220829165344.2958640-1-kent.overstreet@linux.dev> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hey Coly, this is a fragment from a larger patch series - I wanted to send it out to you now for review because it changes the bcache sysfs interface for time_stats. This series takes the time_stats code from bcachefs (which has some additional improvements), moves it to lib/ converts bcache to use it (otherwise we get clashes with the time_stats name) - and uses it for some really cool new latency instrumentation. These patches won't apply/build, full patch series for any interested is here: https://evilpiepirate.org/git/bcachefs.git/log/?h=alloc_tags