Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1225580imm; Tue, 5 Jun 2018 10:59:31 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL60rl5+u4HlCHhoEt+gg0YruKujYWMuBq0hGXfrXSE3b30pu8P9chHOntVe8mw1RDwWp8i X-Received: by 2002:a17:902:54d:: with SMTP id 71-v6mr27622975plf.365.1528221571508; Tue, 05 Jun 2018 10:59:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528221571; cv=none; d=google.com; s=arc-20160816; b=FGlwyvIVlEeC51w819AdSH+qBJQ8/Sx+IXXD/JmvH5NlIvqZ5mJHnLaLXe696XjNs9 gLl7rc61Aj68sycNhCqjK2mSKGY/Y7rFU8SGtPW0WlW6LQd+CRYpCt5yWg1IY6tH2Bge o3YuzE3yJH5yc9eBPa9B0PIQtDKn1cZtXIonjGsElgrbBlliDa7S8Mb75JCreWODBv+x tfdIMWncR2VrN7Cfu7Ru0f0cr2s6xDjZtCMl2znxdHSMxQk9GTNVhJfd0EBfxif7Qu1D 43FHJbx7PJa5nhZMvH0fE+M1qX9B2lXOglctNFSC+gURagPXMnkEujMV87ksiPos3Yvb hUhg== 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:dkim-signature:arc-authentication-results; bh=NgmY+oYXlsyzW4nP94Q105oHUTvT+eVxnG0KmobN97E=; b=vXwSN90jb2Qgyec5ZM89LE/PcVIRewIUpifJraZYxljn6GY+E1d1vNhSRuWLk6IBKj j7ESjWrcRTbo9BwFDbJkCBVkH9Pulns49v+S7S/Gt9W0iR94x6nj+8LQJSgk+QgMItOl 8rJxh+W3ao9GaagoQRNL4rASGRmOsq5obzKHM4jceEaQG/4daqngeFV+M1dhYH7QRkYA /MlxsHBgZmNa90UVR4qGpkgf9iiLtUlXoMca64qmHCIJqRsgeyI6bYKliEeXy7AO/XY7 iSz9wAEpxdcyVXbdSzeeTa17z+K9HlZ8bUF2ctfElFUlJzd88v9JjIrycH7A78cpGhVV JmCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gUwdSZ8u; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p14-v6si40122685pgc.216.2018.06.05.10.59.17; Tue, 05 Jun 2018 10:59:31 -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; dkim=pass header.i=@kernel.org header.s=default header.b=gUwdSZ8u; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753059AbeFER6Y (ORCPT + 99 others); Tue, 5 Jun 2018 13:58:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:46490 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752825AbeFERwW (ORCPT ); Tue, 5 Jun 2018 13:52:22 -0400 Received: from jouet.infradead.org (unknown [179.97.41.186]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E19DD2083B; Tue, 5 Jun 2018 17:52:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1528221141; bh=FKlMNGf6N/pUDGbc6RE1Pr9+It+Lm+M04REjTFRaciU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gUwdSZ8u/p+rxa3b+qk4dcIn9rorVnzxmr1PRN88gj/u0HovJ3VNE4KhuleN/w1BX RYvgCiSZyaJOusoU6AVvGkC732ihxcZoclQGMc0Vg9p5sCXrBKGQwQvFgA8UQGuJ0P o3GHo0Y0SrrJRy5WtkcI1FBSSQSwtQyfrKrmd83g= From: Arnaldo Carvalho de Melo To: Ingo Molnar Cc: Clark Williams , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Adrian Hunter , Jiri Olsa , Wang Nan , Arnaldo Carvalho de Melo Subject: [PATCH 34/46] perf tests kmod-path: Add tests for vdso32 and vdsox32 Date: Tue, 5 Jun 2018 14:50:18 -0300 Message-Id: <20180605175030.32549-35-acme@kernel.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180605175030.32549-1-acme@kernel.org> References: <20180605175030.32549-1-acme@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Adrian Hunter Add tests for vdso32 and vdsox32. This will cause the overall test to fail because __kmod_path__parse() does not handle vdso32 or vdsox32. Fixes: 1f121b03d058 ("perf tools: Deal with kernel module names in '[]' correctly") Signed-off-by: Adrian Hunter Cc: Jiri Olsa Cc: Wang Nan Link: http://lkml.kernel.org/r/1528117014-30032-2-git-send-email-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/tests/kmod-path.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tools/perf/tests/kmod-path.c b/tools/perf/tests/kmod-path.c index 8e57d46109de..148dd31cc201 100644 --- a/tools/perf/tests/kmod-path.c +++ b/tools/perf/tests/kmod-path.c @@ -127,6 +127,22 @@ int test__kmod_path__parse(struct test *t __maybe_unused, int subtest __maybe_un M("[vdso]", PERF_RECORD_MISC_KERNEL, false); M("[vdso]", PERF_RECORD_MISC_USER, false); + T("[vdso32]", true , true , false, false, "[vdso32]", NULL); + T("[vdso32]", false , true , false, false, NULL , NULL); + T("[vdso32]", true , false , false, false, "[vdso32]", NULL); + T("[vdso32]", false , false , false, false, NULL , NULL); + M("[vdso32]", PERF_RECORD_MISC_CPUMODE_UNKNOWN, false); + M("[vdso32]", PERF_RECORD_MISC_KERNEL, false); + M("[vdso32]", PERF_RECORD_MISC_USER, false); + + T("[vdsox32]", true , true , false, false, "[vdsox32]", NULL); + T("[vdsox32]", false , true , false, false, NULL , NULL); + T("[vdsox32]", true , false , false, false, "[vdsox32]", NULL); + T("[vdsox32]", false , false , false, false, NULL , NULL); + M("[vdsox32]", PERF_RECORD_MISC_CPUMODE_UNKNOWN, false); + M("[vdsox32]", PERF_RECORD_MISC_KERNEL, false); + M("[vdsox32]", PERF_RECORD_MISC_USER, false); + /* path alloc_name alloc_ext kmod comp name ext */ T("[vsyscall]", true , true , false, false, "[vsyscall]", NULL); T("[vsyscall]", false , true , false, false, NULL , NULL); -- 2.14.3