Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1234040pxu; Mon, 23 Nov 2020 15:29:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJwAJ5zqFXQsEr8cmDjrLzo/xx5wmEx5cR9ZD1EZOG45IE/IjMWIdePmJkQI/1qcvBeZrMWE X-Received: by 2002:a17:907:20ac:: with SMTP id pw12mr1713380ejb.245.1606174146098; Mon, 23 Nov 2020 15:29:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606174146; cv=none; d=google.com; s=arc-20160816; b=jq2gXhOZU4VLD3XvzglokMxQMwoPlo+lBhHI28p3xKKXWtFInle5hnKjQaTR2eLCTG XouEFlPHMehgQkUgVwheXtfLsnQJjsiP/ys6lq8LrqssvWCvHzbZOWY+Tj7OVnX22Us6 RRQLINIwi9GrwhcXbx6cxZVvo8eVat6Br1OpCItboKjaTHtQ6AKRXDnflPfqyTlIZObL voccRSfjC5C1TJQW4L4hyeVVG7lXLSV31/0ilbFOytwz7b72PrHRanCAUxnQvEalfJcE r5mJpCAcd1RTeb/+h0IMvNr+grXteYA1w5W6XSgAS4eFYwP+bsrAJqfRtDtpj1TZK6e6 Y+EQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=fyzQW72q9lBnWI0bNcCnylTF3lef9C/CMWkcy4WvxUE=; b=W5TZJWvpjhE4Wxg/af2cKd90zcCLiDxmjC5viOFO57QiDOYnUYwIotmEl4g/ydmlzj XnvIQW2ABWQGX/4H774HzXO9hAQtCSCyJBf65VR9YUUmniWQlOjtLSLYssNnyfeVqFsj SAsOa/mHrpb8ww3hf1FkmDT2fmeQWDP2ivX4G45Iwsd+EvixcObT703a5uI/LqO2jJKP ktth+OvL2TsCZgNmAo76YbCLbNPyTfA7UZGglskzzn0Hdc9SW1dmIpMmN6ztha4oQDeC gn3cLjh1ooBlm+fXgHqC3Wwt6FcWcWAh9SDp4lCO1o2YLOI46t9vRrmt9ISdLMLhWseT SNBQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r4si8690189edc.537.2020.11.23.15.28.43; Mon, 23 Nov 2020 15:29:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728211AbgKWLHE (ORCPT + 99 others); Mon, 23 Nov 2020 06:07:04 -0500 Received: from lgeamrelo11.lge.com ([156.147.23.51]:40881 "EHLO lgeamrelo11.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728151AbgKWLHD (ORCPT ); Mon, 23 Nov 2020 06:07:03 -0500 Received: from unknown (HELO lgemrelse6q.lge.com) (156.147.1.121) by 156.147.23.51 with ESMTP; 23 Nov 2020 20:07:01 +0900 X-Original-SENDERIP: 156.147.1.121 X-Original-MAILFROM: byungchul.park@lge.com Received: from unknown (HELO X58A-UD3R) (10.177.222.33) by 156.147.1.121 with ESMTP; 23 Nov 2020 20:07:01 +0900 X-Original-SENDERIP: 10.177.222.33 X-Original-MAILFROM: byungchul.park@lge.com Date: Mon, 23 Nov 2020 20:05:27 +0900 From: Byungchul Park To: torvalds@linux-foundation.org, peterz@infradead.org, mingo@redhat.com, will@kernel.org Cc: linux-kernel@vger.kernel.org, tglx@linutronix.de, rostedt@goodmis.org, joel@joelfernandes.org, alexander.levin@microsoft.com, daniel.vetter@ffwll.ch, chris@chris-wilson.co.uk, duyuyang@gmail.com, johannes.berg@intel.com, tj@kernel.org, tytso@mit.edu, willy@infradead.org, david@fromorbit.com, amir73il@gmail.com, bfields@fieldses.org, gregkh@linuxfoundation.org, kernel-team@lge.com Subject: [RFC] Dept(Dependency Tracker) Implementation Message-ID: <20201123110527.GB9464@X58A-UD3R> References: <20201111050559.GA24438@X58A-UD3R> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201111050559.GA24438@X58A-UD3R> User-Agent: Mutt/1.5.21 (2010-09-15) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This patchset is too nasty to get reviewed in detail for now. This have: 1. applying Dept to spinlock/mutex/rwlock/completion 2. assigning custom keys or disable maps to avoid false positives This doesn't have yet (but will be done): 1. proc interfaces e.g. to see dependecies the tool has built, 2. applying Dept to rw semaphore and the like, 3. applying Dept to lock_page()/unlock_page(), 4. assigning custom keys to more places properly, 5. replace all manual Lockdep annotations, (and so on..) But I decided to share it to let others able to test how it works and someone who wants to see the detail able to check the code. The most important thing I'd like to show is what exactly a deadlock detection tool should do. Turn on CONFIG_DEPT to test it. Feel free to leave any questions if you have. Thanks, Byungchul