Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp32226954rwd; Fri, 7 Jul 2023 10:25:39 -0700 (PDT) X-Google-Smtp-Source: APBJJlEPHVSnnwMC8iQuk9BwLfr4RU/npJuC9XGDeHC0J7hmdeQFsgWzlCRHWaT1L+4ZOWTSq99s X-Received: by 2002:a54:4104:0:b0:3a1:c6ed:b902 with SMTP id l4-20020a544104000000b003a1c6edb902mr5617538oic.37.1688750738967; Fri, 07 Jul 2023 10:25:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688750738; cv=none; d=google.com; s=arc-20160816; b=uD0aEK9dH6/+GrbGEp+3j+MeN/xBCBeXGZbrPhec7GQpf8hJCb1jb4g2P6YdJhVW87 isiu0H6VGjZhY7X/YhxBB45FIEd9uoa22dp4TAHUGyx7sUQ/dkyj2keQ3fHGjfyAGXGf nHHjhL7TfXQHhyyj+MqypnxLDoGekbFpN6Pycd/Go9mYu7BoYBx9RYQkZYM+i3QfSpTy 07dHdbgdvkdRQscn7oO7PCd6nE886F6QUUPrum5sQrjTRrxfiWkCZ74T892tQE6xViCO 1XbPJGRh3FJpRjjjzbPdRmyWBwz7zLYWKeIxVhY73VY3hkgCFA0O2ar1DPLCcfE0vgS9 RRiw== 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:from :dkim-signature; bh=thuwuWrD51j/PCw+xxhEtLF5o2/5RQb/+JUh6XwKh6w=; fh=P6Lk1G73ziXorgHY2pwMlBudbMoKnFNDjI5Fiv+tnlo=; b=eocFo6qRCo1V7+D6uFyjlzB/Y0ukRGidjwkTDgiRxufyIYsq9+cvrSzdfHsElnSdKq vJS0J6carCUJNE7SGnaQ4nG+Rfdm/zb0XLuOxsAOK6tKoO/FJzDmMapVlWPLP7KDTqPA xj1qdHQkN8EiWjIocxA1S0qksA8kxEcGCUJyo61rCkzvXSAqZXb2HNw94A3aOj1BFUMK 1ZhPIK9xEDsgYw88REk/4zYvwjW8Wdd1F+tB0l/IAu3VGilQWGGwLRUXGZyAEqHmkpE4 6SOTTvgv8rNKosiCxnBLZFmOKbyPUSaxtlJ4H82/foILSkBJ2VA0kQygqJbJfDDBoyuZ SXEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=TFdMEDwQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a25-20020a62e219000000b00666878f8de7si3816523pfi.397.2023.07.07.10.25.26; Fri, 07 Jul 2023 10:25:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=TFdMEDwQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232849AbjGGRX5 (ORCPT + 99 others); Fri, 7 Jul 2023 13:23:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232847AbjGGRXt (ORCPT ); Fri, 7 Jul 2023 13:23:49 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1BBD2697 for ; Fri, 7 Jul 2023 10:22:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1688750553; 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=thuwuWrD51j/PCw+xxhEtLF5o2/5RQb/+JUh6XwKh6w=; b=TFdMEDwQIOtrmwN1LXUoC6batauE1B5rQSsFqZoap2fC72sjs9giDKVbGEiDdzHLQq/4Ju wmPFd0dK0zY12rpfKf9TT6PxdnlvrDosv5aEhQNlHZ7dFj6gh547fth9NWtwsPRVxxoUEL EJ/xV3wc8E+Ul24o25kBC7siesPFILw= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-148-QkjpcIHqOhKLMUo-kwZLvA-1; Fri, 07 Jul 2023 13:22:28 -0400 X-MC-Unique: QkjpcIHqOhKLMUo-kwZLvA-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 47760858EED; Fri, 7 Jul 2023 17:22:28 +0000 (UTC) Received: from vschneid.remote.csb (unknown [10.42.28.164]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 03FA11454142; Fri, 7 Jul 2023 17:22:26 +0000 (UTC) From: Valentin Schneider To: linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-doc@vger.kernel.org Cc: Steven Rostedt , Masami Hiramatsu , Jonathan Corbet , Juri Lelli , Daniel Bristot de Oliveira , Marcelo Tosatti , Leonardo Bras , Frederic Weisbecker Subject: [PATCH v2 9/9] tracing/filters: Document cpumask filtering Date: Fri, 7 Jul 2023 18:21:55 +0100 Message-Id: <20230707172155.70873-10-vschneid@redhat.com> In-Reply-To: <20230707172155.70873-1-vschneid@redhat.com> References: <20230707172155.70873-1-vschneid@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Cpumask, scalar and CPU fields can now be filtered by a user-provided cpumask, document the syntax. Signed-off-by: Valentin Schneider --- Documentation/trace/events.rst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Documentation/trace/events.rst b/Documentation/trace/events.rst index f5fcb8e1218f6..34108d5a55b41 100644 --- a/Documentation/trace/events.rst +++ b/Documentation/trace/events.rst @@ -219,6 +219,20 @@ the function "security_prepare_creds" and less than the end of that function. The ".function" postfix can only be attached to values of size long, and can only be compared with "==" or "!=". +Cpumask fields or scalar fields that encode a CPU number can be filtered using +a user-provided cpumask in cpulist format. The format is as follows:: + + CPUS{$cpulist} + +Operators available to cpumask filtering are: + +& (intersection), ==, != + +For example, this will filter events that have their .target_cpu field present +in the given cpumask:: + + target_cpu & CPUS{17-42} + 5.2 Setting filters ------------------- -- 2.31.1