Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1128743pxk; Fri, 18 Sep 2020 04:41:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzupSMEyvjTiQYtMRBEHx+JWHep66Qnkoi+TjbDdxSJ8kLnBjXnPf19TETosUzrfGY5phox X-Received: by 2002:a05:6402:1779:: with SMTP id da25mr37133476edb.75.1600429271011; Fri, 18 Sep 2020 04:41:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600429271; cv=none; d=google.com; s=arc-20160816; b=GpwbDoAeWe16YL5wTkZ2u4paq1wVhMGd+XxOkZg1n5joLEGVBdFoV3DHNiZG9b47A3 +WsWc31PGsPhmmnVi+NKMc41BoVe0vHqEaWajvfBvtF0+HuGbtM8p3Qd3s17J2tQGM5S v5WxhxdsOANI18Li06JqngxYup94Er+WEiQOgeF1KDOp5VIYNyjsKfBkDtc0siRVWrIi qx4TzsSWWzI5lOILBTPADJv649GX5rBke/I387aNPYIXVZsYzK7v8AJT58/Rni/Bls5p sMCf2cidtDR9rg1SoWhLuJhu+iSQkjuEaAM8XtekjFtwovtSdqbiRFfgyIrbA5jwvnS3 Czig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=2jvoV3T0DNvxIqduEwEv/1Z+E87kmvm0/1gv8+KDKPY=; b=VhkBol3SFnMSuQieIgISHvWiCdEpXZmtoeUwL6MUmeK55thu6Fm+UhD6eECmS6/sow SYjSFVF6hagLvoOra555uuRebqYwmH5DABMq6aJny79HrnZ4DCjowHyRKDJPFuwJgXhL lq32vXmkdjZL4raL0jSnOSowNoG/5X3NoGjShNUz5lWbW9ZKv+dScw7m8nUU8PQYqcET jYEIIpJhn6vcKWvrt7FYXGjfro+M6v4D6PfuZgYzDrk0NhdABWiNLARl+fab09opNcTG H9ANbvxvv6dni704fYHX34UFaspbS5g9IRgQB+FU9Zl4sAdxMOxHf1Tmn5tKd1fQp+bL UA5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=T7urXVhg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mh1si1893043ejb.437.2020.09.18.04.40.46; Fri, 18 Sep 2020 04:41:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=T7urXVhg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726507AbgIRLji (ORCPT + 99 others); Fri, 18 Sep 2020 07:39:38 -0400 Received: from mx2.suse.de ([195.135.220.15]:46046 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726121AbgIRLji (ORCPT ); Fri, 18 Sep 2020 07:39:38 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1600429177; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=2jvoV3T0DNvxIqduEwEv/1Z+E87kmvm0/1gv8+KDKPY=; b=T7urXVhgNbAAdGLZm4khcsi2uSoPOb8WZWlwy90Hl1Vgn8wxIx90Jj8q4UyMP7fvtBPXhy 4H9ZC2sSV50CmQ5RyHTsjV7AWXe1ioqAzC05ENL2kmyMhixw201gVbXKxpNBwgfGiyTZPZ MekesWmvKOZGYG333G/n8YQOAUO1FjQ= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 8EBDEABF4; Fri, 18 Sep 2020 11:40:11 +0000 (UTC) Date: Fri, 18 Sep 2020 13:39:36 +0200 From: Petr Mladek To: John Ogness Cc: Sergey Senozhatsky , Sergey Senozhatsky , Steven Rostedt , Linus Torvalds , Greg Kroah-Hartman , Thomas Gleixner , kexec@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH printk 2/3] printk: move dictionary keys to dev_printk_info Message-ID: <20200918113936.GC14605@alley> References: <20200917131644.25838-1-john.ogness@linutronix.de> <20200917131644.25838-3-john.ogness@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200917131644.25838-3-john.ogness@linutronix.de> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 2020-09-17 15:22:43, John Ogness wrote: > Dictionaries are only used for SUBSYSTEM and DEVICE properties. The > current implementation stores the property names each time they are > used. This requires more space than otherwise necessary. Also, > because the dictionary entries are currently considered optional, > it cannot be relied upon that they are always available, even if the > writer wanted to store them. These issues will increase should new > dictionary properties be introduced. > > Rather than storing the subsystem and device properties in the > dict ring, introduce a struct dev_printk_info with separate fields > to store only the property values. Embed this struct within the > struct printk_info to provide guaranteed availability. > > Signed-off-by: John Ogness Reviewed-by: Petr Mladek Best Regards, Petr