Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp126325lqo; Thu, 9 May 2024 15:00:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXu9+MxzVJXA0p3l6gURDJzmcoQtsrxJ1D8LjmFmiy3kwynf9Fb6oqL/jIV3dGFH/BFW8dP2ken17OtlYxwemMmyommq2ohVNd2o0SMrQ== X-Google-Smtp-Source: AGHT+IFJY3WuPJmFvTFk7dFfz9EJyeacIkTsrqDrJbt9ipTgYP3NzL29K4EgmMNA78bI2XKqaJWh X-Received: by 2002:a17:90a:a10d:b0:2a5:badb:30ea with SMTP id 98e67ed59e1d1-2b6ccd76d85mr751104a91.36.1715292000569; Thu, 09 May 2024 15:00:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715292000; cv=pass; d=google.com; s=arc-20160816; b=tH7mu77AHUIcvzR/oXc7kZvNlOClJoqJe0ZFTwLOU76C0ofR8MpG3wmwKpQxXweuil Z195X/nrcb7n6qW0cMYDkEOWHy07nFB1oMupvW3prmfHYzssJTd5mMMZwWziwno5FUul hs9KzhDahkUyPsW7nLnOojaZNGV9mSHYpucXyP+SXsq/ExxsePMBaIxTKlIpgd8wMwQp tCkfYvvclC4KzUB5rzZEB+3yU9GnTf2RepKfm4kCsu/PIkylfoxkZ5yx3zWSWvSB0QAx UKa95geZFvT8TniUbGLb7Vx39PK1kcK1HDv/fRSQSh0C9r3SmMwicJ123TFjqH9f7EuJ 6zew== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=0iPoojjKgcH+TQ6GRd67EtYx4kNvRFbwZWP5w+OBCKw=; fh=ZtcJ2l0PNXwmutfCubf1BrEvokGgCO/TvUwzKC5lSIQ=; b=B4k8tIAJjDwoxBEoPIjyyzPnZIiG8ghoxh5JvRABUJ8cz+2qKs+pbaPnJvs25S+BgU 6VTT8F+0hTerKaVC2pmRXgjQsI7yWlrm5+4WqmPhCxluUNlolPdLxRWBH8yHOv9THliN vLNnwWKazGXtdMgSXvs8B7FADTKBcMvmn2EBGMp2c9m839jhz75C9Nb3DpXCa6VpmcUn c7yIRC4R5Mw+KCjSpxxaxtQFvcLF0vSjaJakSX6TzWQ1EJtjiVvMezHMHFGodqMIGSEx R9LpEdV6F1fqVNYflbnsCb+2M0pf77p5rD9QYcnClPVSLolsyuoVlaz+NxJJAS2SQq+A pFfQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@codewreck.org header.s=2 header.b=Djm6UYGC; arc=pass (i=1 spf=pass spfdomain=codewreck.org dkim=pass dkdomain=codewreck.org dmarc=pass fromdomain=codewreck.org); spf=pass (google.com: domain of linux-kernel+bounces-175015-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175015-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=codewreck.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2b628868bcdsi2730771a91.11.2024.05.09.15.00.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 15:00:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175015-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@codewreck.org header.s=2 header.b=Djm6UYGC; arc=pass (i=1 spf=pass spfdomain=codewreck.org dkim=pass dkdomain=codewreck.org dmarc=pass fromdomain=codewreck.org); spf=pass (google.com: domain of linux-kernel+bounces-175015-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175015-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=codewreck.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id B1B7D2833D2 for ; Thu, 9 May 2024 21:59:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 300C81292F8; Thu, 9 May 2024 21:59:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=codewreck.org header.i=@codewreck.org header.b="Djm6UYGC" Received: from submarine.notk.org (62-210-214-84.rev.poneytelecom.eu [62.210.214.84]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E810F1292CF; Thu, 9 May 2024 21:59:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.210.214.84 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715291973; cv=none; b=LaY44bBGBHP63n3XLuTEiz/CO+3UnUolzxW62CGSdccFx7o+ZLfCOuT59Uyp46heH+/9Tn2E70FWlIBDMHzN2mUNuTgxBYNC1FaHP9VVbVhI9bzvCMYl/GjpqOr7wp1b3oRTzQaVJr8GpCgYL8oHtwbBBSzpvAGIgj+XniZ+LZg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715291973; c=relaxed/simple; bh=vQTSqcXkDJPaIBbcnpAEzAyTOeOOsBcfw+OQRd5OE80=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=tATYds8wxdUXg7cYJZBhIXZlJprS1kXVJtU85JTa4frr2gb2fjwtT4e6LHcsucRSMexe+2naTAuIe+p1SPtpjIoV+PchgQjJD324x/7A+OqFy41rIf8P6xgrAGk8rzY3ALoQDGPCnE+4SXTcqPnT9dH3evCzG+wM//pCQSNrYMQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=codewreck.org; spf=pass smtp.mailfrom=codewreck.org; dkim=pass (2048-bit key) header.d=codewreck.org header.i=@codewreck.org header.b=Djm6UYGC; arc=none smtp.client-ip=62.210.214.84 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=codewreck.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=codewreck.org Received: from gaia.codewreck.org (localhost [127.0.0.1]) by submarine.notk.org (Postfix) with ESMTPS id 0229B14C2DB; Thu, 9 May 2024 23:59:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codewreck.org; s=2; t=1715291968; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0iPoojjKgcH+TQ6GRd67EtYx4kNvRFbwZWP5w+OBCKw=; b=Djm6UYGCuu4rndXevZy7UP2V8BnEec3M++zEJPI9+UUWspmBHME3aJJgPzG0EtX/Qbakl+ fUD3h3feYQuTeH3vT5gZNg57//xeLlImnRxZhccjywu8anD1O4dP7HZf1JfLL9cp9SFhpP A+HA0ljILkymtIQsNriFR/NVrFPpIXk2nKHNe8mTO4xGwl58xuIFbe0xnwnEWQLkOvJqb2 nL/8ROkwZtDeimF4aNo18n90M3ytNfXk3RxjCosx90mdkIpqyqqq2FAMWdj5/wcOoZTued JA9gvEOBDA4a2I4SAOBgHNVOeA981BsnbJ+4YnF4tzHbSZp0S5UqUmng7r+mrg== Received: from localhost (gaia.codewreck.org [local]) by gaia.codewreck.org (OpenSMTPD) with ESMTPA id d6740ee3; Thu, 9 May 2024 21:59:20 +0000 (UTC) Date: Fri, 10 May 2024 06:59:05 +0900 From: Dominique Martinet To: Arnaldo Carvalho de Melo Cc: Ian Rogers , Jiri Olsa , Peter Zijlstra , Ingo Molnar , Namhyung Kim , Mark Rutland , Alexander Shishkin , Adrian Hunter , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/3] perf parse-events: pass parse_state to add_tracepoint Message-ID: References: <20240505-perf_digit-v2-0-6ece307fdaad@codewreck.org> <20240505-perf_digit-v2-1-6ece307fdaad@codewreck.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Arnaldo Carvalho de Melo wrote on Thu, May 09, 2024 at 06:46:19PM -0300: > ⬢[acme@toolbox perf-tools-next]$ git log --oneline -1 ; time make -C tools/perf build-test > [...] > tests/parse-events.c:2274:26: error: ‘test__checkevent_tracepoint’ undeclared here (not in a function); did you mean ‘test__checkevent_breakpoint’? > 2274 | .check = test__checkevent_tracepoint, > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ > | test__checkevent_breakpoint > make[6]: *** [/home/acme/git/perf-tools-next/tools/build/Makefile.build:105: tests/parse-events.o] Error 1 > make[6]: *** Waiting for unfinished jobs.... Sorry, didn't know about build-test; I've confirmed the problem [and will eventually want to check how to build this cleanly on nixos, it's a pain to shuffle the patch around to rebuild perf...] It looks like the test case just needs an extra ifdef for LIBTRACEEVEENT? ---- diff --git a/tools/perf/tests/parse-events.c b/tools/perf/tests/parse-events.c index 417d4782a520..edc2adcf1bae 100644 --- a/tools/perf/tests/parse-events.c +++ b/tools/perf/tests/parse-events.c @@ -2269,11 +2269,13 @@ static const struct evlist_test test__events[] = { .check = test__checkevent_breakpoint_2_events, /* 3 */ }, +#ifdef HAVE_LIBTRACEEVENT { .name = "9p:9p_client_req", .check = test__checkevent_tracepoint, /* 4 */ }, +#endif }; static const struct evlist_test test__events_pmu[] = { ---- I'll send a v4 with that rolled in after confirming the full build-test passes. -- Dominique Martinet | Asmadeus