Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1671701pxy; Thu, 29 Apr 2021 11:48:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEfKw2zFkgWqB5x0Gdmjoz2/u7cIHGBcwkiHK+3HI25kvmkyr7Tm2V2F/Y/TcGCikRsjoy X-Received: by 2002:a17:906:a20b:: with SMTP id r11mr1392800ejy.323.1619722100635; Thu, 29 Apr 2021 11:48:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619722100; cv=none; d=google.com; s=arc-20160816; b=KAGcUya6BIc6tBpZupMQEO/IkJH98gp4RPlesBMWZ2pHMVa0iYqpH4pBiBAiNkRmlW aMz+/+8aVoSEa0LWvUYfUX0mm/cdy6r54o8R2V3Ez9/mY9usSvaaumIQDdnr3JZUQG/c UP1UVBxvuzz6hHL+7M0psaKEdmNl4gX5nQ+b3OFjfIyn7zGKVoM+IUmUpVx3efls53++ NoPFAlRnIDjqX5/J3tTCvNZLrInhBksfaxDk/DBo0XFta2I64k/mGUM+bO6NnQoLRqGr /JOURX425k9PDiiIpxU38IFTIaR6+Vi9L4uvP0uOyOn6oxZqyXgyJmi8GUJ/PZAghxr4 Oybg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:ironport-sdr :ironport-sdr; bh=/w9s71V6qot0QvJ9W18wC5VhtMXZPIBg2tAZGrcOWNo=; b=ExzwWsD90FUF5Oddo84CAf8pC1E02FCKXTgOshIUarX4UZTRJTrff46aJ0AgP44D78 IIdUSVGzCvSkTJmAN8fRkGr3nkOMu/cRolkmRK28mHpzzz0MqT4wq7PbjhMo2x9b7y3a pVSBhQeD2VCvG7qf0jwOXMjE+P4kzdZIsisVfQ29gHPq7CM0YbdxAK6wF7+hYOW3TxJG bb9qxqo/095pu6zKpas3sml/hrinzldtT1Y5636Z3SkOzwUGqT5kH9aQNCdfR5L8jKgl XeCEjHw7uvRZso+VCguJ4B3IDc+rWQhkY1cOulkDBs+rHH+n9Hkuww9jpLAqdru043xE so3g== 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z40si3713570ede.300.2021.04.29.11.47.55; Thu, 29 Apr 2021 11:48:20 -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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234028AbhD2Srk (ORCPT + 99 others); Thu, 29 Apr 2021 14:47:40 -0400 Received: from mga14.intel.com ([192.55.52.115]:56820 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233565AbhD2Srj (ORCPT ); Thu, 29 Apr 2021 14:47:39 -0400 IronPort-SDR: 4K8whC8pH4pZnsglkeESp/n21+Yb9sWonmFXXi66Z9QmtaPBAfKw5UH5oKdabtpj9hgkRIEqiE 5eePx1rpReCQ== X-IronPort-AV: E=McAfee;i="6200,9189,9969"; a="196646490" X-IronPort-AV: E=Sophos;i="5.82,260,1613462400"; d="scan'208";a="196646490" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2021 11:46:53 -0700 IronPort-SDR: 2vVxhEbejwAlySUKZBbM/Mwld9KINWOVFUSrNWwGKtQIUrWfcS8mDGQRHjWmSNl5iXS4+I+qUa rJQ25GfKt92g== X-IronPort-AV: E=Sophos;i="5.82,260,1613462400"; d="scan'208";a="394010862" Received: from tassilo.jf.intel.com ([10.54.74.11]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2021 11:46:52 -0700 Date: Thu, 29 Apr 2021 11:46:51 -0700 From: Andi Kleen To: Adrian Hunter Cc: Arnaldo Carvalho de Melo , Jiri Olsa , linux-kernel@vger.kernel.org Subject: Re: [PATCH 05/12] perf inject: Add --vm-time-correlation option Message-ID: <20210429184651.GD4032392@tassilo.jf.intel.com> References: <20210429125854.13905-1-adrian.hunter@intel.com> <20210429125854.13905-6-adrian.hunter@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210429125854.13905-6-adrian.hunter@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 29, 2021 at 03:58:47PM +0300, Adrian Hunter wrote: > evsel->handler = drop_sample; > } > > +static int parse_vm_time_correlation(const struct option *opt, const char *str, int unset) > +{ > + struct perf_inject *inject = opt->value; > + const char *args; > + char *dry_run; > + > + if (unset) > + return 0; > + > + inject->itrace_synth_opts.set = true; > + inject->itrace_synth_opts.vm_time_correlation = true; > + inject->in_place_update = true; > + > + if (!str) > + return 0; > + > + dry_run = strstr(str, "dry-run"); Please use a proper split, otherwise it cannot be extended. Right now just !strcmp is enough I guess >