From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756366AbcBIKJm (ORCPT ); Tue, 9 Feb 2016 05:09:42 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:34390 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754751AbcBIKJk (ORCPT ); Tue, 9 Feb 2016 05:09:40 -0500 Date: Tue, 9 Feb 2016 11:09:36 +0100 From: Ingo Molnar To: Steven Rostedt Cc: =?utf-8?B?5bmz5p2+6ZuF5bezIC8gSElSQU1BVFXvvIxNQVNBTUk=?= , "'Martin KaFai Lau'" , "linux-kernel@vger.kernel.org" , Ingo Molnar , Alexei Starovoitov , Josef Bacik , Kernel Team Subject: Re: [PATCH RESEND] kprobe: Use percpu counter to collect nhit statistics Message-ID: <20160209100936.GA8273@gmail.com> References: <1454531308-2441898-1-git-send-email-kafai@fb.com> <50399556C9727B4D88A595C8584AAB37B4DDA257@GSjpTKYDCembx31.service.hitachi.net> <20160204081957.3c31f719@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20160204081957.3c31f719@gandalf.local.home> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Steven Rostedt wrote: > On Thu, 4 Feb 2016 10:24:12 +0000 > 平松雅巳 / HIRAMATU,MASAMI wrote: > > > From: Martin KaFai Lau [mailto:kafai@fb.com] > > > > > >When doing ebpf+kprobe on some hot TCP functions (e.g. > > >tcp_rcv_established), the kprobe_dispatcher shows up in 'perf report'. > > > > > >In kprobe_dispatcher(), there is a lot of cache bouncing > > >in 'tk->nhit++'. 'tk->nhit' and 'tk->tp.flags' also share > > >the same cacheline. > > > > > > > Ingo, could you consider to merge this? > > > > Ingo, you can also add my > > Acked-by: Steven Rostedt Yeah, nice optimization, picked it up - thanks guys! Ingo