Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1299473rdb; Mon, 19 Feb 2024 10:21:18 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVUO9g2CgonXdAEm1CWID1xidIt8SthkaB5a6/0IETs79+ddYOPaWVcqY1lzGvmbU8Vt2PEaMhgYmwjdXolftAOMeiuOR6lLhhaqkV50g== X-Google-Smtp-Source: AGHT+IGCySCj2vx5Fa8GK+ka24ELYGuDirIGIqVZNtL75z9zGajG1H/9vTEk/WJ+1eRHtmu8vaYd X-Received: by 2002:a17:902:ecc1:b0:1dc:e58:8ab4 with SMTP id a1-20020a170902ecc100b001dc0e588ab4mr1097610plh.9.1708366878466; Mon, 19 Feb 2024 10:21:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708366878; cv=pass; d=google.com; s=arc-20160816; b=yA9YHzaG4slNqhNLLLgMLF+6fdgrVPrRgiST1nDr2nAcioFm4Mix03uKBPdnhHwg5+ +RNk87Vdu+Zlyo6QcP7VBjqD1mb/zAlCxKU9MomWOMDqNHAoIELtSVlD19b+1mZlvn/T 7Mf/o3M8wjM4dD5X/qQZVXtczmGYALtvponerh3OCQ7d3HGOsB1dHlC+7OpJObr26oXT /HzN8+amlBpGHqlO6ZqAiXhnRh8Ic1Q0iwp6+A/TvcdcRHXfbIuP1WaAyQ7MKZl3EQlv Zk+BI7svVToc3nPCLtcHzl14OtxX/opWKlSGTOrwWL/gePtTx9V7lOsjRk1ADkTqSfxv BKeQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date; bh=KQ5oKYTWsoT9e4JMtmIWbWEPT+6Jde6zeE6nqQBzEM4=; fh=AdbslQO0k+AnvEfX3vMM2zR0Ci/sn0BMuAHQ8jbhQKE=; b=GFSZWmxTsnPN8KN+08sn+jOxlPakzuV5hJ2cUPTEx8ELziaL7tfNq7c3fCEZuhVYfi 77ue2QVTxBLMcXyNJ99/4VOYG4Pjt1BGnUJYH0rmy6jdc/YviegUMjuU7wnofaH4Po+g 7CzVo8wQKkTzZhrpu2aMd1aZxzXcBoHwZ4BjW9DznqFlLHH24zhm92ZmfYaMcV56jEWV mupGaaDE9gJ3O3zBLGTqmFIubj9CGo4fHyRK0gTHKxM+VJlRYQZQ1pgM58C25NrI1vO/ VlS5PqEF89F2FkJKn1RltvOtLMnAPRGIUt+i95JtfUMKjew4BjKZ8JjjEewk4EBt3Qp+ Qvdg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-71805-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71805-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id s12-20020a170902ea0c00b001db29db98e3si4896978plg.74.2024.02.19.10.21.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 10:21:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71805-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-71805-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71805-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 308ED281E85 for ; Mon, 19 Feb 2024 18:21:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D8EA9481DC; Mon, 19 Feb 2024 18:21:12 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5FBC2446A1; Mon, 19 Feb 2024 18:21:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708366872; cv=none; b=C1aIdnI5P2e5QnlkKyVAgdqtFHykN1kmz4AjqwL6XyPGkusZrfj8DZrH4zzW0SJcN7DGOUbh7JpNdHjS2G2Vl1QvIMxsCXZstVZO91JbMURwUcmr8+YqfXYfXqMwDIp2YpfGsg4u/pVR7gsN5J8IGrP4rvZj3RoUV1nvfiIlFdA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708366872; c=relaxed/simple; bh=FBbXL1bn1jLAvsJAzBCrpdaDZITQl0cdtip8OZUnO4c=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=nC3a6nsKnHNDr2OV1Scfamxti8lgEF7Xje3l20XUqufu43g5piCOlEcoWtZOCJjmJ2KrbhykSJah/aif9aZiViUOVc0Rp+saOx454Er9hJrog1gyIOb4gmC05ELXMXEP266OKvo1LmVRSII9FrJq8B6iZBJRHtITwSJDw977IPg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 201B9C433C7; Mon, 19 Feb 2024 18:21:11 +0000 (UTC) Date: Mon, 19 Feb 2024 13:22:54 -0500 From: Steven Rostedt To: Vincent Donnefort Cc: mhiramat@kernel.org, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, mathieu.desnoyers@efficios.com, kernel-team@android.com Subject: Re: [PATCH v17 3/6] tracing: Add snapshot refcount Message-ID: <20240219132254.484fde37@gandalf.local.home> In-Reply-To: <20240219131754.5d26f4e6@gandalf.local.home> References: <20240213114945.3528801-1-vdonnefort@google.com> <20240213114945.3528801-4-vdonnefort@google.com> <20240219131754.5d26f4e6@gandalf.local.home> X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Mon, 19 Feb 2024 13:17:54 -0500 Steven Rostedt wrote: > On Tue, 13 Feb 2024 11:49:42 +0000 > Vincent Donnefort wrote: >=20 > > @@ -9678,7 +9739,9 @@ trace_array_create_systems(const char *name, cons= t char *systems) > > raw_spin_lock_init(&tr->start_lock); > > =20 > > tr->max_lock =3D (arch_spinlock_t)__ARCH_SPIN_LOCK_UNLOCKED; > > - > > +#ifdef CONFIG_TRCER_MAX_TRACE =20 >=20 > Oops! >=20 > I'll fix this too. >=20 >=20 > > + spinlock_init(&tr->snapshot_trigger_lock); And this too: kernel/trace/trace.c:9245:9: error: implicit declaration of function =E2=80= =98spinlock_init=E2=80=99; did you mean =E2=80=98spin_lock_init=E2=80=99? [= -Werror=3Dimplicit-function-declaration] 9245 | spinlock_init(&tr->snapshot_trigger_lock); | ^~~~~~~~~~~~~ -- Steve > > +#endif > > tr->current_trace =3D &nop_trace; > > =20 > > INIT_LIST_HEAD(&tr->systems); =20