Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4082909pxb; Mon, 1 Feb 2021 11:57:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJxtX7exInPsPj8L95ZemjHXu4W9Kh7vTtLSu2Qfk0dWY1nLVTwB0K5b013nmK494fECMtem X-Received: by 2002:a17:906:94ce:: with SMTP id d14mr19211076ejy.121.1612209458088; Mon, 01 Feb 2021 11:57:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612209458; cv=none; d=google.com; s=arc-20160816; b=ESCBauCpcUbv2VyRsGDTxRlE65bDhwRn+eBbJ6XqTQXNfaVur4Zvrw7bvbsoet80VN WE+808LCqpDP7C/LCt88DTnEwt0J23VLbztJzkj7sNdvG58GFjaP+wB3X7mG5SssdUF3 vOpDv0XXS3yOVc2/4mAOdMTdOvuxn5PZyNnDPzg3+l9XZen8gRALej4jU6bOBn3L1eIp hKHDhYFzDaIH3/NvE87bptAkSBBqeIXry1v/9c1ApSqhOW8GXIq8y3eOFN5lggn5aH8v NgFCgDapr6SdDplKkEjYQkpsE5AeYARc7ETSnssXeMZyMyoC4dwV1nWSDetSJtxx9M2+ ldBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=OOTKd2ToY6stWeFyoRHuzZFMJpE8EdPCFK+SenC58S0=; b=vbUdSFr/JgbDwknZwak/30pbx0zP3vshlRynCeXoyjPX45sm64BjppqgHzOztGHJVw ou2mTAM9TTg/nYr0DzRHxuURN/BH4hSDlz6mkmI81p4Ox5NU4ylhO9K51VlNbX5A6gXA StMuCX5yrsP+Nf4kpi4/qUSfbtfMMXCTteNRLmuAxnh/yERECfZ84PvQH4W/QBtStnjW GuTHQHmQWhVamK+a6GYkupk4KGUItCz2omAw8ncLOoWJpT+7rRl+JXCsV9TiHrqYiG9m DMlop09C5nx2uv7I19F+iQoYFrCpqgZnxgN/pXdsSBOnihIL/L7F0UQAxnJifq56IZcf A4Bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nwGLZnA9; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b11si11266248ede.511.2021.02.01.11.57.13; Mon, 01 Feb 2021 11:57:38 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=nwGLZnA9; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232855AbhBATzk (ORCPT + 99 others); Mon, 1 Feb 2021 14:55:40 -0500 Received: from mail.kernel.org ([198.145.29.99]:55616 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232736AbhBATu5 (ORCPT ); Mon, 1 Feb 2021 14:50:57 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2E4D764EC9; Mon, 1 Feb 2021 19:48:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612208909; bh=Rsolv4KdEYj4ujTQyobUo1FspLsrRH9/cauERyP2Qnc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:In-Reply-To: References:From; b=nwGLZnA9TQ9wsthjDc/wVK7pjS+iaIwKZL5TwEsMK+CQa0pusPqEqZxp3Mdt+86zq iMgVXe4aPUBuN7vQntk2QIhqtdVi7pO165Ydmr4vOZ3/lqvLMV6KKy3Y/ODtwGNEVP P8oZpSeFg7zzraZza7HxcAzno2MyEcXRw9dpK3zdGDroRy0zkviaFtusC08rbbfsvf 51rO7hOu1gXS7U938JXXaor2r2nqMCSHYcf/aLjU9uUEUBWLgMXCd00Ju1hjP3fLS1 jIsT66g7RW2p+PRvBJxE2RlODVINyeunGomltVF1mNhHeSlD3x15bjASJ84ClpeLso kbBuo6eRcQ6Ow== From: Tom Zanussi To: rostedt@goodmis.org, axelrasmussen@google.com Cc: mhiramat@kernel.org, dan.carpenter@oracle.com, linux-kernel@vger.kernel.org Subject: [PATCH v7 6/6] selftests/ftrace: Add '!event' synthetic event syntax check Date: Mon, 1 Feb 2021 13:48:16 -0600 Message-Id: <1dff3f03d18542cece08c10d6323d8a8dba11e42.1612208610.git.zanussi@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a check confirming that '!event' alone will remove a synthetic event. Signed-off-by: Tom Zanussi --- .../trigger/inter-event/trigger-synthetic-event-syntax.tc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-synthetic-event-syntax.tc b/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-synthetic-event-syntax.tc index 59216f3cfb12..2968cdc7df30 100644 --- a/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-synthetic-event-syntax.tc +++ b/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-synthetic-event-syntax.tc @@ -32,6 +32,10 @@ grep "myevent[[:space:]]u64 var1" synthetic_events # it is not possible to add same name event ! echo "myevent u64 var2" >> synthetic_events +# make sure !synthetic event doesn't require a field +echo "!myevent" >> synthetic_events +echo "myevent u64 var1" >> synthetic_events + # Non-append open will cleanup all events and add new one echo "myevent u64 var2" > synthetic_events -- 2.17.1