Received: by 10.213.65.68 with SMTP id h4csp224835imn; Fri, 23 Mar 2018 03:18:08 -0700 (PDT) X-Google-Smtp-Source: AG47ELvVW9Vi00c5rXX/poJdweXu0Kf49BCgdV8fo99lJKRPk/gSKf8vHItRZBK3iW5oTq/IisRe X-Received: by 10.98.246.26 with SMTP id x26mr6779107pfh.81.1521800288656; Fri, 23 Mar 2018 03:18:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521800288; cv=none; d=google.com; s=arc-20160816; b=oaN7nmWbbxVnaCD+qrJOxHW9wMTd/wwApZRvamaA5VMr1pA9SnRl8NlJ9K+eOL/5pd UqISKtfNJrNFHeVC9b1SeFbPKUdNiPM3DZDl0HKZNmXGc/V0JsqUZmQPz+tyxYwL3oCd eab9aViPFpbQ7vJXi2N9szXIfUM20s3vv0JnXtupIEsSXPbktNMtqNPYMEW1dE2pbRNS Wrs/C6Gn2qH+veUSBRhqMmYp8MBdi+LRN5YSB6W8OxWRazke34YqFETm86i9wQwbfM8F I1yGnLXPCoMChgZWKH7kqmjz9Os1tSfRApP5ixJXwyQplpimlDwrPjowBm/lHG1tEEMv /KRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=Et/rm7wp16e4NxLphpRIWrsECtr2hPIIbjEJrRLm5iE=; b=dqdqNt3g7oP4Mrlu/tLwVcFmwRvYAmPTmFHLo50eP3UPo6Kwcb5McZLknzMePdHb8e PjEf2SteyJ23vRprS290nL357knHxDHDNIK3tLFwlxW72RzMOISxLoB160ttpC4CiMkf I9gHCv8bprLV8W+X4Mm18Ruz+ZYALZ2l4gFXHHpp6p6U4Q7ZOTBHnGh15nZlpfYhWkU4 G37FbpqA1VIFyQQ4e15q52gUamWZKQPbYytJSbRh5LVFYJ8Xwn2kerx089T6eDaasLoN CRoH/XOM1is4v7kf97osjIAyFNfzA3LWrDHLxPchMJ/6MUoRztIG0/hwRw+THU7pCee2 EznQ== 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 z19si5748481pgn.46.2018.03.23.03.17.53; Fri, 23 Mar 2018 03:18:08 -0700 (PDT) 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 S933737AbeCWKQ5 (ORCPT + 99 others); Fri, 23 Mar 2018 06:16:57 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:46890 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933726AbeCWKQy (ORCPT ); Fri, 23 Mar 2018 06:16:54 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 72DDCD09; Fri, 23 Mar 2018 10:16:53 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kim Phillips , Alexander Shishkin , Jiri Olsa , Peter Zijlstra , Arnaldo Carvalho de Melo , Sasha Levin Subject: [PATCH 4.4 72/97] perf tests kmod-path: Dont fail if compressed modules arent supported Date: Fri, 23 Mar 2018 10:54:59 +0100 Message-Id: <20180323094201.635160482@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180323094157.535925724@linuxfoundation.org> References: <20180323094157.535925724@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 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 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Kim Phillips [ Upstream commit 805b151a1afd24414706a7f6ae275fbb9649be74 ] __kmod_path__parse() uses is_supported_compression() to determine and parse out compressed module file extensions. On systems without zlib, this test fails and __kmod_path__parse() continues to strcmp "ko" with "gz". Don't do this on those systems. Signed-off-by: Kim Phillips Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Peter Zijlstra Fixes: 3c8a67f50a1e ("perf tools: Add kmod_path__parse function") Link: http://lkml.kernel.org/r/20170503131402.c66e314460026c80cd787b34@arm.com Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- tools/perf/tests/kmod-path.c | 2 ++ 1 file changed, 2 insertions(+) --- a/tools/perf/tests/kmod-path.c +++ b/tools/perf/tests/kmod-path.c @@ -60,6 +60,7 @@ int test__kmod_path__parse(void) M("/xxxx/xxxx/x-x.ko", PERF_RECORD_MISC_KERNEL, true); M("/xxxx/xxxx/x-x.ko", PERF_RECORD_MISC_USER, false); +#ifdef HAVE_ZLIB_SUPPORT /* path alloc_name alloc_ext kmod comp name ext */ T("/xxxx/xxxx/x.ko.gz", true , true , true, true, "[x]", "gz"); T("/xxxx/xxxx/x.ko.gz", false , true , true, true, NULL , "gz"); @@ -95,6 +96,7 @@ int test__kmod_path__parse(void) M("x.ko.gz", PERF_RECORD_MISC_CPUMODE_UNKNOWN, true); M("x.ko.gz", PERF_RECORD_MISC_KERNEL, true); M("x.ko.gz", PERF_RECORD_MISC_USER, false); +#endif /* path alloc_name alloc_ext kmod comp name ext */ T("[test_module]", true , true , true, false, "[test_module]", NULL);