Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp402467img; Tue, 26 Feb 2019 02:04:15 -0800 (PST) X-Google-Smtp-Source: AHgI3IZauofi5jdmDr+yo7XyTDJySZxF9yikGrz/eeJIWcx5Anvwj0UmkF/tMF896Vyu05VdV1yk X-Received: by 2002:a63:1260:: with SMTP id 32mr23810582pgs.278.1551175455030; Tue, 26 Feb 2019 02:04:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551175455; cv=none; d=google.com; s=arc-20160816; b=Uep1Drkmq9jJKhjJhTrGmQot0zC19uOdgQw52u313ouQgyp5vVNfDkGOTxvl9L/Ijq uuzn1sQXsfgTZui5wEpWaYKGJEG4d+/Ogc6vZC7do7kY8ATPUHFbqPcKrwHRigaMMhW/ TgChTkdQeTd73xbWM0GRHvu7FhfBkMi2/DvBw0qEFfPAR3xCvZ4x6YtDBMe0Pd/Wohje 0hwDw4gY1eO93d2J2HCIeA7zSHsZJUsRFnu3rjHv/vjB/L7cH0PeLU8oU4YR4+B1yOVJ A1KR1bA3iuj1Ofk5RhzjqCTyv5w2wMOh2w0PwKaG/XC/sc9xNM4+aEL4WZIkWsDk6om+ rkwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=dba4vbJzjlO0KTjHJIPVa0of9AUn1k9oSQPs0NyEp6I=; b=MgdBDNnYf1ujUETeYUOv4/h2rzpwTGWDd+iV6xuxoLgz882X6+rr8hX7Ps/naaH6/Z ETd/hbh+fR9YyVJgKBetaHVYITsL2G8c2ZJ4m6Rz7H3dbAYpzk0uIF2A3/JPIK5V2nJh bDD76CeIFbycN2wY45NmUL2lk7tStfl5WT2vylf0heGBTnM26wN+xWNU6gInUx6sToUS zXPpmDC89S0tIHDXi5+vm7md+bm5XZ+HwyTRFsAjhlFRQtgIV6pLCinJLyucYR/BqlPE H4f3EosuUei0UQ4rWlTOGidr+i3Dgyra4BDu85NmTcX7v3NhSrlRs3999T5HxwOuon85 mVcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aTl16Qyq; 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 z13si2321505pgp.34.2019.02.26.02.03.59; Tue, 26 Feb 2019 02:04:15 -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=aTl16Qyq; 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 S1727688AbfBZKDi (ORCPT + 99 others); Tue, 26 Feb 2019 05:03:38 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:45859 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727580AbfBZKDh (ORCPT ); Tue, 26 Feb 2019 05:03:37 -0500 Received: by mail-pf1-f195.google.com with SMTP id v21so5984841pfm.12 for ; Tue, 26 Feb 2019 02:03:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=dba4vbJzjlO0KTjHJIPVa0of9AUn1k9oSQPs0NyEp6I=; b=aTl16Qyqcodn5Kw/YnsCHwsJReNtoquNMDsSUoEiLDKeeD1CLymBeC0rgshpdg2jYi SzvexZKmTpzSDtPGsm2NsCp9Apej2szwBJZMQZRvFixKMgUAQPcL+sCST0Es/KS0X6tt UTGlPvz1fWLyEG8pfRiBm6Ho6StyzehS3dz1byh3qVUgnfDmwSSDNDGW7akhZ6QxeFOy SshKR33A/9RHVcfRYODGKuunuh/zullCcYAtPKMZgMB5QU4kM32cNVTK3Pucw537fdq2 NuWkEHPy62STO7qfDTF8Yy5r2DUCoS1JuFbApVv+3c8juwREPPnkcsOoD2FK1wnJqRr7 ebxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=dba4vbJzjlO0KTjHJIPVa0of9AUn1k9oSQPs0NyEp6I=; b=O7yeUsznHSsrH7WIG5sTv3qTCENCasbJqOvu1T9NiCxuQHOec5+SAuDnEkBeZwyBTb 1cayz+wTgjsHE7jJxMRbSPjfGLCv/T08m2KemFeMg7Kg5XcCKsNkkACv7yDQSIgVAs/i W32WnWnx2VnFxlq+6JXOj8LzMliZth1G9i6Sgf2YAH2sz3yHPjJLZob0IshO0WCsB9pC jUNBED7UqahRrOH1iBb519uU0UkTQDBLAIpR0X+qomXeO1gViM5rVWDhkNMFeepPvP38 ed3ty+8ULfH7VIogDt7athvDjZnDCgmTE6lYHVnHggDyreclHai9lB1bbWXynPqjxkt0 LZiQ== X-Gm-Message-State: AHQUAuZ4hfcwcxb/1Ux6tW8f14MW5bufOOgfFEyjsjJzExMPApm9pbpH 77xhZnrE87CcAV6gnAoxVZM= X-Received: by 2002:a63:1241:: with SMTP id 1mr23508241pgs.211.1551175417146; Tue, 26 Feb 2019 02:03:37 -0800 (PST) Received: from localhost.localdomain ([203.100.54.194]) by smtp.gmail.com with ESMTPSA id y6sm12045520pfy.87.2019.02.26.02.03.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Feb 2019 02:03:36 -0800 (PST) From: Yuyang Du To: peterz@infradead.org, mingo@kernel.org Cc: linux-kernel@vger.kernel.org, Yuyang Du Subject: [PATCH 0/8] locking/lockdep: Add comments and make some code adjustments Date: Tue, 26 Feb 2019 18:03:19 +0800 Message-Id: <20190226100327.19340-1-duyuyang@gmail.com> X-Mailer: git-send-email 2.17.2 (Apple Git-113) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Peter, I recently tried to look at some system hang issues. While at it, I attempted to use and understand lockdep. These patches are made as a result. I believe they should have helped me, so hopefully they do for others as well. Thanks, Yuyang -- Yuyang Du (8): locking/lockdep: Change all print_*() return type to void locking/lockdep: Add description and explanation in lockdep design doc locking/lockdep: Adjust lock usage bit character checks locking/lockdep: Remove useless conditional macro locking/lockdep: Adjust indents for some lines locking/lockdep: Print right depth for chain key colission locking/lockdep: Update obsolete struct field description locking/lockdep: Consider zapped locks when printing lock chains in /proc Documentation/locking/lockdep-design.txt | 89 ++++++--- include/linux/lockdep.h | 6 +- kernel/locking/lockdep.c | 315 ++++++++++++++++--------------- kernel/locking/lockdep_internals.h | 1 + kernel/locking/lockdep_proc.c | 18 +- 5 files changed, 247 insertions(+), 182 deletions(-) -- 1.8.3.1