Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2067820ybt; Thu, 2 Jul 2020 23:17:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxIlsqBBc2m7suUavAoDAoVyjsG4MC8UDLehN3jl1GpsRuMydvDDmP8lU/NRo33aWn0iwSp X-Received: by 2002:a17:906:7253:: with SMTP id n19mr4405241ejk.31.1593757071912; Thu, 02 Jul 2020 23:17:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593757071; cv=none; d=google.com; s=arc-20160816; b=y8oVey+rXbrAiVVvSOGExc/vqCHVzAzEJD+fBDwVGWm9rr40t1S8junoGILpgRUb1A MzaR4oRbuM8nimiqedkdgsD3A0WdXSAFbc+94g4oa519ZxWHuv1h252ADubpQrm+v1nd rYGNHZx9Ibk0qUH3I2dDZopVsHLCgd/NckX4pfs6u4U4HsNBreaXMtrUnLYZzJnCWdgx u9iL2Yel+869C89Uv87bja6CqSTU1bYiL+DXROL3wDzKIcwxkHli6hdaeHIqlzpHMMPh z/CCKIrKdXRtGc10tCsduUDJqsXbwbaPCBHqLmJfYTsXmvqwIzfEagoFlazDMwgD6bKp ASPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=XQo/Rd+xHPmGgmIcOXUptpIYqJIjEhRxjJjwkv3wZFI=; b=W0LpkP1D3xfadNIMhPJ8Xdnf0J4zeMAcyT4ehJfYO37Iyv42t89hPd5kXP2gd2RtiH ymITBMaVbHxlnoBfJ79mXcWciWZ5dv66GNwySg9PV8mSwwymberO2NWKAVQ8WsvoRtVA FMCufLXe3+ogQaB+r4Fl6uPKMcrogEH+7dcObvEiAN7pOJrRgAGrWVm2Z5e4fKMuUKyL f1uv6q+AS1ooCJFT0/NOqbRdqB/tWBdyj2bZoTxpl2kWqAOsZBn6i1jQUzPTJJo385Km hKmKGpMKOuzP6QHi10F5fKcfI+nZ1g6r00hBrc0V1WE0j09dEl3izmR1pai4QDe/O9dl Y+wA== ARC-Authentication-Results: i=1; mx.google.com; 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 i13si7213471ejy.649.2020.07.02.23.17.28; Thu, 02 Jul 2020 23:17:51 -0700 (PDT) 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; 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 S1726063AbgGCGRY (ORCPT + 99 others); Fri, 3 Jul 2020 02:17:24 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:38277 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725764AbgGCGRY (ORCPT ); Fri, 3 Jul 2020 02:17:24 -0400 Received: by mail-wr1-f68.google.com with SMTP id z13so31378267wrw.5 for ; Thu, 02 Jul 2020 23:17:22 -0700 (PDT) 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=XQo/Rd+xHPmGgmIcOXUptpIYqJIjEhRxjJjwkv3wZFI=; b=Wie+xtDAvAwWBXbi4/yP7vQ4nDAQiF2GdEufERB9liab+KBJocGiyI6ZxxFXOakZuE xa3oyrjrnUBJdIirgnMvt/SQEFjASFLkUtxjpW3ASTEkArMbfSTd9h22Xj6BJ/CFZxOk cYCTB0pX2JaZ6W5nrudfpZFRsaI+jUAIMGs/6GgQV0NSlTb/Eom3YQKHlmB0YVTXW0AE uo25Wk9UlbHt2wZy5IBRoas1AmdhGJZm7o9MD+FfY6hB3qnf0nnBgCKCX1aF+D9m1vNX Pf/V/23EoXpYKIDlfsxdtWmFWRPPLCN61zgUjmTj85PQJIs7QWV/nx/rqIzNJAMUf1N8 8zdA== X-Gm-Message-State: AOAM531F3GdslPfGBbUQ2KP+pihD0mvRR4Dw73hK+dQSmBkcYeL0NL9P PXSsOoc+VCwfEVmjW4VIuU0MJK/CPHHsv3sXLdg= X-Received: by 2002:a5d:538e:: with SMTP id d14mr35161491wrv.21.1593757042208; Thu, 02 Jul 2020 23:17:22 -0700 (PDT) MIME-Version: 1.0 References: <20200627133654.64863-1-changbin.du@gmail.com> <20200627133654.64863-7-changbin.du@gmail.com> In-Reply-To: <20200627133654.64863-7-changbin.du@gmail.com> From: Namhyung Kim Date: Fri, 3 Jul 2020 15:17:04 +0900 Message-ID: Subject: Re: [PATCH v2 06/15] perf ftrace: add option '-m/--buffer-size' to set per-cpu buffer size To: Changbin Du Cc: Jiri Olsa , Arnaldo Carvalho de Melo , Peter Zijlstra , Ingo Molnar , Steven Rostedt , linux-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jun 27, 2020 at 10:38 PM Changbin Du wrote: > > This adds an option '-m/--buffer-size' to allow us set the size of per-cpu > tracing buffer. > > Signed-off-by: Changbin Du > --- [SNIP] > @@ -555,6 +575,8 @@ int cmd_ftrace(int argc, const char **argv) > "Max depth for function graph tracer"), > OPT_UINTEGER('d', "delay", &ftrace.initial_delay, > "ms to wait before starting tracing after program start"), > + OPT_UINTEGER('m', "buffer-size", &ftrace.buffer_size_kb, > + "size of per cpu buffer in kb"), It'd be nice if we support units as a suffix (like perf record). e.g. -m 4M Thanks Namhyung > OPT_END() > }; > > -- > 2.25.1 >