Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp4550610imj; Tue, 12 Feb 2019 19:07:14 -0800 (PST) X-Google-Smtp-Source: AHgI3IYVLEcYK8uVeQnCVuVuvuKz7M9Nlf4loZ9vTW7tjzpVM56MHaLTUyhGq0OEOYtb9tAR3eIg X-Received: by 2002:a63:5442:: with SMTP id e2mr6861555pgm.282.1550027234797; Tue, 12 Feb 2019 19:07:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550027234; cv=none; d=google.com; s=arc-20160816; b=sST1GgIY6ezFV6th7lqvyrk0BPlS5wbqmz/OnXNnuzzQZh4/asZ9GFx8XD63HeLkhy a4hhqrctzDj2Sf0GZC8h5Paa+jiLjbMD82i+xcZEItLaetV61IhbVMpvHyOODmfrZt4G BWysfbtVcEnlAxqe3x8z23fi5O/KTQURd91iOahirvRt8VU1gRRxDeeDm38ahT8S+Gic dQvmwtM/zWQLLTs+2dhl7TAtAg7zKaZxHbx+aUYUCEIHSR1iaiperI59v33y2HAjYGk2 sSSdMmB36WsjHEIUtg9I43k3ZR7VYwlOeUHftAMNZ/2oFWPaoNYcOMcAS4DqJZJDlCdo cCAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=eSntMJibvEZFlLbKlqVwmACNH56O++WuRx3xHgi+++M=; b=qFNC8voh2QnC1cLRn70Hndkki7jVbQBszpvNYCatgBiYA7NhB7SeQ1lf9SWyC3Hm5Q 1ZYsnozhjbIrhSBn4TeEU8BBE6RbQoiIzBExk97wnDB/jja1wEwr6HMp8VUPPUDGSTAA 2s/h4FB7gnr2AWEC6KicX8Qyvfr+LVP/xwciJ6Fobyh9ddko8JuXumlg2U2Yf3drh8KK UvfQYjD4Y09kK9mV44JM+iXdJt/UX2vyySFJzcNhF/fTqBfBbW+naL6cvMyNYm9Bt/xU mEzmvO4cM/DbjNBgI+6WAqeT70X9FLiEpCILjBdSpLmDf+8uAVLWlHWvK6W0prC7qZS2 NYoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PiRWnLVV; 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 73si16041334pfm.50.2019.02.12.19.06.59; Tue, 12 Feb 2019 19:07:14 -0800 (PST) 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=PiRWnLVV; 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 S2390466AbfBMDE7 (ORCPT + 99 others); Tue, 12 Feb 2019 22:04:59 -0500 Received: from mail-it1-f194.google.com ([209.85.166.194]:37327 "EHLO mail-it1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387550AbfBMDE5 (ORCPT ); Tue, 12 Feb 2019 22:04:57 -0500 Received: by mail-it1-f194.google.com with SMTP id l131so2167799ita.2; Tue, 12 Feb 2019 19:04:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=eSntMJibvEZFlLbKlqVwmACNH56O++WuRx3xHgi+++M=; b=PiRWnLVVGzmqW28JlA44Y8K7Z6HGUHIfWQqJwSCFp8E6KyHfuOZ9Q3g97jwPmzn12Q aBQO+ylp0WbjVWBgH9MmgmCqijoRG5jMvbhm+cWnHujiy42+L9GHgfsvOI9XfUdwF2Km P9BO6PNs0hOn9urfW2PJcbVGDOz/5vADf+7hUOjyEPto1+u/MFFDq9EQqf+hyi49DSj5 YBk9xz4Kw/sKCUKnl0b7z82hJ2h4bz4CM6S8o4GZuonjixb61EAuvsVWaDK+WPj2G1QT eQHHdZdgMFy6ab5NWLvrh+8nUK3H4E2d8mtlJgo6Y2RuuGHrEnxudQbzIbgs/OVJRYmZ Hd9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=eSntMJibvEZFlLbKlqVwmACNH56O++WuRx3xHgi+++M=; b=TAzDMifqQpi95kFEUdiVorX354zgaLy7tEntzyN8CVp8z8w+Qd5XjHsfFqzAb3NIeh KHtEO+IZktNlqFEMnD1cEfQ0WsJMVaCe7xokkTSOr9RJDUOYYFu+SFzc3MvtQQAiO2Nc ep1iNELGaaf8BNbd981LEUqwCHghFxwAi37dFhHwDxcyLQpG23opVZ180GvzxDU4aVPt FFoESq0EqrrGwn0H0XmeJHBjp3aqzJJxcfq2YzJQZs2Xoitp9u3MCCe7TxpQSK/cn5Wf CHaewZvWHEZxj2aUX5gx+nLYhtk/xRuH6mzMpNd15EhKIrpLmv05ZbONFFM6X3AA6/qV DLag== X-Gm-Message-State: AHQUAuYElx1wqQJ8t7KXQfhb/H7BFx/H81LszLQFUQwzx1N/QOLRSnsg Zh9fVSRlR9bFd7FLQl+WYbolIM4Gi7bBlsGwT7k= X-Received: by 2002:a24:e44:: with SMTP id 65mr983901ite.154.1550027097064; Tue, 12 Feb 2019 19:04:57 -0800 (PST) MIME-Version: 1.0 References: <1549971097-12627-1-git-send-email-laoar.shao@gmail.com> <1549971097-12627-2-git-send-email-laoar.shao@gmail.com> <38d07cb3-b767-bfc4-9ae5-48367971d839@gmail.com> In-Reply-To: From: Yafang Shao Date: Wed, 13 Feb 2019 11:04:21 +0800 Message-ID: Subject: Re: [bpf-next 1/2] tcp: replace SOCK_DEBUG() with tcp_stats() To: Alexei Starovoitov Cc: Eric Dumazet , Eric Dumazet , Daniel Borkmann , Alexei Starovoitov , Yonghong Song , Lawrence Brakmo , David Miller , netdev , LKML , shaoyafang@didiglobal.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 13, 2019 at 10:49 AM Alexei Starovoitov wrote: > > On Tue, Feb 12, 2019 at 6:15 PM Eric Dumazet wrote: > > > > Do not add more debugging stuff unless you can demonstrate > > they actually allowed you to find a real bug and that you sent a > > public fix for it. > > > > Just adding "cool stuff" in TCP stack does not please me, it is only > > more complexity for unproven gain. > > I agree. > I don't see why this debugging of 'abnormal TCP' cannot be done > with kprobes and tracepoints. kprobe is not suitable, because we have to use the line number, that's a trouble cross all kernel versions. Regarding tracepoints, I don't think it is a good idea to introduce more and more tcp tracepoints and make them crowed as well. > Instrumenting every tcp counter increment is overkill.