Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3798462ybl; Sun, 8 Dec 2019 23:43:59 -0800 (PST) X-Google-Smtp-Source: APXvYqyC44YNAFAqIFGMzcleNTteD2od7Kecw4pClK3QY0zow+jZzpH30IiUJGtvGBGPQF0aXZk1 X-Received: by 2002:a05:6830:1e61:: with SMTP id m1mr20713280otr.68.1575877439041; Sun, 08 Dec 2019 23:43:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575877439; cv=none; d=google.com; s=arc-20160816; b=QkrX7KPdPFZK7BJVAC6DmmpahZopgUpRyivObNd4imiFp4XwlERSiEfrI+TQYcx7Os hDOciIMRnY56hlarMeSvrQcu6l26PoDUAJJAmDXPxYoNWwh1neBBNYwl3A9AuGCrnsux PpKeM0pb0nWXOiTjnNz0Wdu4aBrghVXOMcVx0UfDXbOW2YUjRzdNOYLdXxG983UiI+jh MSqXWBaMS6+dboETAZj8mb6ZjGVGUX0xjbfpNG60BKEjut5qS9T8cndUSBiHeIR5yrsF v7MQxGDutz1oBlwfcj6F6cEAafmgMnZvH1FajaMtDEqC7P7tUa/23xIS9nS7ZGr2K9ff MgaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=mxNFYCmNhlniWht0zpLB7qcISplkfJ5aENS7UtExcLA=; b=iHpAHBTlSI12Z7PCDWonWtCuI6D+xltzfrFnGpAVJfIMkGaxDUhyhRGrJEBkvtwx4J KQooyx25FcIBwjbfhQEXyV9sSCetvz+zquhpkVX4795W+6aRHf0w5iMaP7z/d5oIrNow VL8NjFFSilU+zFhZ0D+fj0uqCeZnFG2S5o/CxQAo8Q8rdaGVcOV9fl9WolY5EinxcLQO wbLOda6p4y0aPRWkFh9akeF14nowl0GFvxEeZvanGA7m2w0rfB2fO8wHtzcZh+V6v2HC Tx9BY8f/J7tCQCSn/l1PkCHyEuirxxrhi0qfQ4ItlgmaiOQWKel2Zbcid8jaeDgeTgKW R6dQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lxx9TJPY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k2si2530789otp.273.2019.12.08.23.43.46; Sun, 08 Dec 2019 23:43:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lxx9TJPY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727227AbfLIHmx (ORCPT + 99 others); Mon, 9 Dec 2019 02:42:53 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:40161 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727115AbfLIHmx (ORCPT ); Mon, 9 Dec 2019 02:42:53 -0500 Received: by mail-pg1-f194.google.com with SMTP id k25so6673158pgt.7 for ; Sun, 08 Dec 2019 23:42:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=mxNFYCmNhlniWht0zpLB7qcISplkfJ5aENS7UtExcLA=; b=lxx9TJPYOhlvXmJQSe9z15P6BYI2yXj6oQ8GNUXfIL3FiCkisygeP+qQvp3HVN8snj Isp4uPZqrKvaSv00mOpdJ0qgDgi+DFoaf2iGeQ7FFy74iZVgh2P09uzQ9sZebJsp96Gn X9QGvPCjTKbhzB20W7QJiu1ncyClbosAqy6kmSECC08dh4P8UkY+kP0a3X0R+7lu7j4w GlfbyId7LCcdxC1iOpua5CWGMunkw+dMjJhYGJ7yNAcfPzI4N2Fwiz8tVHJNG+UF5V4e /G3BHijeubxOcBLhLr9ZptqyGeLW+e2mllxNHKGJmJbLD/xTlO9m8yLvfqP12Esh/lOn Hx/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=mxNFYCmNhlniWht0zpLB7qcISplkfJ5aENS7UtExcLA=; b=LWehqw5yXDwr/mz6ywCBKsdMJvF/RR1MAW03vT1qbBFVX0eb+Iay/XyN6q2wWsAb7C GVcrs2om7IiVGdRAKw+RiysWHakLRhG3ganlcgEWgROCU2hA1gXSG6QugdZqIHrwRvoC OmJJiL/5OTr7NH5UtxXB+zZbcSsX26V0mlnnKCaylLobfE37IUddw1HpxHW1YUm+hfes ho3d0rewAXHxBJxQbAXl3IxetrGE9UP5P3qDzMob4e4kh52p00zH5Yvm0VJ311DA7y/l /pEJfFo4U8Dh3KOfO3f3sOAU1Opvbwo93uOAENzeEJ+O3LI7Oen5OPsOK1R47Yx0GiSC I9Vg== X-Gm-Message-State: APjAAAU0QsziDnACq9IayynBVhLIEoIvRHY6Z5GLk0VoYN7jKsxGhbt4 FUGjA3HUDpA4ddYoOc05Yio= X-Received: by 2002:a65:41cd:: with SMTP id b13mr17584367pgq.385.1575877372852; Sun, 08 Dec 2019 23:42:52 -0800 (PST) Received: from localhost ([2401:fa00:8f:203:250d:e71d:5a0a:9afe]) by smtp.gmail.com with ESMTPSA id m127sm12134958pfm.167.2019.12.08.23.42.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Dec 2019 23:42:52 -0800 (PST) Date: Mon, 9 Dec 2019 16:42:50 +0900 From: Sergey Senozhatsky To: John Ogness Cc: linux-kernel@vger.kernel.org, Peter Zijlstra , Petr Mladek , Sergey Senozhatsky , Steven Rostedt , Linus Torvalds , Greg Kroah-Hartman , Andrea Parri , Thomas Gleixner , Sergey Senozhatsky , Brendan Higgins , kexec@lists.infradead.org Subject: Re: [RFC PATCH v5 1/3] printk-rb: new printk ringbuffer implementation (writer) Message-ID: <20191209074249.GC88619@google.com> References: <20191128015235.12940-1-john.ogness@linutronix.de> <20191128015235.12940-2-john.ogness@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191128015235.12940-2-john.ogness@linutronix.de> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (19/11/28 02:58), John Ogness wrote: [..] > + > +#define _DATA_SIZE(sz_bits) (1UL << (sz_bits)) > +#define _DESCS_COUNT(ct_bits) (1U << (ct_bits)) > +#define DESC_SV_BITS (sizeof(int) * 8) > +#define DESC_COMMITTED_MASK (1U << (DESC_SV_BITS - 1)) What does SV state for? State Value? -ss