Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp157094rwp; Wed, 12 Jul 2023 11:07:46 -0700 (PDT) X-Google-Smtp-Source: APBJJlHNKD4QWFwIKxsEl2FMEq9UG08bGo5ZKk8DMMmGamGP62/VLdo+lWPJBy/+TI0ibJUZZJHS X-Received: by 2002:a17:90b:1013:b0:263:1720:f802 with SMTP id gm19-20020a17090b101300b002631720f802mr14773693pjb.30.1689185265784; Wed, 12 Jul 2023 11:07:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689185265; cv=none; d=google.com; s=arc-20160816; b=akPH9yznHgoQztGn37Fh9cn67SB09e+JVxrYjE9eiHd50VZ73m2zK64WAV+tsI2ubq auTRcX9VJh/b6evuWbRq0/RRkU3CqolHcN57DtndjD7xTcLnivTKi3oCmUWl/HV94/Ik 2FZ3C+scsTkj82eYGGmauf9TbPsUWvB2WvSEFpkkN0OE0VWiqejk1Oqd4KK9QHuzbSXD W13Lj0sSAkG1BYcbVi6HlM6RsijduI/A+47GuXgeKVOeO2kNCVKcWn694n+yzHEPsCJK QY0Mj8xEKvBUmb2s7DFZk6YRB5IaDxiiI9N5DHAXroQxwy9sRRJNmg9fPnJGcuVUkpA/ v2Rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=8bNzseOEzJI/IEqjpsh3eUHRT47ND0wnfP+O9/IoxVI=; fh=dwH3AZpsHuEksRRnfJiHwkkLNBOgMQ54kYVFEIV8xnc=; b=S2zN62GO/urgU3LYbSpVbIHAavI/Q3MeP8Oq+6SHUok7hYzFL4EcM3FIAU6MAqdNPd myJFHFtt6f1uYc8aZxaqfKoQt7MXBVItjXKhtnqDu3Sjg+cxLyBADv+rkkLaViQsesyL 8mrdXfO3/EQ96qZu149ZjSdBP1zl4l2629RRWBF2mbBDIV0/K4xYFKOIw2aM2D0mt5/Z hNXCaVE552fRyouQDxUY6sd9nvKc7I8tctiY7g7nP7Ba/+/N0aa/NiUEIcJq0Ghy3sFP fgHoPKRaE3656C9jxHa17H6m5acrPMb2VeFBLQcns67H6Gs1kM8CgznRZYsWJBIMBb+h o7lQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="JHuQf/W+"; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t189-20020a6381c6000000b0055ab9bf1e3csi3570499pgd.738.2023.07.12.11.07.23; Wed, 12 Jul 2023 11:07:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="JHuQf/W+"; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-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 S229530AbjGLR6H (ORCPT + 99 others); Wed, 12 Jul 2023 13:58:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232334AbjGLR5z (ORCPT ); Wed, 12 Jul 2023 13:57:55 -0400 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81D6112F for ; Wed, 12 Jul 2023 10:57:54 -0700 (PDT) Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2b70404a5a0so117143381fa.2 for ; Wed, 12 Jul 2023 10:57:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689184673; x=1691776673; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=8bNzseOEzJI/IEqjpsh3eUHRT47ND0wnfP+O9/IoxVI=; b=JHuQf/W+w3haPv+FBg/kikLHxpfTV4hGFFtcy4oj6DTiP/AN9kbW86lvwJz74CBTb8 i26uq/bTTV+8k++awvjekbL3yT5m2v2qBmBY3VJUHmbwYZYi5l7jNyUScg5e8PDG2yGb fVZ2u1b80fgeGqu6B7oV9KAwnWwFWwy/K6vEdsGxcnyTaFzNc5FbQ8MKekhNtHcNzSJC PUY9mN0YXyRIP5rtpq+YVxLboWsvT8vsErfCZPf0l/Z9ERXsLutuo/HVzmN/3C+dKKfN pqH5vaEQuQxOImkDVF2/VSkuJCp3ECdeZQl1fi2QHHk8aisVr2QyAJfMa41aRC23P7Rg VUAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689184673; x=1691776673; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8bNzseOEzJI/IEqjpsh3eUHRT47ND0wnfP+O9/IoxVI=; b=Zm9ds/u4xOsShil2ZGl1EaUEnrBMc4AmcrEpVylAG046sHFwGUMwGQeBDrPdq+E0I+ pD3gm1+zznjVD/WqW/+ymPhptVBZDqyBM00LCWeNp5L3J3CrdOiOEo6ix7GiQxIDhvWb ThsFOXP8Y7GjwDggOqvDwYoBYxyiirb+OdUFSGFIyvn5CnR3xJd7wz3CI9Vb1j7UB69W n+nCl6m+2BgVa1Y+j8CfXHKF6Md8Xpkq9LvusuJC20KFwkwIX2aPRa2vj1bgrI2ksyk/ yja++mCemozdLRw80MMSeIaO5hJmbqsexhBdK0X+B2HACv3Qzgr6w6y9Bf65CRTJ7EQD nT1w== X-Gm-Message-State: ABy/qLYBax91A7tBplUam6doJEDztuDRaIivlB0S1tSIPJ0ade0qB27x htia83idvj/vXbcT5/0rUn51Jr/v+7pyLs1E3FW+HsPi X-Received: by 2002:a05:651c:120e:b0:2b6:9bd3:840e with SMTP id i14-20020a05651c120e00b002b69bd3840emr19358448lja.21.1689184672527; Wed, 12 Jul 2023 10:57:52 -0700 (PDT) MIME-Version: 1.0 References: <859a1c176765dbb9ea394dde387b8ed072365ca8.1689180344.git.pav@iki.fi> In-Reply-To: <859a1c176765dbb9ea394dde387b8ed072365ca8.1689180344.git.pav@iki.fi> From: Luiz Augusto von Dentz Date: Wed, 12 Jul 2023 10:57:40 -0700 Message-ID: Subject: Re: [PATCH BlueZ 1/2] test-runner: set non-quiet printk before running tests To: Pauli Virtanen Cc: linux-bluetooth@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Pauli, On Wed, Jul 12, 2023 at 10:00=E2=80=AFAM Pauli Virtanen wrote: > > It is useful to see WARN_ON/bt_dev_err messages when running the tests. > Enable non-quiet printk levels after boot, so that it is on by default > and doesn't need to be handled in local test scripts. > --- > > Notes: > It could be useful to also check for BUG/WARNING in the bluez test bo= t. > > tools/test-runner.c | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > > diff --git a/tools/test-runner.c b/tools/test-runner.c > index d74bb1087..288901a61 100644 > --- a/tools/test-runner.c > +++ b/tools/test-runner.c > @@ -136,6 +136,20 @@ static const char *config_table[] =3D { > NULL > }; > > +static void enable_printk(void) > +{ > + FILE *f; > + > + /* Set non-quiet printk level */ > + f =3D fopen("/proc/sys/kernel/printk", "w"); > + if (!f) { > + perror("Failed to set printk"); > + return; > + } > + fprintf(f, "7 4 1 7"); Can you have a comment on what this 7 4 1 7 is for? > + fclose(f); > +} > + > static void prepare_sandbox(void) > { > int i; > @@ -181,6 +195,8 @@ static void prepare_sandbox(void) > "mode=3D0755") < 0) > perror("Failed to create filesystem"); > } > + > + enable_printk(); > } > > static char *const qemu_argv[] =3D { > -- > 2.41.0 > --=20 Luiz Augusto von Dentz