Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp83126lqh; Mon, 6 May 2024 12:00:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVFcNcjWPwtCino5dtZNq7eOGzoovXp6g4BTLw5lTHMlNaHs9tKPYNIPx6CdnHZaGJ8gUhPZwKBqCIq2QgQVx8ZxcxTEDrjoiJhg4RXbw== X-Google-Smtp-Source: AGHT+IFSr8ufqta85BBYKh2fQ9iT/AnQlz0AorOxWGDgGrPYnOJv0rtpfPevK8yrUUIX4hZud5Rh X-Received: by 2002:a05:6358:5241:b0:18a:634a:6cfc with SMTP id c1-20020a056358524100b0018a634a6cfcmr8604277rwa.22.1715022013461; Mon, 06 May 2024 12:00:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715022013; cv=pass; d=google.com; s=arc-20160816; b=BZ5Bs3+twD71WJgJih9+Dyg/8iQsX9DaWPy+x2PvzMBsGtfnlNbhpu07idELJqh3tZ cKBfJwJ11sniYSe1x4RiZ6WACtGE7YOfvEM0IukzY8wbzTPqfsr8hpzbOvhRISdZUIck LVGllD8evF+9Lakghuf+gFizfeDHQyxx6Eaingqj7TaQU42mmRtJAq50+S+Aq2814ZhK Sng5aePxZ8eu6Z2ml4+yFmlMkxQT/qzXmLCZdM1E+J/W6rlq469DRkswJjcf+QaiRUGM zMi5+F4r1aWUtnGjup/wgQhGFgn1TXgzQwrQm/NPBtT+vvjs8QprsQ5oYEBjCs27T91o 3vcA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=ES7RY2sCEFEy4SCCyThYbBCmiEsvUpGS8N3+oCMC3xA=; fh=0ZKV22Mpi0Z+/zRlCC9GRUAKl0wLMxmYgR1nXO1NAEs=; b=dQQJU6wzOsQA6P7mcPwD3Qw42LCP2tP/sytCq/uK9DpHK36GLWOVQttyJzqS0I37kR zOvSQYpDQ3UQIep/ewfHgq8eUg+M6EXxYw7C9pLCV11N+pV/q1FsGfPwX9zuCH0uq0ZY pw50cDcBjSf+vsfcPXuFsgChmG7kmT2NeJwVKjDCetfdPjuwaLw/6mjTpv+AlLsL+G9F Wi0wdH5zo05Tf5X5PDuvWkWiDxmF0aJa99lSlKzTMjRgCQmJm/2ShmZbHS3Gd243c5vj rIE2ZFiD0bQno6AX3xvHqT9raPJQovikLYd+OEiZ+jKsf2s/zBjUzM0YRjm0iEIlX0Gm vAxw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=MCaJMdEi; 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-7232-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7232-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id z66-20020a636545000000b005fd0a2ebc62si8648460pgb.210.2024.05.06.12.00.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 12:00:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7232-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=MCaJMdEi; 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-7232-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7232-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 9C38A2812C3 for ; Mon, 6 May 2024 19:00:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9B7A8158D9B; Mon, 6 May 2024 19:00:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b="MCaJMdEi" 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 40D28158D82 for ; Mon, 6 May 2024 19:00:08 +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=1715022010; cv=none; b=KW3q3X/rO3WjdXsrDkHDtZmHsS749vHvEb2X32Tvyk7L0FYdZAbVrCy+Ysn/sQqx6BDlCKJf5fmpOE/Ber/10nMYv365zo6RZLATqOm56j98PfpQf0O+70WxBN742Fbd8ghhuNsiSSQzlyOlkTIbcftacdG1oqqvY7fP8DBJ3jM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715022010; c=relaxed/simple; bh=QyB//3IUrzfqO23z9lr9hQ4gS5XZRxSAeqHHxC5Hbd0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=BRZicg6g+uZ/zPWHhkWW9scP/x4nCxqqgDPuwGIsx2bdvHSDp8QJmYkkRQ50Wiz12dlABYv1yHDh0O0ex19AMIjoDwTQeb6UpwQh2OouwQHEZ8jOtSelqMyXlpE8oLEifoBroKUZ1RRs7R6vwiEE/CEKXN+n9kKpyjUgXT+ppIw= 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=MCaJMdEi; 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=Content-Transfer-Encoding:MIME-Version: Message-ID:Date:Subject:Cc:To:From:Content-Type:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-To:Resent-Cc: Resent-Message-ID:In-Reply-To:References; bh=ES7RY2sCEFEy4SCCyThYbBCmiEsvUpGS8N3+oCMC3xA=; t=1715022008; x=1716231608; b=MCaJMdEiLuMvsQGs7qHTU9hg5WLNj+mhZd0gincKNdRHmX+80mDCqQsdyGLeUB1cFAiQeEi2rTr UHIIpcAi/sJHAJKoaf+XrUo+rhqCQF9XyonfqYL7Q0xHA8BZLf0+QUy6zDjo7r6uGx1zoVIrga7/C 47vnjXvQ1Ydhh9rtditY3stAKsXRAHH9GkyOabfCmmBb91Uwt3fOvUYRT5uURj9JyMJ8ffkTzRIBw GdB+6MojA4lRobqt9GAWszZjkAZX4VZ4y2EAFtaBA1EK32vyczvk+xKnal1oyFdrr4qtZHtpyDjlh MWcwXTEVOh6bFS8+WMyfJRPD56VaC32NqdQA==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97) (envelope-from ) id 1s43ZF-0000000899m-021o; Mon, 06 May 2024 21:00:05 +0200 From: Johannes Berg To: linux-wireless@vger.kernel.org Cc: Johannes Berg , Miriam Rachel Korenblit Subject: [PATCH 1/2] wifi: cfg80211: sort trace events again Date: Mon, 6 May 2024 21:00:02 +0200 Message-ID: <20240506210002.0b3a86a5d8d7.I5591c03223bdb95597e181de63a2eded424de34c@changeid> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Johannes Berg They were meant to be split into ops and APIs, but some ops were added in the wrong place. Fix that. Reviewed-by: Miriam Rachel Korenblit Signed-off-by: Johannes Berg --- net/wireless/trace.h | 138 +++++++++++++++++++++---------------------- 1 file changed, 69 insertions(+), 69 deletions(-) diff --git a/net/wireless/trace.h b/net/wireless/trace.h index 9bf987519811..b76e3b21051a 100644 --- a/net/wireless/trace.h +++ b/net/wireless/trace.h @@ -2889,6 +2889,75 @@ DEFINE_EVENT(wiphy_wdev_link_evt, rdev_del_intf_link, TP_ARGS(wiphy, wdev, link_id) ); +TRACE_EVENT(rdev_del_link_station, + TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, + struct link_station_del_parameters *params), + TP_ARGS(wiphy, netdev, params), + TP_STRUCT__entry( + WIPHY_ENTRY + NETDEV_ENTRY + __array(u8, mld_mac, 6) + __field(u32, link_id) + ), + TP_fast_assign( + WIPHY_ASSIGN; + NETDEV_ASSIGN; + memset(__entry->mld_mac, 0, 6); + if (params->mld_mac) + memcpy(__entry->mld_mac, params->mld_mac, 6); + __entry->link_id = params->link_id; + ), + TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", station mac: %pM" + ", link id: %u", + WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->mld_mac, + __entry->link_id) +); + +TRACE_EVENT(rdev_set_hw_timestamp, + TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, + struct cfg80211_set_hw_timestamp *hwts), + + TP_ARGS(wiphy, netdev, hwts), + + TP_STRUCT__entry( + WIPHY_ENTRY + NETDEV_ENTRY + MAC_ENTRY(macaddr) + __field(bool, enable) + ), + + TP_fast_assign( + WIPHY_ASSIGN; + NETDEV_ASSIGN; + MAC_ASSIGN(macaddr, hwts->macaddr); + __entry->enable = hwts->enable; + ), + + TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", mac %pM, enable: %u", + WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->macaddr, + __entry->enable) +); + +TRACE_EVENT(rdev_set_ttlm, + TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, + struct cfg80211_ttlm_params *params), + TP_ARGS(wiphy, netdev, params), + TP_STRUCT__entry( + WIPHY_ENTRY + NETDEV_ENTRY + __array(u8, dlink, sizeof(u16) * 8) + __array(u8, ulink, sizeof(u16) * 8) + ), + TP_fast_assign( + WIPHY_ASSIGN; + NETDEV_ASSIGN; + memcpy(__entry->dlink, params->dlink, sizeof(params->dlink)); + memcpy(__entry->ulink, params->ulink, sizeof(params->ulink)); + ), + TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT, + WIPHY_PR_ARG, NETDEV_PR_ARG) +); + /************************************************************* * cfg80211 exported functions traces * *************************************************************/ @@ -3923,55 +3992,6 @@ DEFINE_EVENT(link_station_add_mod, rdev_mod_link_station, TP_ARGS(wiphy, netdev, params) ); -TRACE_EVENT(rdev_del_link_station, - TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, - struct link_station_del_parameters *params), - TP_ARGS(wiphy, netdev, params), - TP_STRUCT__entry( - WIPHY_ENTRY - NETDEV_ENTRY - __array(u8, mld_mac, 6) - __field(u32, link_id) - ), - TP_fast_assign( - WIPHY_ASSIGN; - NETDEV_ASSIGN; - memset(__entry->mld_mac, 0, 6); - if (params->mld_mac) - memcpy(__entry->mld_mac, params->mld_mac, 6); - __entry->link_id = params->link_id; - ), - TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", station mac: %pM" - ", link id: %u", - WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->mld_mac, - __entry->link_id) -); - -TRACE_EVENT(rdev_set_hw_timestamp, - TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, - struct cfg80211_set_hw_timestamp *hwts), - - TP_ARGS(wiphy, netdev, hwts), - - TP_STRUCT__entry( - WIPHY_ENTRY - NETDEV_ENTRY - MAC_ENTRY(macaddr) - __field(bool, enable) - ), - - TP_fast_assign( - WIPHY_ASSIGN; - NETDEV_ASSIGN; - MAC_ASSIGN(macaddr, hwts->macaddr); - __entry->enable = hwts->enable; - ), - - TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", mac %pM, enable: %u", - WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->macaddr, - __entry->enable) -); - TRACE_EVENT(cfg80211_links_removed, TP_PROTO(struct net_device *netdev, u16 link_mask), TP_ARGS(netdev, link_mask), @@ -3987,26 +4007,6 @@ TRACE_EVENT(cfg80211_links_removed, __entry->link_mask) ); -TRACE_EVENT(rdev_set_ttlm, - TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, - struct cfg80211_ttlm_params *params), - TP_ARGS(wiphy, netdev, params), - TP_STRUCT__entry( - WIPHY_ENTRY - NETDEV_ENTRY - __array(u8, dlink, sizeof(u16) * 8) - __array(u8, ulink, sizeof(u16) * 8) - ), - TP_fast_assign( - WIPHY_ASSIGN; - NETDEV_ASSIGN; - memcpy(__entry->dlink, params->dlink, sizeof(params->dlink)); - memcpy(__entry->ulink, params->ulink, sizeof(params->ulink)); - ), - TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT, - WIPHY_PR_ARG, NETDEV_PR_ARG) -); - #endif /* !__RDEV_OPS_TRACE || TRACE_HEADER_MULTI_READ */ #undef TRACE_INCLUDE_PATH -- 2.44.0