Message ID | 20230707172155.70873-10-vschneid@redhat.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp3440863vqx; Fri, 7 Jul 2023 10:58:30 -0700 (PDT) X-Google-Smtp-Source: APBJJlEXPp6u6jhlrxn+9qDgYsF2tNSAcx12MZKPV+tjZWn0xF9ck3JvuZ0jTiYD9zESEXjuwdd7 X-Received: by 2002:a17:90b:1998:b0:263:a37:fcc3 with SMTP id mv24-20020a17090b199800b002630a37fcc3mr4506272pjb.5.1688752710256; Fri, 07 Jul 2023 10:58:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688752710; cv=none; d=google.com; s=arc-20160816; b=rJYy85BtNY55PW6H4rbdAbabCTVxCvXHsi5PJv9rOcN8tDTBJ1oOLzQ8jPuHtiA4xC ii92YKoPttmiUNEY6jCZaRnM/O31a6pVwkOyGyX3VgKbp+zA+JHZaAY75y0n/TNu3vtC a0HqDdvr91YibNPtl5U5sTEj0QpginBXTbuM1HJRqHcWvbVD8xR05gRsH/nhkSAnVDd/ c6l9cQGqe9gr99yIAl3cl5R5NvCxdssj/QPbhRLH6vZfZ/0nVa4uG+Gswfv5BjX3UiBC K4qOkP+WFCvqZCsQppVPmYxxFa06he7BVdTUR44wpGrS9iceR/PY8cTnc7cElSIoai/J 1G7Q== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 73-20020a63014c000000b005429248576asi4360705pgb.128.2023.07.07.10.58.17; Fri, 07 Jul 2023 10:58:30 -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 S232842AbjGGRX5 (ORCPT <rfc822;hadasmailinglist@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <linux-kernel@vger.kernel.org>; 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 <vschneid@redhat.com> To: linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-doc@vger.kernel.org Cc: Steven Rostedt <rostedt@goodmis.org>, Masami Hiramatsu <mhiramat@kernel.org>, Jonathan Corbet <corbet@lwn.net>, Juri Lelli <juri.lelli@redhat.com>, Daniel Bristot de Oliveira <bristot@redhat.com>, Marcelo Tosatti <mtosatti@redhat.com>, Leonardo Bras <leobras@redhat.com>, Frederic Weisbecker <frederic@kernel.org> 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770785562151202370?= X-GMAIL-MSGID: =?utf-8?q?1770785562151202370?= |
Series |
tracing/filters: filtering event fields with a cpumask
|
|
Commit Message
Valentin Schneider
July 7, 2023, 5:21 p.m. UTC
Cpumask, scalar and CPU fields can now be filtered by a user-provided
cpumask, document the syntax.
Signed-off-by: Valentin Schneider <vschneid@redhat.com>
---
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 -------------------