Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp366247rdb; Thu, 1 Feb 2024 10:38:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IH765j0DL5B2BpCgem4jrsodtJOLrxaiCa9K+EsYlkmKKda0/Pc+cy3jvtXidEApeEoiUmh X-Received: by 2002:a05:6a20:2002:b0:19e:2d04:d775 with SMTP id w2-20020a056a20200200b0019e2d04d775mr5069609pzw.50.1706812695235; Thu, 01 Feb 2024 10:38:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706812695; cv=pass; d=google.com; s=arc-20160816; b=N6VShOF/xxbKT3Lg7I0ZEbKSND3ZxEY54Yubpq0As/bK4iGSSE4HU1ctzPbFCsixsn sqv3IA5rrB6o0Oeh1YR8UscvaXDc1y0uEPBeEOHsLvNpjlg9rCuGNzWk9PV+ZmDR4YVP PMiGbx3f7q6097TnXF6OyUmt1csC5UUr0JV0k49bYo0b9maUotVfNyxOg2Cp/vBqOZqn Z0xf02/idoXRUrPHJjATRpuIAgjU68bU2ndAqZRJnpO2gRnmoPKOw+YZXXG4jo9GTMtc wTZ7h1bQuIvt74oe/ifYwXItpdTSdonGix1/AKKJaeWz6i1+pkiS3n9UEI0bNVh5jKjK y7sw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:to :from:subject:message-id:dkim-signature; bh=/7WUZWnJEsbHI0x7VonwF7Tb68wi1m1eNByQw8FFSGk=; fh=/kWSAa8tYuiNZu6eUQebaYNvExrOdv+00OcEeh1ok4I=; b=lvr4IoCaybzcxZe7gMW1JKxeQMT8Gd3I4CQf5QyJ61aTGZdR3gPkdRqZI2f2p5hev5 6A/DbRgKRa3osVVLLrgVkrkjBbB10eTK5AbKMP0sraCIpvaURNP/f2N2IcfTRqyO/xzi qBMVo8BwKo3YwFbxyq1nsMqoSBmarfwGdgLCDTFNM6ktVG91PgQx3ZkG+blVcwyNkUi6 4vXP1GJXMmjzbrqJVOJ8IXj39QAbWNbDb8tXqUtOTdrHpv4Q2xDSx37CMkh16ZM058up 5cr/UyHM/Ebc3tULRX828VHJ7B68nNZ3sNdJ3UVtVnHeGvgKcB5tk/cgDze5HwTwnj1L rUNg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=HueK001x; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-wireless+bounces-2974-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2974-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net X-Forwarded-Encrypted: i=1; AJvYcCUkz/FR20wqawiGWpvIwXXlJ5bTVEyRe6XVJPwzJE+RIIyopzfc5JccZ27JtVmwU2rHzc8bl1/tFM0RpuaN5dqxxwqQ4AzV2deq+gm+7g== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id w32-20020a634760000000b005d24ebb61e3si127854pgk.806.2024.02.01.10.38.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 10:38:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-2974-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=@sipsolutions.net header.s=mail header.b=HueK001x; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-wireless+bounces-2974-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2974-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net 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 8097128F7BA for ; Thu, 1 Feb 2024 18:33:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B744F3A1DA; Thu, 1 Feb 2024 18:33:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b="HueK001x" X-Original-To: linux-wireless@vger.kernel.org Received: from sipsolutions.net (s3.sipsolutions.net [168.119.38.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 04FE81102 for ; Thu, 1 Feb 2024 18:33:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=168.119.38.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706812421; cv=none; b=bpHxb19qZasJpr6+tnHR7rO/3Aw+uqiHr6erWlpfpL+pfLvQzIGs7e3R8290RXKopR0Fk0jneLQp9IO/ssRH0HrR2WHTj9rA8N99C5fvCNgKM5dixpl9bQUMjHHLo71uNVS7hfcu3XRjvX/Bvi0tsvrN8ufR1gGU6sAcbqYACkA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706812421; c=relaxed/simple; bh=XzG4LsmTT6EL4ut2QsbLlhxgu9cBcYgceSJVzkpWMXs=; h=Message-ID:Subject:From:To:Date:In-Reply-To:References: Content-Type:MIME-Version; b=c6G4rhZH1gw0Sh8YVUahZi+pyOjDEYAHfxWkgDn9wQvm8T5lbrvlq3ndsDfMaLGnDNNvmh6TfMBL0svNNvH2Q408pnYGRIupyzAFdPsErdXHFtbydT85ieBn77u4gJURblIiL5SYh6B5SQ4q4H4v72PfqKm4wiuBK6aZAUtUt5s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net; spf=pass smtp.mailfrom=sipsolutions.net; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b=HueK001x; arc=none smtp.client-ip=168.119.38.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sipsolutions.net DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=MIME-Version:Content-Transfer-Encoding: Content-Type:References:In-Reply-To:Date:To:From:Subject:Message-ID:Sender: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=/7WUZWnJEsbHI0x7VonwF7Tb68wi1m1eNByQw8FFSGk=; t=1706812417; x=1708022017; b=HueK001xaNaoly7OWoi7Iho9PNpnmrexQPBIWJS6tU0re0w Ps+l9in0N+FizTImaxVD7+Hf7V2D/1L5nMs3e5io9f5Yo5+Qwoc6JaCgORAS7fEjxxf1VWmGi/8ru MwFNYUjJ6y6frUbuo16GEAR+EuWj7hTUJymRnCGvXufRZegTKCIni8BMKbstQAW3Pxg391eL1XIAl RK1hs4RXTu6oM06r/VGj9ZYaYf5ic5HAmyNk2bSjwsf/slCEG+79CDEZdFBDH+gcV3gQFOcAV+MY/ hipqPzBq+ggO3KZfbTFObgmnW7m7pyaWbH0+BMfPT5nBwlQniLd2hdDXZg0dHAuA==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97) (envelope-from ) id 1rVbsN-00000008ZGb-0T6n; Thu, 01 Feb 2024 19:33:27 +0100 Message-ID: <34028bfa3550f36f9c03c507caf1570f12ae5674.camel@sipsolutions.net> Subject: Re: [PATCH] wifi: mac80211: trace SMPS requests from driver From: Johannes Berg To: Jeff Johnson , linux-wireless@vger.kernel.org Date: Thu, 01 Feb 2024 19:33:26 +0100 In-Reply-To: References: <20240129195435.b20d2ead2013.I8213e65c274451d523a3397519ac578c3ed2df4d@changeid> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.3 (3.50.3-1.fc39) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-malware-bazaar: not-scanned On Thu, 2024-02-01 at 10:21 -0800, Jeff Johnson wrote: >=20 > > + > > + TP_fast_assign( > > + LOCAL_ASSIGN; > > + VIF_ASSIGN; > > + __entry->link_id =3D > > + ieee80211_vif_is_mld(&sdata->vif) ? link->link_id : -1; >=20 > why go to this trouble? > why not just print the link_id that was passed into > ieee80211_request_smps()? just so non-MLD will give -1 instead of 0? > seems all of the other existing trace functions just print the link_id > that was provided Yeah, good point, we should anyway know from the context whether it's MLO or not. Didn't really think about it, tbh. johannes