Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp250607imm; Tue, 24 Jul 2018 18:22:30 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc5KhPSrHrU3+R/jOMFFoYsTUtstCSn5P1zsqDkqHrJH2X+UG7fJR8ZJDas/o8sfkl7WUUg X-Received: by 2002:a62:6941:: with SMTP id e62-v6mr20115800pfc.217.1532481750393; Tue, 24 Jul 2018 18:22:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532481750; cv=none; d=google.com; s=arc-20160816; b=w8VspY7DIPljF8XCmjNigIXCTADw5odKrimFcaP4fxEqYXcFyk6+gtTfjXhiYEgqzI L+XFC0i2BgaOhfTpTUG5LFm2J5pbuGuYJ2o4DhBnNrDiewIviT1pC/1fv799tEM20ww3 rQHDr0tPNNYf1MwCY7Cm7EVaLo4S2PbZ/hwZnqhll+MQVFqWE6g7MZX3hgp5qa6iSc5e MmEqSmG45CEq2jpOU4P/tusMSxjO19lu1DmfT2kQF25hAnnNZW4Sbyzv+oMXAjjVEWEC wIVYZP2X10zeers5f3LRMFbdrtFNQxZ5g0m3+yfekugqbDB9S3/6bII8TRqtLvkHeRtL JrzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=9dkMIfzMFxDG7ymfXEy9AaeD536y4PEikiOZOFf+8W0=; b=RzSesxXyULBVt/a5qSXh3n89c1wgFDDo57w/GvURGr6rtkj1UZOJFUQZjidt+Bi4z7 3dTyl9GRCUsHBRUB5YRYIWOSSIGP6ozvUBXKYg3N2Mux+1O9S5tuy6Yaab5iO0dHMkP4 Tt4iU0K6GF8sjcJ9BPM4ZcCPW0b+kKMVMhe90zW0rw8UwHJ7MGW8OBe3F4ebRoUUot6P eeG18JruoLgr+YbBSh1m4C0efFG/jb0t13rEGiaiderKdagtKPWYDl171dtxlQ1O0GTU v+kaApLcn7GzDX+afNGLwRHX72JHEy+eM3f4RsO7d9AIRwB/A51kkvsr9GMQ7WvXvLfu sZWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Y4g5X+Ty; 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 h1-v6si11724640pld.485.2018.07.24.18.22.15; Tue, 24 Jul 2018 18:22:30 -0700 (PDT) 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=Y4g5X+Ty; 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 S2388594AbeGYC3o (ORCPT + 99 others); Tue, 24 Jul 2018 22:29:44 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:42776 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388420AbeGYC3n (ORCPT ); Tue, 24 Jul 2018 22:29:43 -0400 Received: by mail-ed1-f68.google.com with SMTP id r4-v6so5714048edp.9; Tue, 24 Jul 2018 18:20:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=9dkMIfzMFxDG7ymfXEy9AaeD536y4PEikiOZOFf+8W0=; b=Y4g5X+TyfX/KwzWF1WyJZFF9WCBwBW1xa15QaArEXE4QcN7NLzg2efM6HWHbWYm0Me hzUPQciXvGwGL3SJIdgqpHhoa903P+84vw//7nE2NZgJxJQtvsl+Oo9qIg6Z5DizTs44 JXfIo3DbAZaBVvZTNJ5IJeRZRbUdpr9b/3GO9Tc9EQ9eNFCX7Hv7rhwZxGi4hzC2Edsg VqIot9S/dgwzTCS13VY0hENzqccGyNJm/ziCzbZGPLow1/T3iZs6x84LcNJW3ub0cOau NG27ZY35ILpXkJH8EG2dXCxJspTgVjGu6fC7rfKg9Gce7tnnv2aZt0Ctq6yYGEWXCXrA hkoA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=9dkMIfzMFxDG7ymfXEy9AaeD536y4PEikiOZOFf+8W0=; b=FUymgCoAtlIKJVP0Y6U8YSiSvGPtGmQA+k3uwgZzaWEoSrGT0tz4OT6UYlOUjaasfp QgytJKoYjzzOeB/MQqDHRNXpFAX/xQQo2H18mLj9vlotdYsjGoKXXOytSkGHdoLd9M8q kEiWnK2+ARnwUvTiyzclyncMI+9cpxbBzesGFYn8xOzS4LEl9raZ7sUeuCWbZPaYvfLk Aw8iWRipF5CB/6z18ANJnx8VI6L5xYgO/RgyV27JyI9QD7ZOTFS6KpSRShRMkQRWo0nv ltbL9x/4PdwHKvVdd31ZFvPLSEOyrBWfybXi/SBl5dSTq7ujNpqeViQcwaW7L1hoW4c6 NJcg== X-Gm-Message-State: AOUpUlGOr/X9/bpual/P1qTkFYpDXRkNYsZRH5MCMlpijl27LdABdQ+b jrbLCv0p77IvUK2NyYOYKZd08fkb X-Received: by 2002:a50:8cd1:: with SMTP id r17-v6mr21046882edr.113.1532481631773; Tue, 24 Jul 2018 18:20:31 -0700 (PDT) Received: from dimapc.localnet (109-252-90-13.nat.spd-mgts.ru. [109.252.90.13]) by smtp.gmail.com with ESMTPSA id i63-v6sm5874287edi.16.2018.07.24.18.20.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Jul 2018 18:20:30 -0700 (PDT) From: Dmitry Osipenko To: Mauro Carvalho Chehab Cc: Hans Verkuil , Mauro Carvalho Chehab , linux-tegra@vger.kernel.org, linux-media@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1] media: staging: tegra-vde: Replace debug messages with trace points Date: Wed, 25 Jul 2018 04:20:29 +0300 Message-ID: <1779889.gZoAajBteF@dimapc> In-Reply-To: <20180724213733.6c8b6b4b@coco.lan> References: <20180707162049.20407-1-digetx@gmail.com> <3929419.8vW2TRoUPb@dimapc> <20180724213733.6c8b6b4b@coco.lan> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday, 25 July 2018 03:37:33 MSK Mauro Carvalho Chehab wrote: > Em Wed, 25 Jul 2018 01:38:37 +0300 > > Dmitry Osipenko escreveu: > > On Wednesday, 25 July 2018 01:06:52 MSK Mauro Carvalho Chehab wrote: > > > Em Sat, 7 Jul 2018 19:20:49 +0300 > > > > > > Dmitry Osipenko escreveu: > > > > Trace points are much more efficient than debug messages for extensive > > > > tracing and could be conveniently enabled / disabled dynamically, > > > > hence > > > > let's replace debug messages with the trace points. > > > > > > This patch require some work: > > > > > > $ make ARCH=i386 CF=-D__CHECK_ENDIAN__ CONFIG_DEBUG_SECTION_MISMATCH=y > > > C=1 > > > W=1 CHECK='compile_checks' M=drivers/staging/media > > > > > > ./include/linux/slab.h:631:13: error: undefined identifier > > > '__builtin_mul_overflow' ./include/linux/slab.h:631:13: warning: call > > > with > > > no type! > > > fixdep: error opening file: drivers/staging/media/tegra-vde/trace.h: No > > > such file or directory > > > > > CHECK drivers/staging/media/tegra-vde/tegra-vde.c > > > > /bin/sh: compile_checks: command not found > > > > Upstream kernel doesn't have "compile_checks" script and I can't find it > > anywhere else. > > This is just a call for smatch/sparse: > > #!/bin/bash > /devel/smatch/smatch -p=kernel $@ > # This is too pedantic and produce lots of false-positives > #/devel/smatch/smatch --two-passes -- -p=kernel $@ > /devel/sparse/sparse $@ > > However, the problem here is that you're doing a 64 bits division. > That causes compilation to break with 32 bits. you need to use > do_div & friends. The tegra-vde driver code is fine, it is a known issue with the kernels checker [0]. Unfortunately the patch for the checker haven't been applied yet. [0] https://www.spinics.net/lists/kernel/msg2824058.html