From owner-freebsd-dtrace@freebsd.org Fri Aug 17 13:35:29 2018 Return-Path: Delivered-To: freebsd-dtrace@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D3272106F137 for ; Fri, 17 Aug 2018 13:35:28 +0000 (UTC) (envelope-from ashfixit@gmail.com) Received: from mail-yw1-xc36.google.com (mail-yw1-xc36.google.com [IPv6:2607:f8b0:4864:20::c36]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 580F17DCD1 for ; Fri, 17 Aug 2018 13:35:28 +0000 (UTC) (envelope-from ashfixit@gmail.com) Received: by mail-yw1-xc36.google.com with SMTP id y203-v6so4360980ywd.9 for ; Fri, 17 Aug 2018 06:35:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ieYzVP/u53WgM0gcdC2Ew30Ty9fVja8siKsd7msuX1w=; b=An0Dy6GOcPtIiPlQKcsmAxgV/F66PjpOUKx+fIoubTq5ekf8PRGCMo6hqC2fAQDYlm grqSGOEbLTrNpVRSsTFMT30MRlExcKppyZcsWXQVW/qkpmgsWQOVRT3tfZHOstDIuT2h sRQkVXVye5k7T4RQ9yDt2vbWgINcZjxPagiS11DOMyEzpkw4Mv1jevjvwkY5nokmzeNN XPLY6GjBvUTUNvketYG52s53tN/hWChG7bo9qILwPaTORPyLkpzF/EupnjuFPC0yb+cg nyCwPEPxVrhnwZqgn8ohYu0b2U+UecOjXK7TqcHUYJwhFnhWPbadgQq2kXAt/AMZqCyH vXkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ieYzVP/u53WgM0gcdC2Ew30Ty9fVja8siKsd7msuX1w=; b=KHibbeb35TopL4UO2O0BtEhRmpSK/KerEBlejPgnaKjwtkUbmfQK7G5uC3SBrwjvFK cclmEXnKvzJ0VOH9R4gCpuFTA3tvq8xlu8O0ZVbDCrdmytDiJUvwLCYk+G0DMDGJtSv2 hwa/3oYP5LtbqgRfuOXGuxYxfVbDb9iUZdhJ6njYr3RRCrZm9Po2hlDcNwCCIKPgvX2l 2LIk96mgujbhcdPzqduU61goYCTcnaFBrMvWVPwcMQFmDrRulGueeUX9E40GJzrgydfq fKafJM7FTik4PypiPUZtpWogiZlzC6J0JeRnHLv8e1rCLVsEQNuJ9kW/WGa92Etl9Fwp lrIA== X-Gm-Message-State: AOUpUlH/8cvIEkDD6FMmAKxIKQ4Cd/35PzPZxqs25QJg1Fl4YN/JhDZy GqnF25tnMZ89VSoxd5wBt/YVVDtRN4UcoiMtFvYwAk8G X-Google-Smtp-Source: AA+uWPwKvaIrrQf3iTTxd3xViXvedxrXO3Bj0icPyI4nMmMM6Af3EZogEArq9Eq3mGv1OOIFfs12nZtpBgPNL0R86ok= X-Received: by 2002:a81:430f:: with SMTP id q15-v6mr780495ywa.225.1534512927364; Fri, 17 Aug 2018 06:35:27 -0700 (PDT) MIME-Version: 1.0 References: <54B93C32-7672-4A54-9272-F3F0CF5B38BD@gmail.com> In-Reply-To: <54B93C32-7672-4A54-9272-F3F0CF5B38BD@gmail.com> From: Ash Gokhale Date: Fri, 17 Aug 2018 09:35:14 -0400 Message-ID: Subject: Re: Filter out dtrace(1) probes To: freebsd-dtrace@freebsd.org Cc: khanzf@gmail.com Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "A discussion list for developers working on DTrace in FreeBSD." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Aug 2018 13:35:29 -0000 > > > > On 17 Aug 2018, at 00:49, Farhan Khan wrote: > > > > Hi all, > > > > Is it possible to filter out probes? > > For example, if I did: > > > > dtrace -n 'fbt:kernel::entry { something_here }' > Sure, try extending this: dtrace -n 'fbt:kernel:read*:entry /probefunc != "read_cpu_time" && probefunc != "readdep"/ {@[probefunc]=count();}' Altough fbt::kernel::entry is going to mach a _lot_ of probes. Unless you are looking for a simple kernel function use count this is probably going to overload the data collection plumbing. You should probably narrow your probe list based on what you are hunting. Also fbt:kernel::entry is only going to get core freebsd calls, excluding all loadable modules (zfs.ko ..) . if you really want all kernel functions, use fbt:::entry, as blank entries are wildcards.