Received: by 10.223.176.46 with SMTP id f43csp36078wra; Thu, 18 Jan 2018 13:33:05 -0800 (PST) X-Google-Smtp-Source: ACJfBou8I/YOGJEbA5kjGlCliTecWDQfPQOg2Uk7si6Xlw2a2LdU88czO3qyG3+9Z1mkB88PB2PR X-Received: by 10.99.65.133 with SMTP id o127mr35701290pga.13.1516311185499; Thu, 18 Jan 2018 13:33:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516311185; cv=none; d=google.com; s=arc-20160816; b=PSQaalrdL7TTm4ZXRbp+hekb9fnnoCIdrtBspGF1F9fsFD7IjfVHhCpglHWwDLqCNW g4S37kAMx584DZjVuInID14BcDBFN42bfmCSwZyEC3QNNqjK3pUDSX20lbngjnksUedn f2HJstWvRxUG2e1nWCVTePYhKin2i+t130LCRebMUZfjlfw15NEGJJDOia+j2I77Y01U 4IpuoBm0QdDIAB4TMZ45ijNyUAiHZe1qO38sFpEiUgIykS6AmSHkrhNu88/4dmLt1+AQ Q++I4HeE1h1cvKKo5zi3anhsv7WDoy8ukLT6acJtiPCO76pzrsOIhnOESirLM+D/vAdj RRsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=7T3f9J8zxjeVuf7h+opGBlsQVuyiD2Osk2EHDxw8iSo=; b=tIjEEYecp2yKr7QqcGtB5EK5KWKFktSbc8CWMz2rpyTY/HqTaR4K92vV43gY9Qym/r PXJDEVGJL2yhWHll37cDUdrBNlFVVT0gOF4WAUmQUaTUeeURLu/mDZmN+Y+8ArnQ6/Aa B2CM3TL2FpLf7q/THDhJ7SyAXEtFa6c13lZ9UtUDD5Ytz3ccxBWn13GGwi2LJ4UqoIHU FsXt+ZM1sSAsOT6odjlnp3nle2vqh2k3XOjDR06BveZBP+gcZyDYsEVQqKE4EltJ3CUW cxSqDbfJwOfY3mKDJ5Nu+RCOupX/CH1ETr4oZJzZRhDz+XNYWVbNRr96IA1doE7hkzOQ 4pyA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n10si6836713pgc.801.2018.01.18.13.32.52; Thu, 18 Jan 2018 13:33:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755191AbeARVae (ORCPT + 99 others); Thu, 18 Jan 2018 16:30:34 -0500 Received: from mga04.intel.com ([192.55.52.120]:47423 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753928AbeARV1h (ORCPT ); Thu, 18 Jan 2018 16:27:37 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Jan 2018 13:27:36 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,378,1511856000"; d="scan'208";a="11477274" Received: from otc-knm-01.jf.intel.com ([10.54.39.34]) by fmsmga008.fm.intel.com with ESMTP; 18 Jan 2018 13:27:35 -0800 From: kan.liang@intel.com To: acme@kernel.org, peterz@infradead.org, mingo@redhat.com, linux-kernel@vger.kernel.org Cc: wangnan0@huawei.com, jolsa@kernel.org, namhyung@kernel.org, ak@linux.intel.com, yao.jin@linux.intel.com, Kan Liang Subject: [PATCH V5 12/17] perf evsel: expose perf_missing_features.write_backward Date: Thu, 18 Jan 2018 13:26:27 -0800 Message-Id: <1516310792-208685-13-git-send-email-kan.liang@intel.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1516310792-208685-1-git-send-email-kan.liang@intel.com> References: <1516310792-208685-1-git-send-email-kan.liang@intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kan Liang perf top need it to handle overwrite fallback later. Signed-off-by: Kan Liang --- tools/perf/util/evsel.c | 5 +++++ tools/perf/util/evsel.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/tools/perf/util/evsel.c b/tools/perf/util/evsel.c index 4eea3b4..1dd3700 100644 --- a/tools/perf/util/evsel.c +++ b/tools/perf/util/evsel.c @@ -1670,6 +1670,11 @@ static bool ignore_missing_thread(struct perf_evsel *evsel, return true; } +bool is_write_backward_fail(void) +{ + return perf_missing_features.write_backward; +} + int perf_evsel__open(struct perf_evsel *evsel, struct cpu_map *cpus, struct thread_map *threads) { diff --git a/tools/perf/util/evsel.h b/tools/perf/util/evsel.h index 846e416..1f46728 100644 --- a/tools/perf/util/evsel.h +++ b/tools/perf/util/evsel.h @@ -448,4 +448,6 @@ int perf_event_attr__fprintf(FILE *fp, struct perf_event_attr *attr, struct perf_env *perf_evsel__env(struct perf_evsel *evsel); +bool is_write_backward_fail(void); + #endif /* __PERF_EVSEL_H */ -- 2.5.5