Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1329232lql; Tue, 12 Mar 2024 13:52:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW1VcFSe5XYccRCjF/zakeKhliBKuR2wxOM2q8wD6+tyJeWdxDMut6j+6Sn1Bpgyl+uLbsQ1wS/Ezu6HW/Gs295Y/R31PqlYdGyKSABYg== X-Google-Smtp-Source: AGHT+IGoDZCPDR82fjotMKTg2TD1h+B4x921bgQJB6OSoAlS6J50eIWO3y1Jee+kVItYrHzIXZ+a X-Received: by 2002:a17:906:4711:b0:a45:f705:777c with SMTP id y17-20020a170906471100b00a45f705777cmr2094863ejq.40.1710276750531; Tue, 12 Mar 2024 13:52:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710276750; cv=pass; d=google.com; s=arc-20160816; b=xZBHhOV8BnLZ4WibH9QIHOVT+uPueAnI66HoA7ADhw8FrDcSQAdZwlN+4nrI28MJKM uF8DSdJvv00YVUDjpOOCtbd8SIPjM6B42Z6obJwncXpc8UnJvjbB5pvmFIJXiCN+w2sG BdYshea5DOXXdeoyXvd22g17a/NVjT54uSqjiMofqWZhWMPbkHDLdpnGcZYNjtrBG8ek ZnoBOHlaYkkLcdkV2k+9o9AXeAP+deCGrgEZtImcRUvls84rE05w7ml/HtXO0PXnFP2f EU20YTFzz8adZwr4BZJJ4Axn1B9DpZK39iRutJgL7mW8GOVc6ny/i0SSz2yi0Ib+hPkY aq8w== 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 :date:subject:cc:to:from:dkim-signature; bh=DhAasC9s+kVJ4xtyapcCiTJQm/mhctxIu2PUBuHQZWg=; fh=xqBA6XU1fuyTFblptcc0c2Nkny7AEuI4qyn8l5YDn6E=; b=BLH6Bl+jklNwgKPvbwkJrctVeXLprD3YDi9w9H6zfYlg/IyLVoUDKLirYcVVKCYAYM Jc2xdVlgqVmoMzeZkPNrzfSvZSeGzyJKBNIom9CZb7oKt9xMFTREjoDrtbe4zSMk/9E7 XWl/buWiOdKkSFNqF5bVOvNadFZPfYUeB9ZwbObxFnr6bp8FNyRg6tdUM5TYLS8lLiNC +WtKV2Bs+amGJgfvGSgD+bVd3g+gE2ySPEtoJgff+i8R7XAIBcO2nHYagkr1TxOTnNm0 yixtdQEuF+QxusGUNNb0ou56M7T3wpQpzyqOvMT32Va0gtM0RtX+9/XvrezgXyHBsEn9 NUYA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=S6uwLSAI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-100775-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100775-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id jr17-20020a170906a99100b00a4646a17f50si808141ejb.1011.2024.03.12.13.52.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 13:52:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-100775-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=S6uwLSAI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-100775-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100775-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 am.mirrors.kernel.org (Postfix) with ESMTPS id B8B591F228D8 for ; Tue, 12 Mar 2024 20:51:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 42237382; Tue, 12 Mar 2024 20:51:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="S6uwLSAI" 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 66A75143732; Tue, 12 Mar 2024 20:51:30 +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=1710276691; cv=none; b=PIQiSJodTKFeAlXRr7wASu+8OSuazMw6Xi8sXwmLDEq/92UKY7FyZo7kD+nDlSZfyVZoVeikYRauYySn15d16+EJOpLoaqGjO2ApE5gukpBjFGbRq0Ss34ixjoJmy/zrKnEEjTzX0KjaMoEAOXZXYd3I8pELyCWKw71fQQWu0TI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710276691; c=relaxed/simple; bh=NdilFZkMwC/3FQbsBc0J7ASCdEIIrYIeoB93By0b0/g=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=P04aQvpGAt/wMIcsWtbumNQz3QfwT9Rz3KHObWMqsNM2adRMN8jJbJWSuePS+oQUiTf51lZNpn0i8O5q0tAKoVUw/6ERS7D5Yv+3/rRnKDaEBHkVf3knpluqgk5eb5QVXz0/4PlbTk0e27S66TJUmeZ2M0/mZmlciBZ40MEDnYg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=S6uwLSAI; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id BBB2AC43390; Tue, 12 Mar 2024 20:51:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710276690; bh=NdilFZkMwC/3FQbsBc0J7ASCdEIIrYIeoB93By0b0/g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=S6uwLSAI/wTeiTurEjYa9J+mqFOwjQkLDGaywtekVKFALwj4dSHyvujVn8AtNvwNU 8GvS1Av3gpkXkj1Z1LoCGwd4zM28709anyN6Rn5B66h+Q0tixcr44F9Q3RD6ubT7fz kR1FQ8OD+uILg3nmPYik756FH8bB9gJAsc8axWXng3+CnsSge61BnmV0YJxN+nUNMy xI98Bk410aZUfPzfCx4aQ/sWgmBmrgq7BvcowRnbhuXw1GaQT7aLXbM6oRjSsFfhNP bbdax2BJ4pOjGcAFgUDAbzv9BQ+2fVxZsM+iK4djUtVIup1DH718tDP0/XXqbWCZcZ Zp0yY42XwePKg== From: Arnaldo Carvalho de Melo To: Ian Rogers Cc: Jiri Olsa , Namhyung Kim , Adrian Hunter , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Arnaldo Carvalho de Melo Subject: [PATCH 1/2] perf beauty: Don't include uapi/linux/mount.h, use sys/mount.h instead Date: Tue, 12 Mar 2024 17:51:11 -0300 Message-ID: <20240312205112.688776-2-acme@kernel.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240312205112.688776-1-acme@kernel.org> References: <20240312205112.688776-1-acme@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Arnaldo Carvalho de Melo The tools/include/uapi/linux/mount.h file is mostly used for scrapping defines into id->string tables, this is the only place were it is being directly used, stop doing so. Define MOUNT_ATTR_RELATIME and MOUNT_ATTR__ATIME if not available in the system's headers. Cc: Adrian Hunter Cc: Ian Rogers Cc: Jiri Olsa Cc: Namhyung Kim Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/trace/beauty/fsmount.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tools/perf/trace/beauty/fsmount.c b/tools/perf/trace/beauty/fsmount.c index 30c8c082a3c3b3b3..28c2c16fc1a80dfd 100644 --- a/tools/perf/trace/beauty/fsmount.c +++ b/tools/perf/trace/beauty/fsmount.c @@ -7,7 +7,14 @@ #include "trace/beauty/beauty.h" #include -#include +#include + +#ifndef MOUNT_ATTR__ATIME +#define MOUNT_ATTR__ATIME 0x00000070 /* Setting on how atime should be updated */ +#endif +#ifndef MOUNT_ATTR_RELATIME +#define MOUNT_ATTR_RELATIME 0x00000000 /* - Update atime relative to mtime/ctime. */ +#endif static size_t fsmount__scnprintf_attr_flags(unsigned long flags, char *bf, size_t size, bool show_prefix) { -- 2.43.0