Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp4467686ybf; Wed, 4 Mar 2020 04:37:50 -0800 (PST) X-Google-Smtp-Source: ADFU+vvDtNZi16Wlx+LK5jkgPoJZCpiOBVB5HnHNlYw0qUYKW+wxlWSlUsI+dVy1Uq0VJKCc4Acv X-Received: by 2002:aca:d68a:: with SMTP id n132mr1627380oig.40.1583325470670; Wed, 04 Mar 2020 04:37:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583325470; cv=none; d=google.com; s=arc-20160816; b=l7KIAXmnd9CAFkOA1sjoyG0n8YF/8VCPLolVqCAxp68U/8JzwNjS1MQQu1O8xnMgya sXElO7xLAVxebVYEH/dgjd1j9wiuoyKixWm/8ayLuObUAUktFh939rMU03D03JtyecKu OEQqGdX5wpWnl8dFBAXuTtnrntuoFBKtaECqQ9/G7YBSkLgzUzyLgPm3bYXfsUwlQuj3 5jFVEX24kvEDIUCGlWfxAjK1GsWU55INjKDyuGc79C7GVFMUjcwLK+LAVhF/ZR5CCbqv VxWeNiAExGlPpNxD/ueQySNSSizE3q3Oec3tJna10yu39o8Zf1ROtE9IWua07H8AGeKL GomA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=eH8ROc/PeSFCzNB6lP8ia+C5/LGDTkdagJsz+RUB7XA=; b=deS/Cq0bOkP6HJrFMyVl081q9hps7AXVFetEt60aspgemuVGyiJjK7FD4A7/jGJ6To Y5KDGGu1UqMT99PaKdnaanA2q021IvaFdc5PUTMTCHyJj/CsT6ArdopgF9D/0cTuadDL jnL911ElgP1QRm0zH7HoJ8rJ5fJN5qege+YHOjTJSwr9aGwcJ2y5vgfJTxgUVGuT31YR qYjtGKmcwkEKPEW+RZCJir9wVoh08Y/DweVsiQhirVjAxNGXogs5bv8UDhjTpWCogx11 UcOTZyEo00IIJ/05nuovzLB3Fe3XpmhaVu3QStHRFt+5d+KF51JeB3JBPsqzo/fFkXPp KSEA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-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 f9si1085354oti.44.2020.03.04.04.37.39; Wed, 04 Mar 2020 04:37:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-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-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387774AbgCDMg1 (ORCPT + 99 others); Wed, 4 Mar 2020 07:36:27 -0500 Received: from s3.sipsolutions.net ([144.76.43.62]:51858 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726440AbgCDMg0 (ORCPT ); Wed, 4 Mar 2020 07:36:26 -0500 Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.93) (envelope-from ) id 1j9TGC-00FhBI-Bp; Wed, 04 Mar 2020 13:36:24 +0100 Message-ID: <7e3d534a42bf119c92d9e81145940fb02dbc676e.camel@sipsolutions.net> Subject: Re: [PATCH] nl80211: fix tx_control_port trace point From: Johannes Berg To: Markus Theil Cc: linux-wireless@vger.kernel.org Date: Wed, 04 Mar 2020 13:36:23 +0100 In-Reply-To: <1073945b-ec01-7303-0bfb-92456e1ca7a5@tu-ilmenau.de> References: <20200304114952.1827-1-markus.theil@tu-ilmenau.de> <5c542c4ce1b5373e8fe280913b74926f4d36e2d1.camel@sipsolutions.net> <1073945b-ec01-7303-0bfb-92456e1ca7a5@tu-ilmenau.de> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 (3.34.2-1.fc31) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Wed, 2020-03-04 at 13:32 +0100, Markus Theil wrote: > > Yes, its trace-cmd output. Without this patch, the print fmt in the > trace data file looks like this: > print fmt: "%s, netdev:%s(%d), %pM, proto: 0x%x, unencrypted: %s", > REC->wiphy_name, REC->name, REC->ifindex, (REC->dest), > (__u16)__builtin_bswap16((__u16)(( __u16)(__be16)(REC->proto))), > (REC->unencrypted) ? "true" : "false" > > With the patch, the builtin_bswap16 does not get placed there: Sure. But trace-cmd has infrastructure to handle such "function calls" in the output format, so it should be able to handle this pretty easily. So really it's mostly a presentation issue, and having the data in big endian when it's that way over the air etc. IMHO does make sense. johannes