From patchwork Thu Nov 7 21:02:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Paul X-Patchwork-Id: 11233771 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6C94214E5 for ; Thu, 7 Nov 2019 21:03:21 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5401C21D79 for ; Thu, 7 Nov 2019 21:03:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5401C21D79 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=poorly.run Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3A4C06F7C6; Thu, 7 Nov 2019 21:03:20 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-yw1-xc44.google.com (mail-yw1-xc44.google.com [IPv6:2607:f8b0:4864:20::c44]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2F0256F7BB for ; Thu, 7 Nov 2019 21:03:19 +0000 (UTC) Received: by mail-yw1-xc44.google.com with SMTP id q140so1141639ywg.0 for ; Thu, 07 Nov 2019 13:03:19 -0800 (PST) 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:mime-version :content-transfer-encoding; bh=mNJ/WjFYqEZstYP6CYthaxZhr+6XTQ2uyC/5tjyC2n4=; b=tvZi9RwXj8fFs5LMZoP+dctOKRY9QNr80XGN7TU7MLbQiPHGwNgcujvXvrJ9mC+ROd YASs/pi9RMBWX8gx6cZmGhbCUYQrUvZzkkq07+g1CB68FpYREBN0xLdLK8GpHDhlJA8K x4OY/fVn6ShKvKlWbasyLHA3uscZAHmmvPc1iKuJE+UM70+TFBbLhQVNDKP9Haaf6SJ+ sK/hfgbQhKj/dimMWSiEAYjOLa3a0UR0Nutl/PTKm07xDHpYb4vx7JJAx1sRTwgL6z26 vGrRPWNbvyQLtorQnKI6BHffteAw2YGMeiF5WFc2wxquXn661wuWwcBE6as+sb0Jpbk+ eS0Q== X-Gm-Message-State: APjAAAU0ybyL96Dq0+nZ4q1iu0PwhRbjx0IPkItV/PcKvTkRaT+YyDB3 jleLpSWquMQwYDGTwG+egWuvHfBpSIc= X-Google-Smtp-Source: APXvYqwShZY+4+Lo97dZTbufPLZBtjuInUMnhygFPkagEQAwPvEPCeKWRONy7WjPbXeXAjSKaYQA4Q== X-Received: by 2002:a0d:df92:: with SMTP id i140mr4271725ywe.512.1573160598024; Thu, 07 Nov 2019 13:03:18 -0800 (PST) Received: from rosewood.cam.corp.google.com ([2620:0:1013:11:89c6:2139:5435:371d]) by smtp.gmail.com with ESMTPSA id r14sm1064196ywl.97.2019.11.07.13.03.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Nov 2019 13:03:17 -0800 (PST) From: Sean Paul To: dri-devel@lists.freedesktop.org Subject: [PATCH 0/6] drm: trace: Introduce drm_trace() and instrument drm_atomic.c Date: Thu, 7 Nov 2019 16:02:59 -0500 Message-Id: <20191107210316.143216-1-sean@poorly.run> X-Mailer: git-send-email 2.24.0.rc1.363.gb1bccd3e3d-goog MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=poorly.run; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=mNJ/WjFYqEZstYP6CYthaxZhr+6XTQ2uyC/5tjyC2n4=; b=KBTNSqaIG3JrORXVGHRdUEorm0e5Bm5MHnQbDP3RHi5epEtkG07zB+IsUy7iMhAjJK V8W6Sp6XbTtFJdHgb2wElLaUxSG29avPcyYBd5jPE0WaRiHhk7utqdIsoefY9T6Q6+XR xWwRX4sOT7BMuh1r1XdYpdoMewwKlk57OJGAbwVbEOxc2cRpNFTCjvQvaAM65iyUZ+u3 D43xH2Y1SMMRe2gwTad0rXlHZ+PzZVdTU7qerBYDIETi8dVAxXIpamuj11lVRpqjsUka yQPw2FmRhX8c8ZiwYhCgv+rQBXyeapY9ELo+TQvjSSSQ2MFCloVcSZqE81kXtPt1GNpo 3kbA== X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: daniel.vetter@ffwll.ch, Sean Paul , tzimmermann@suse.de Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Sean Paul Hey all, I'm back with another trace events patchset. My first attempt [1] went better than expected, with enthusiasm for the idea and distain for the implementation. As promised, I went through and added proper trace events. Before I get _too_ far, I wanted to post this set to get feedback on the direction I'm going. I've gone back and forth on whether to introduce a bunch of trace systems vs using the trace class enum. I've settled on the trace class enum since it seems more extensible and easier to use in production that just having the blunt "enable this system", or the tedious "enable each event I'm interested in individually" methods. So, consider this one an RFC unless we're all in agreement, in which case we should apply it :) Sean [1]- https://patchwork.freedesktop.org/patch/335350/ Sean Paul (6): drm: trace: Make the vblank queued/delivered events classed drm: trace: Introduce drm_trace() and trace event classes drm: trace: Add trace events for atomic state lifetime drm: trace: Add crtc state trace events drm: trace: Add connector state tracing drm: trace: Add plane state tracing Documentation/gpu/drm-internals.rst | 9 + drivers/gpu/drm/drm_atomic.c | 61 ++- drivers/gpu/drm/drm_trace.h | 563 ++++++++++++++++++++++++++-- drivers/gpu/drm/drm_vblank.c | 8 +- 4 files changed, 609 insertions(+), 32 deletions(-)