Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp4538655imj; Tue, 12 Feb 2019 18:51:36 -0800 (PST) X-Google-Smtp-Source: AHgI3Ib53wrVw+qNDiXHZDrYPpTSirKReMsw9LlNnpuyVhbwh+G0Wdfeez8eSFguso7uV7Avqbma X-Received: by 2002:a17:902:8d94:: with SMTP id v20mr7329074plo.194.1550026296643; Tue, 12 Feb 2019 18:51:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550026296; cv=none; d=google.com; s=arc-20160816; b=q8GXPo3ZTcXED0y701eVNXb7BVxt3AREHuNLtwkuHn4SGLPpP0unZvo46ZfKN0M7Kr vAuJN9xpEfiZhZxvU5Hb84NYidhGrO0u4bqKYsxaFWHL7dLgoZwAFZ612wC+EH0U0jtL 3sJUenZZ0JG48gIK4NmdtlUezXbevmrxmKy3gNka3aYZ2LzMjWExxV7qplTcLtmfzwUe 72blu2Lqfd3DSmfjdtNZKbvQLGuroZl52tflxZA5hlX5p8hbZGc2Ep+CPQ87yduN0wPz 1IeUksnrinbxCZjyIYs3XjQ9g62trXcp01nPIwpbs0d+o/LFS8AJYOjJriv2sLd7uLOM EF1Q== 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=9vwvprjmJurUjra8us7UNgk0CKT8vgL+IaRmi2GqZ0w=; b=CXxo+4HytNh3mnJgKvqFrV+bFVqZdFs4u4DQ84JQP9fPJ5FnscMMq3WiEJEDvHoFwF E7h0e0s9ZPz6F0W7rYVTJ6ANGX6chTJVl6iB7HGR9T/6JkdaIU/pHbEo4QABnmpsN8TC Y0sWavZyHzsR6X6ANcQwsHIrP1NPvLlbNvmOE22gg1zA6ba5fxYpb+sz3aDk/gmWQyiD I1XdOlUoeSF8GuAW/AFuSbB+6G2jKjq5KkD4/CNjKM2pqx/J7qamcHZrM79MEcfU+e/A T4IaSgoQCMfEqfb3CEFzQoNBI7GZNSRdLzecUNXOhQFOy9Gv5tptrAisWrJtbcgtNv6b DSeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gh1HSCLh; 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 s123si7315019pfb.274.2019.02.12.18.51.21; Tue, 12 Feb 2019 18:51:36 -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=gh1HSCLh; 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 S2389793AbfBMCtZ (ORCPT + 99 others); Tue, 12 Feb 2019 21:49:25 -0500 Received: from mail-lf1-f50.google.com ([209.85.167.50]:33366 "EHLO mail-lf1-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388893AbfBMCtR (ORCPT ); Tue, 12 Feb 2019 21:49:17 -0500 Received: by mail-lf1-f50.google.com with SMTP id q12so624431lfm.0; Tue, 12 Feb 2019 18:49:15 -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=9vwvprjmJurUjra8us7UNgk0CKT8vgL+IaRmi2GqZ0w=; b=gh1HSCLhnPtLu6lnrg0T7RP+1b7Adathfo+yptaGjP0W5WBSi1g23mphy0af/Gx570 y9lQPJp7Hntdd/i7956hLo6EDmuaXkqS/gMleaCQUA6HGhdrRayEcYNCZlW3G9+4c+oZ fHZs7lmbt+VtwZoyIazg4tPl8f2fhgYbnnqKzhpvzyfMB+Ek+GcIPuxKCUBsN9P95FGq jFqu+xj2azDgoazTRJxKs2KRhSKdRgNL0Y8/WcISQaXjjsVF/YlVqciyKSZy9heW+nBx pKwzAtSfmYX5GYcUAojCjUnqcglM7/ZRuVIyoqQIoUeaoWoM5a0MC38eC7MM3uuUYXwx 1Mqw== 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=9vwvprjmJurUjra8us7UNgk0CKT8vgL+IaRmi2GqZ0w=; b=kde/j2DvpRT+pGB4qIPWufrNT80zG9kTA2tiIPDph6KebflKBoRPLY+HxATwcL1fhC GKQaIoJhzFoHqdObWBnijpJ6+mel/It0X5HLgFBSTrN8uj1xn4CQBinJEQ/Eqhnaxxhr 3kb9FKwRH2BymWnKNSupbOTGtpWzvtjBhYJnjhlW/kP0qwvtN1gPdhLPA2aMMQBhopQX k1ISD0N9hix/jM4Mu7gxpkWCE5lwyTiukbEFOMe8SPPoqaygWpuBz26+raUeMqkLMfpS bPgJyHexnNMs3XAw7JfgnfHRj+7p3w+fULvelPYLA5gef1Ee6uH367OOv6EGDbHqAFzM BvmQ== X-Gm-Message-State: AHQUAuaS+FxAAY170huDPsXHVrQllnILOGVveza7k4NKhx6/eXYInqHS u9kcIkeuoW3n1d/siivlcnfQ1gGZUSf8Ihg3LXI= X-Received: by 2002:ac2:4343:: with SMTP id o3mr3862616lfl.129.1550026154235; Tue, 12 Feb 2019 18:49:14 -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: Alexei Starovoitov Date: Tue, 12 Feb 2019 18:49:02 -0800 Message-ID: Subject: Re: [bpf-next 1/2] tcp: replace SOCK_DEBUG() with tcp_stats() To: Eric Dumazet Cc: Yafang Shao , 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 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. Instrumenting every tcp counter increment is overkill.