From patchwork Mon Apr 15 10:43:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Slavomir Kaslev X-Patchwork-Id: 10900519 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D81131390 for ; Mon, 15 Apr 2019 10:43:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C12FD28563 for ; Mon, 15 Apr 2019 10:43:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BF52328807; Mon, 15 Apr 2019 10:43:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 65C3D28563 for ; Mon, 15 Apr 2019 10:43:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726891AbfDOKnw (ORCPT ); Mon, 15 Apr 2019 06:43:52 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:33523 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725939AbfDOKnv (ORCPT ); Mon, 15 Apr 2019 06:43:51 -0400 Received: by mail-wr1-f65.google.com with SMTP id q1so21309289wrp.0 for ; Mon, 15 Apr 2019 03:43:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=t/MbHsWEdui/G9blIqPB80dIGiCb/dQ8o0zBb3qoh2I=; b=EVxMYW8KiS/SzfpF/zDjkvb+xOofZ29JVExuBJ8ZOdZuUoFoN4SZQkFOjhdncqHB8u WC2IBVGkOggOlZ/lKoSttduxHbG/6BnIoXupVJiz3U2XaKyfv26jWxSw2S46HPJSnLPj jZaUQsmkeHJBT09x2EBdrSPdM3pz7I0OSLuTD+mKlAyA0u0uCwd/buAunte7GcmlI4rb H8O+e5+gIAEFdcpNosH4vHtKazOY6xfJBho3X6reGKSQ2fNSwFVe+Db1LgbyX086R9dM QM80AwxmCPNS7MGmWgjyR2KEPOxe5USa+Un2z+qFOUq0vDCZ3EWvq1imySBopTD+z3St ZEsw== X-Gm-Message-State: APjAAAWmIpxWI0GJlWQV3lgDPrxq8JX5Da5vP6qGcYhC2AnjQve4R27h 6R8aZ+h+r3s84TLmrnEmNg== X-Google-Smtp-Source: APXvYqztC+q/TPp9i/qzSUYAPFRF8rWstLkL4zJj5G31eFDpQukC1JVm5C4BJAO7VsAixrq3pWugsA== X-Received: by 2002:adf:e683:: with SMTP id r3mr50075368wrm.286.1555325030038; Mon, 15 Apr 2019 03:43:50 -0700 (PDT) Received: from localhost.localdomain ([151.251.250.145]) by smtp.gmail.com with ESMTPSA id y17sm60463430wrh.60.2019.04.15.03.43.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Apr 2019 03:43:49 -0700 (PDT) From: Slavomir Kaslev To: rostedt@goodmis.org Cc: linux-trace-devel@vger.kernel.org, pauld@redhat.com, ykaradzhov@vmware.com, jbacik@fb.com, tstoyanov@vmware.com, slavomir.kaslev@gmail.com Subject: [PATCH 0/2] Optimize pid filters and add --no-filter option Date: Mon, 15 Apr 2019 13:43:41 +0300 Message-Id: <20190415104343.31113-1-kaslevs@vmware.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Sender: linux-trace-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-trace-devel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patchset optimizes how pid filters are expressed and makes it less likely that we overflow ftrace filters' size limit of one page. Slavomir Kaslev (2): trace-cmd: Optimize how pid filters are expressed trace-cmd: Add --no-filter option to not filter recording processes tracecmd/trace-record.c | 126 +++++++++++++++++++++++++++------------- tracecmd/trace-usage.c | 1 + 2 files changed, 87 insertions(+), 40 deletions(-) Acked-by: Phil Auld