Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3201722imm; Mon, 13 Aug 2018 07:41:40 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyZObmJpznU+08IDhcv/X1FS2o29aag4izp0AbupOgY8EjKf0pJ4YlR8A+y/Rp9r4zqOy+Q X-Received: by 2002:a62:c98e:: with SMTP id l14-v6mr19283842pfk.10.1534171300753; Mon, 13 Aug 2018 07:41:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534171300; cv=none; d=google.com; s=arc-20160816; b=C1TVg4ST9BPyRxj9P6R7IQhQ0EegAwT07kOfau5YTNrusaI0HBOPQPRgQDLuhqXWHY z6h0LxERXivib25J/Nxy+gmq10q0hu//aqtj4XIxTzz4aiQ7w5tDbTSJKItF/NcexZcg 1AF7nWWZ/mXTi6RbOq9xFNZ9YdMgPuo/r0VrnHl3F6SbmOwtHXlvhdaJrrWEYYfdkhZH KxU+eUXf5WJNx4jRijsxqWs+W0GRU3sMoWR3jn8VM42dliIRbZ1W4ZnRj2dmfORVzPcI XlsfolmbbXrBKrJrIjenASRx0Q6BBJPOIL89hu9f1UM0+b9XToVZr38VdjmQe1gM+PRC uKsg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=S8ydu7FuOyuDNW4p84AkL7izSNiy2omBhsZ/7ojOpwA=; b=xp4sfh0bWFA7hwK5lli9AwXtBF3cpaN9oOCgfzBBjvVIK+xQyxFJQ5GPFZnBbqG2zw Koy5eAYksZKUug4BdmZSbGB8+dQgewQTwoZJERf371EaCurm1dIdlKpbhWLr+bgfc9f9 zqZXBWCyNrfu1vANqUfb6TgpD2MhvFstuQDXTWDh1pZXb497qO4HxlVGz52fm8N9MDq5 myUhaHCvoK42H2OYrVdzKLqw7LQ0EzbSOL7croQOg0HX2ReUlych7fcC/5DUjx229L5t w0NdeKdOASW5jBb6Ng32aZJI7CetIyEzUWsy13Rn9MX/7reKH7+8KAno6BRkGsSMPZ3q x5Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Balio23K; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r192-v6si18052872pgr.17.2018.08.13.07.41.25; Mon, 13 Aug 2018 07:41:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Balio23K; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729884AbeHMRXI (ORCPT + 99 others); Mon, 13 Aug 2018 13:23:08 -0400 Received: from mail-pl0-f67.google.com ([209.85.160.67]:38792 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728778AbeHMRXI (ORCPT ); Mon, 13 Aug 2018 13:23:08 -0400 Received: by mail-pl0-f67.google.com with SMTP id u11-v6so6975069plq.5; Mon, 13 Aug 2018 07:40:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=S8ydu7FuOyuDNW4p84AkL7izSNiy2omBhsZ/7ojOpwA=; b=Balio23K82rKCHgE78woMuxF4VhSkBjeVipL8T3gYrJ9M730D2zbxD4JebeFvbP6fx sfwVUpbopu/fuk9+1jwvwAuw4oBy6fgBQXGFlLx/8sW0vmh9B+2z+QowaGkLIuh3NaK2 nSvbfj8pzLuoCWZXJIfIox2Z3W4OICen7aCdjKPHthvLDIz/uKvIWRsR2D2wo+k9OTbM ijTHN1raXEYTF0nacNwmnLdtPXjvZLK9sV2fr3X53fj8FSnziHZlR45WxQtLEQS6Ayc5 aCwgXXh8FVGiJYXTSgCkgJcqU2eczJRZf+ZmvD4cj1EDJQ/AnfRCxXHovSHzZ4anuuhw hwNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=S8ydu7FuOyuDNW4p84AkL7izSNiy2omBhsZ/7ojOpwA=; b=PV/NJ1qYn9cGZX//4bJbK0B+RiUxeXhZhYJWV7pyZ3BHppZp+s2Nl1vLv5pisPFHmj WMC/8uLuZ33RK1kMeIbiL08dAehoSbwoaTn+w53BRyMjWDAwUvoqpLEp6co4kSo+24sF a876HtWzy6HqbqEu8Ry41+nG1MfG2D7Xvxv/YiuA7s8VfWvvtD3TFzvmgP0WZv+Nlczg iH4AY2YveZjY1q3oiCSx6XWXpPfUdPGhTT4KwDTFgl/VaOSqxhMSwuypxbUVqWfHyHUd lyGwnkiLLMG5XVqBBSfWs375cZUzHCSwrGc/i7BFa6PsqWwHwIZ1mxVRjd6fhdozaOap GgLw== X-Gm-Message-State: AOUpUlFVvfLvmGzbS0Gnmo/sZFR3MdS/zA3cAIhahGcf57hHZDKBzlZG blgVwgs8i1NoqDeFY9EEW/8D6ZgP X-Received: by 2002:a17:902:1081:: with SMTP id c1-v6mr4066081pla.277.1534171235200; Mon, 13 Aug 2018 07:40:35 -0700 (PDT) Received: from dsa-mb.local ([2601:282:800:fd80:fc20:f6ce:b02d:5bac]) by smtp.googlemail.com with ESMTPSA id l70-v6sm26968835pge.64.2018.08.13.07.40.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Aug 2018 07:40:34 -0700 (PDT) Subject: Re: [PATCH] net: Change the layout of structure trace_event_raw_fib_table_lookup To: Zong Li , rostedt@goodmis.org, mingo@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: zongbox@gmail.com, greentime@andestech.com References: <1534127212-13186-1-git-send-email-zong@andestech.com> From: David Ahern Message-ID: Date: Mon, 13 Aug 2018 08:40:32 -0600 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <1534127212-13186-1-git-send-email-zong@andestech.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/12/18 8:26 PM, Zong Li wrote: > There is an unalignment access about the structure > 'trace_event_raw_fib_table_lookup'. > > In include/trace/events/fib.h, there is a memory operation which casting > the 'src' data member to a pointer, and then store a value to this > pointer point to. > > p32 = (__be32 *) __entry->src; > *p32 = flp->saddr; > > The offset of 'src' in structure trace_event_raw_fib_table_lookup is not > four bytes alignment. On some architectures, they don't permit the > unalignment access, it need to pay the price to handle this situation in > exception handler. > > Adjust the layout of structure to avoid this case. > > Signed-off-by: Zong Li > --- > include/trace/events/fib.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Fixes: 9f323973c915 ("net/ipv4: Udate fib_table_lookup tracepoint") Acked-by: David Ahern Do you also need a similar change to fib6_table_lookup in include/trace/events/fib6.h?