| Message ID | 20241011162341.606443-5-dario.binacchi@amarulasolutions.com |
|---|---|
| State | New |
| Headers |
Return-Path:
<linux-amarula+bncBCQ4XFG47UFRBFVCUW4AMGQELBVQQ4Q@amarulasolutions.com>
X-Original-To: linux-amarula@patchwork.amarulasolutions.com
Delivered-To: linux-amarula@patchwork.amarulasolutions.com
Received: from mail-lf1-f71.google.com (mail-lf1-f71.google.com
[209.85.167.71])
by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 2153641386
for <linux-amarula@patchwork.amarulasolutions.com>;
Fri, 11 Oct 2024 18:23:51 +0200 (CEST)
Received: by mail-lf1-f71.google.com with SMTP id
2adb3069b0e04-539947ac1e8sf2073832e87.2
for <linux-amarula@patchwork.amarulasolutions.com>;
Fri, 11 Oct 2024 09:23:51 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1728663830; cv=pass;
d=google.com; s=arc-20240605;
b=ECRZ0/IysoYWv4mwo9wZ51VuKk7IynPYmjwlhnY+grnccYExEn0ztHIXZk6REJ4DhO
PADmeYcmooLIblonN/1WGr12UD7XOFhSAERsJbeocHC41Vhoh8ywexeGEGffQqZqATeP
bQp9tDRT+DcN0jgj+Cn38ZKBsg6yp5VfhttPuFBrE9m0r1xjbUZtiReLGVFZACPfEBD4
xXOwd8G9atKNtI5YgqykJWKny+cCel2CFft9rn47NDJ7VtnzX+lOPyh+lJW8bz5FTgLU
P9xsFOHynCtxWm/4oZBWScF2ZEr/0sqiHOCUsFPht9RYS/3A0j9hHxNviuR3arZi3sjA
hNpQ==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20240605;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:dkim-signature;
bh=+OMevet+1q1xFGX7MZCP20wh16ju+OrdkWJwYaKTCek=;
fh=NEd98cAdhU4U5w7Q97ogr1Y1boKCc54o7NQL9d13Qes=;
b=cA1nKuhdx6vjUMOwGxQNtKhxmDD1p6jUYRQ+rhwG9JLxFfnER9DYTd72b8DXGrPmPc
2l9RWfC0foFrgAZFEuIAIR6lqm9jdOIEP6XKNHoacX+0rCRCoxX4p93VFhRcXuvCoEIP
72KXKCUB+3Gdvgr0CfDVCPVSo6dwbuEnIkXH9KRjCqZc7nNNfk3d2bIZIVVEnJA+eHOH
Fh1uceiq9LbuOu/rg4bd/fhELrx3ibZ37eMLXAXlxQPQAU3Xtkqxo1W3PnK1r6NZDcZx
LRrOrIb0W5QxqZonNhQwOeDgPy8eAO2AUllFVCAOtyUyMMaSoyucRMQMqbBtsLu6/VkH
ctUw==;
darn=patchwork.amarulasolutions.com
ARC-Authentication-Results: i=2; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=UZlmTnb3;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=pass header.i=@amarulasolutions.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=amarulasolutions.com; s=google; t=1728663830; x=1729268630;
darn=patchwork.amarulasolutions.com;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:x-original-authentication-results
:x-original-sender:mime-version:references:in-reply-to:message-id
:date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
bh=+OMevet+1q1xFGX7MZCP20wh16ju+OrdkWJwYaKTCek=;
b=ZxLYoTPOlFjqWjF6ZjGgX1PBZbgzxaDUfLz43YEsHLb5agCO8+BBLwGO1D9dDCwYiA
V/ICnxnDQNAp+FQHbOnU2KbDbP//G5ILdz1uSK71llgXj+ihg6kmV+SKNeVrufH5qLfu
XhiNQotFSGnkz5al/Y16k5A9ol91IyQQbSmxc=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1728663830; x=1729268630;
h=list-unsubscribe:list-archive:list-help:list-post
:x-spam-checked-in-group:list-id:mailing-list:precedence
:x-original-authentication-results:x-original-sender:mime-version
:references:in-reply-to:message-id:date:subject:cc:to:from
:x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id
:reply-to;
bh=+OMevet+1q1xFGX7MZCP20wh16ju+OrdkWJwYaKTCek=;
b=O01qzkdUG25SEAUqj9Cut+OvzNGPwfV9mPMyaYGZUkRjRaDOFwR8Qe2kbe16EJ3wQt
C3Vdhwtnd7E0NA0IEbSF4P3w6dusGKD12BYBs85GfHr13g19GKwxp/CY52U21znJMIHg
LDvr73T92iGHqjUbLqg6VgdCvPMbfKhZXTf5/HAqqCenW2boqs4NXx7A58Yje9U7g85B
AswgNZm7BhidNlK4IwtPh3E1ZPq4iGY+FMMf/n1btV1BK06fVNxBfiE6HNT74n6MCFaW
37ogg7jpeBbqrAuiP8JyguQ8NHuQygxY4h7V2frRtTltQumeXCDKsON14EghmdHut363
Gl9Q==
X-Forwarded-Encrypted: i=2;
AJvYcCXAfKofPDVGlDcoQD/d2theE14DO1v37WWPXtpv2hXlwAu4OKlAW1+uhQwpxDYeTJKqPmE7xKHTF2WDZePO@patchwork.amarulasolutions.com
X-Gm-Message-State: AOJu0YyJjgbAK9kGKNBF3G6MPiLS4K6vRn2Uq0zQcTcjq4nyLE4GbWe3
BVOl7Naiq6wwGlbWzP1WAh337//XRUfrpUrQFILLeBP99eADJ1ZqEZl+dDCKuxPvdg==
X-Google-Smtp-Source:
AGHT+IGgwldytvMevJot+P+D+stGyc8rV1Qv3hZGCadoWQSeoSInu8UaDRj2yDEgzqpOhIsw4lZ/qA==
X-Received: by 2002:a05:6512:3f22:b0:539:9155:e8dc with SMTP id
2adb3069b0e04-539da3b44cemr1709925e87.9.1728663830176;
Fri, 11 Oct 2024 09:23:50 -0700 (PDT)
X-BeenThere: linux-amarula@amarulasolutions.com
Received: by 2002:a05:6402:26d0:b0:5c9:1100:f7ef with SMTP id
4fb4d7f45d1cf-5c9338a4c32ls165942a12.0.-pod-prod-03-eu; Fri, 11 Oct 2024
09:23:48 -0700 (PDT)
X-Received: by 2002:a17:907:9495:b0:a99:d34b:111b with SMTP id
a640c23a62f3a-a99d34b1220mr91644366b.31.1728663828491;
Fri, 11 Oct 2024 09:23:48 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1728663828; cv=none;
d=google.com; s=arc-20240605;
b=bLeIP5ZHuPj+zMo+cNGYCn4Ovlisu6BNDCfPz9sOzpbIgL7mdJHwseqA7awbI3GT+8
E5oojgEnMMJWTxlKbzjPXeQGMLne41peZRjOk630DY51mQWv7xr5nOr+Pv1YtrT3bCvs
wVL56mhMJoHnbsctPwBATF9DLnWDYXMvM4YzXfkmfBZ7fqlO3X6g11TCUGgnhS0DEX0y
HxqQiq80Zp51s8CaWTaj+plzsEQ3m9Bils/qKsNpntIeefGTixDrs8+JnVxsWsYdhnV8
F1O0xEL1sIwd5KhB57j8DKo5Nbui71Y/LxhdaIeoELaNkteNky2pj2X8+ia58bAlawG8
24KQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20240605;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:dkim-signature;
bh=J38YuAoviH5ds5J/QYBub52avByu8DC25bcrGE+5xEU=;
fh=bW3oFOv0XHBefUz3obU0AkR4GIxgTUcq9BdItYoBfi8=;
b=SBYN1fXVGES7Toy0DYxN5W+E9lYaudBOFAPia26JiQZyiKobCE0PV9q4ASFlyseYCU
lXLFAbKZURQUMCxUKTxmIA8J8tdlzv/3//yRpcdXvjeDbKB30Xm4kzvo99Pz2L7gr1mU
ijIYeOJNYowiI46x/uz85AnlUA6MYKbYb5xK+4jWv324iKyNYgP1s4BW+nP4BbnGN/5P
9/mwxnmiqbcCPB02fj7ZwwC9i5wRiRqPdXI+i49vIRqmvVVduighJN+JpXJOJ20eP4RG
47SFd4TTdh6fmr3YLohg4nzVIQ+rb+cYAnoRY8ThtygfncmAYRFc5UKL9j24TTq1uxeT
zAPA==;
dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=UZlmTnb3;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=pass header.i=@amarulasolutions.com
Received: from mail-sor-f41.google.com (mail-sor-f41.google.com.
[209.85.220.41])
by mx.google.com with SMTPS id
a640c23a62f3a-a99a80c0705sor148954066b.15.2024.10.11.09.23.48
for <linux-amarula@amarulasolutions.com>
(Google Transport Security);
Fri, 11 Oct 2024 09:23:48 -0700 (PDT)
Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
X-Received: by 2002:a17:907:f15e:b0:a99:48a8:5a1c with SMTP id
a640c23a62f3a-a99b9604446mr286759066b.40.1728663827864;
Fri, 11 Oct 2024 09:23:47 -0700 (PDT)
Received: from dario-ThinkPad-T14s-Gen-2i.amarulasolutions.com ([2.196.40.11])
by smtp.gmail.com with ESMTPSA id
a640c23a62f3a-a99a80c0222sm229891266b.140.2024.10.11.09.23.47
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Fri, 11 Oct 2024 09:23:47 -0700 (PDT)
From: Dario Binacchi <dario.binacchi@amarulasolutions.com>
To: linux-amarula@amarulasolutions.com
Cc: michael@amarulasolutions.com
Subject: [PATCH 5/6] can: netlink: extend stats to the error types (ack, CRC,
form, ...)
Date: Fri, 11 Oct 2024 18:23:40 +0200
Message-ID: <20241011162341.606443-5-dario.binacchi@amarulasolutions.com>
X-Mailer: git-send-email 2.43.0
In-Reply-To: <20241011162341.606443-1-dario.binacchi@amarulasolutions.com>
References: <20241011162341.606443-1-dario.binacchi@amarulasolutions.com>
MIME-Version: 1.0
X-Original-Sender: dario.binacchi@amarulasolutions.com
X-Original-Authentication-Results: mx.google.com; dkim=pass
header.i=@amarulasolutions.com header.s=google header.b=UZlmTnb3;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=pass header.i=@amarulasolutions.com
Content-Type: text/plain; charset="UTF-8"
Precedence: list
Mailing-list: list linux-amarula@amarulasolutions.com;
contact linux-amarula+owners@amarulasolutions.com
List-ID: <linux-amarula.amarulasolutions.com>
X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com
X-Google-Group-Id: 476853432473
List-Post:
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>,
<mailto:linux-amarula@amarulasolutions.com>
List-Help:
<https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>,
<mailto:linux-amarula+help@amarulasolutions.com>
List-Archive:
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/>
List-Unsubscribe:
<mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>,
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe>
|
| Series |
[1/6] can: dev: add generic function can_update_bus_error_stats()
|
|
Commit Message
Dario Binacchi
Oct. 11, 2024, 4:23 p.m. UTC
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Change-Id: Ia81c2ed814f8d06cde63352519e56981d3e43bba
---
include/uapi/linux/can/netlink.h | 5 +++++
1 file changed, 5 insertions(+)
Comments
HI Dario On Fri, Oct 11, 2024 at 6:23 PM Dario Binacchi <dario.binacchi@amarulasolutions.com> wrote: > > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > Change-Id: Ia81c2ed814f8d06cde63352519e56981d3e43bba > --- > include/uapi/linux/can/netlink.h | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/include/uapi/linux/can/netlink.h b/include/uapi/linux/can/netlink.h > index 9f56fad4785b..a694fd478efe 100644 > --- a/include/uapi/linux/can/netlink.h > +++ b/include/uapi/linux/can/netlink.h > @@ -111,6 +111,11 @@ struct can_device_stats { > __u32 bus_off; /* Changes to bus off state */ > __u32 arbitration_lost; /* Arbitration lost errors */ > __u32 restarts; /* CAN controller re-starts */ > + __u32 bit_error; /* Bit error */ > + __u32 stuff_error; /* Bit stuffing error */ > + __u32 form_error; /* form error */ > + __u32 ack_error; /* ack error */ > + __u32 crc_error; /* CRC error */ > }; > Please check if you broke uapi compatibility ./scripts/check-uapi.sh -b HEAD -p HEAD^ Installing user-facing UAPI headers from HEAD... OK Installing user-facing UAPI headers from HEAD^... OK Checking changes to UAPI headers between HEAD^ and HEAD... ==== ABI differences detected in include/linux/can/netlink.h from HEAD^ -> HEAD ==== [C] 'struct can_device_stats' changed: type size changed from 192 to 224 (in bits) 1 data member insertion: '__u32 bits', at offset 192 (in bits) at netlink.h:117:1 ===================================================================================== error - 1/930 UAPI headers compatible with x86 appear _not_ to be backwards compatible For instance I have tried to add one field in that struct. There are no padding or exstension of it so I think that we need to see how this can be extendend https://lpc.events/event/17/contributions/1642/attachments/1161/2401/Improving_UAPI_Review.pdf Michael > /* > -- > 2.43.0 >
diff --git a/include/uapi/linux/can/netlink.h b/include/uapi/linux/can/netlink.h index 9f56fad4785b..a694fd478efe 100644 --- a/include/uapi/linux/can/netlink.h +++ b/include/uapi/linux/can/netlink.h @@ -111,6 +111,11 @@ struct can_device_stats { __u32 bus_off; /* Changes to bus off state */ __u32 arbitration_lost; /* Arbitration lost errors */ __u32 restarts; /* CAN controller re-starts */ + __u32 bit_error; /* Bit error */ + __u32 stuff_error; /* Bit stuffing error */ + __u32 form_error; /* form error */ + __u32 ack_error; /* ack error */ + __u32 crc_error; /* CRC error */ }; /*