Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp3781776pxb; Mon, 30 Aug 2021 10:28:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2zDI3vH2xulJ9niPrf4EAUyqJwEa5RZ/EX+cfQr/yDSjvFOqXmAvy3eOJLw3gYGlRMmw9 X-Received: by 2002:a05:6402:d6f:: with SMTP id ec47mr24865990edb.95.1630344509940; Mon, 30 Aug 2021 10:28:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630344509; cv=none; d=google.com; s=arc-20160816; b=esuFIIXZ+G3jl0GSJ4bLIrH9jLojQUwm+ZNcwkTtLg/F+aESZibfANoJk+t/iVSMjx ZM//lSIr+/u1au2PMW1JnbHEmeoSn4uhZAJcRbcUX0LVOe7lqyolsXAo6vYCnYBisADC FaVksiZ6Hp5ARbpccxCMt483QQDYNIJZZFpi7ohHeGjz5llm3ex2N9KtyefTHNyu2IXf w69RIU6Q4100YYtMsFzzH6FbreowgzesYGUKBngj8t7DhSGttVq/uzzaZSewEHae3wXB jV+lE40SJXM7kIq4rA2I0rk02BITW2NOrEIW7yv9z9nL7Qdcy7Tf3/SznKDRwvys8fPT RV5g== 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 :references:in-reply-to:message-id:date:subject:cc:to:dkim-signature :dkim-signature:from; bh=u95bLI4q4WJi0Y0q765P3HlxxgiU6jgiCxI29+0MUC0=; b=bNETCusxzafwRS5fjbYa9nEef/UdB7EkVqCTf8Ajh7HcrwZNJy1Y8Pwln95aNK1Olf Vq315pJHI7rblKGOymz8wvaQRmCz6UWKPFNIRqZI1poGPsCe90vGNT/qaSZiOord0pu8 x5e4mcuEpOhPVdijJYwMwVONkEIJDJdoC5ZlLpl4MolDJO9gPdiwTGCl1N1ZGu10fPl6 qqy1R3aFb4wfysi+2HWIkTqgcOi4S8nUhXi55k+VEgeC8+VWi6tbuHq9LW1scf4LlWcx 3DpzO/SMB5XFJNhIjOk+h9rX+a6SnKiV6fqNwYmoUoJdUD4Al7QfQ2Aw4padsnEGfgma 80Qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=1yWhNjZt; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=UdJFO0ZF; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f8si15100750edr.525.2021.08.30.10.28.06; Mon, 30 Aug 2021 10:28:29 -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=@linutronix.de header.s=2020 header.b=1yWhNjZt; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=UdJFO0ZF; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238077AbhH3R1f (ORCPT + 99 others); Mon, 30 Aug 2021 13:27:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238010AbhH3R1c (ORCPT ); Mon, 30 Aug 2021 13:27:32 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54C53C061575 for ; Mon, 30 Aug 2021 10:26:38 -0700 (PDT) From: Sebastian Andrzej Siewior DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1630344397; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=u95bLI4q4WJi0Y0q765P3HlxxgiU6jgiCxI29+0MUC0=; b=1yWhNjZtuwlVRtsHtBmBagxF59AlbCfQHTi1nsPi/Iwr1KKrgM4ykxJh2tnTwOw+3Jq8az VaYdjk8Od+SSysPp52NzZ8VWuwt5IeViMfKr211q+oV8cOXMV4TOHiNUUAaVGojN8rYjL4 yRSNLngdR4RLZg8uE7W4TEO0Rfu6GUIPw+ylifp3dSBJ7oYDYD38VJJthf5OCUEU2WmB/d 9cs8m4CBApH90nKi76dcMa+KKSG85MepJ3makBToObkBkVdcIepju5bteGNyqlLZa6nEoL eQkv/HHc07PL+WNEjzhHmu5yEpbezN/13LQ47oTk5QmeiOm1IRlxNbQv5Pw57Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1630344397; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=u95bLI4q4WJi0Y0q765P3HlxxgiU6jgiCxI29+0MUC0=; b=UdJFO0ZFUd+c3koVuCcvjio40OEQ53KpNfE+1GsBXBM3uhnWkcsbhV55OdXjw8LE0J1eKe DuAzj0IyjcF+8pBw== To: kasan-dev@googlegroups.com, linux-kernel@vger.kernel.org Cc: Dmitry Vyukov , Andrey Konovalov , Thomas Gleixner , Steven Rostedt , Marco Elver , Clark Williams , Sebastian Andrzej Siewior Subject: [PATCH 1/5] Documentation/kcov: Include types.h in the example. Date: Mon, 30 Aug 2021 19:26:23 +0200 Message-Id: <20210830172627.267989-2-bigeasy@linutronix.de> In-Reply-To: <20210830172627.267989-1-bigeasy@linutronix.de> References: <20210830172627.267989-1-bigeasy@linutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The first example code has includes at the top, the following two example share that part. The last example (remote coverage collection) requires the linux/types.h header file due its __aligned_u64 usage. Add the linux/types.h to the top most example and a comment that the header files from above are required as it is done in the second example. Signed-off-by: Sebastian Andrzej Siewior --- Documentation/dev-tools/kcov.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/dev-tools/kcov.rst b/Documentation/dev-tools/kco= v.rst index d2c4c27e1702d..347f3b6de8d40 100644 --- a/Documentation/dev-tools/kcov.rst +++ b/Documentation/dev-tools/kcov.rst @@ -50,6 +50,7 @@ The following program demonstrates coverage collection fr= om within a test #include #include #include + #include =20 #define KCOV_INIT_TRACE _IOR('c', 1, unsigned long) #define KCOV_ENABLE _IO('c', 100) @@ -251,6 +252,8 @@ selectively from different subsystems. =20 .. code-block:: c =20 + /* Same includes and defines as above. */ + struct kcov_remote_arg { __u32 trace_mode; __u32 area_size; --=20 2.33.0