[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [PATCH] Disable CONS debug logging


  • To: "paul@xxxxxxx" <paul@xxxxxxx>, "win-pv-devel@xxxxxxxxxxxxxxxxxxxx" <win-pv-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Martin Harvey <martin.harvey@xxxxxxxxxx>
  • Date: Wed, 14 Jul 2021 12:31:33 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zWG5KKfOm1zPUNgtJhu2Q9Chtewc4Ou2AZM3OpDkaA4=; b=C6U4eja4FZX/0UW32+gOEpWz4+QN7YHxukqycVxEqromBWiH/Y2xBkmfGykqPeKzJDMkbGcyse5Vtgh7X/RsgYFHFIfSpaDIPuh4Ia4fyS2Y3ju1L/Jf6j7Ff3ODu38QhgD70TMIH3K8GG3pM2bspFZgchcTpDveLdjC67rYFMnYHqeLdz/k4sb11ElLVuxLQuIZs/fndksX8DGsxhYaxTvmqqfKMmcEDGpcftyVdGfSY//KsvA8yB+y2dozFYut6AKJ427teutuGNj9JvhL8X7NmFAuezUgfNZnoKD4CW40VcoB3mD6aX6+S3scvSeJ4fNGm3Yq0KnDdzOl9f1sRQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Her/1tqzvW+9GN5R/LOAcoMZ5JlN2ztF4TL1caQm0F6wUB4nDjb+FjQJd+sMb7L80UFKLgT14KDdoAAXIo3SRSYpxtBs3vbhuQJkWojrb7Qnh/7No+3dXZywRAIkbd+VwUpGKJ7IPiwZ5dFW+lh5VtSc6T4oGCJMQz/wY0vKlRdr951K1gOrT1VjInE2YYoS4/ZybRy3wZ9FHDQitkNu7AH13y46cWHZFvAB110kCJH2zJF6Y2+X0OIk4IJEu0HojloJlfbYNKaq1g4rRBD29q+thFcn63gyfBnSpq0vVFRjRNDPo9lGKc8WQxngkq13Xa76OEqC9LrDLMladWOfPg==
  • Authentication-results: esa6.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
  • Delivery-date: Wed, 14 Jul 2021 12:31:48 +0000
  • Ironport-hdrordr: A9a23:5K/ka6PQ5MPyTcBcT1L155DYdb4zR+YMi2TDiHofdfUFSKClfp 6V8cjzjSWE8gr5K0tQ5OxoX5PwDU80lKQFrLX5WI3NYOCIghrPEGgP1/qA/9SkIVyEygc/79 YuT0EdMqyIMbESt6+Ti2PYc+rIguP3iJxA7d2ulkuFJjsaDp2Imj0JbTpzZXcGIDWua6BJdq a0145inX6NaH4XZsO0Cj0uRO7YveDGk5rgfFovGwMnwBPmt0Ln1JfKVzyjmjsOWTJGxrkvtU LflRbi26mlu/anjjfBym7o6YhMkteJ8KoDOCXMsLlUFtzfsHfrWG1TYczGgNnzmpDq1L8eqq iOn/7nBbU115qeRBDynfKn4Xid7N9n0Q6c9bbfuwq6nSWxfkNFN+NRwY1eaRfX8EwmoZV117 9KxXuQs95NAQrHhzmV3amAa/hGrDvCnZMZq59ks5Wfa/ptVJZB6YgEuE9FGpYJGyz3rIghDe l1FcnZoPJba0mTYXzVtnRmhIXEZAV5Ij6WBkwZ/sCF2Tlfm350i0Me2cwEh38FsJYwUYNN6e jIOrlh0LtOUsgVZ6RgA/ppe7r+NoUMe2O5DIu2GyWsKEgqAQO8l3fH2sRB2AjxQu148HIbou WzbG9l
  • Ironport-sdr: 4Vwq8cDOD96O5tcJKPH9ofWyGO1wuH/qFSCoC3nxXMuYhPnuzekufqfqgSew/cPsrgr0MyNpu4 LV7odXiuiq8BqXiuy662kXkeu08beEH4+Pk9Lg6TeYVlxiLh9D5SWnvi2lIyYcXsOB0E/gg9cP PEfLFBl6heAq0DNSfc5+xHB+tf/LPXPlEhSxFjhbeqKjsDBXsJnu5s1QSGMg5kjkYmPg5zfQL3 UA7d5w6kph4fnNM6/mFwwf4JVviOEsqHbLdMJkBKJDgeyA3JJ6Z3NwRtlDFnv9HmNq/oFyfIDs mlE=
  • List-id: Developer list for the Windows PV Drivers subproject <win-pv-devel.lists.xenproject.org>
  • Thread-index: AQHXcxGeIfXNO0rCZEWN6VpzK7eW7Ks/vHyAgADiqHCAAATBAIABzjog
  • Thread-topic: [PATCH] Disable CONS debug logging

Very well, patch will be re-worked and resubmitted.

MH.

-----Original Message-----
From: Paul Durrant <xadimgnik@xxxxxxxxx> 
Sent: 13 July 2021 09:57
To: Martin Harvey <martin.harvey@xxxxxxxxxx>; win-pv-devel@xxxxxxxxxxxxxxxxxxxx
Subject: Re: [PATCH] Disable CONS debug logging

[CAUTION - EXTERNAL EMAIL] DO NOT reply, click links, or open attachments 
unless you have verified the sender and know the content is safe.

On 13/07/2021 09:55, Martin Harvey wrote:
> 
> I believe this was originally to prevent some spam filling up the log. Some 
> antivirus product / filter driver was sending some PnP query IRP down the 
> stack, which filled up the logs. Owen should be able to provide more info.
> 
> Agree with code in comments. Would something like this be better?
> 
> //Was INFO, WARNING, ERROR, CRITICAL until reduced
> 

I don't think we actually need any comment in the code, as long as we have an 
explanation in the commit comment (since git blame can be used to discover that 
fairly easily).

   Paul

> MH.
> 
> -----Original Message-----
> From: win-pv-devel <win-pv-devel-bounces@xxxxxxxxxxxxxxxxxxxx> On 
> Behalf Of Paul Durrant
> Sent: 12 July 2021 20:09
> To: win-pv-devel@xxxxxxxxxxxxxxxxxxxx
> Subject: Re: [PATCH] Disable CONS debug logging
> 
> a) Why?
> 
>> Signed-off-by: Owen Smith <owen.smith@xxxxxxxxxx>
>> ---
>>    src/xenbus/driver.c | 8 ++++----
>>    1 file changed, 4 insertions(+), 4 deletions(-)
>>
>> diff --git a/src/xenbus/driver.c b/src/xenbus/driver.c index
>> 1b621fa..f353a61 100644
>> --- a/src/xenbus/driver.c
>> +++ b/src/xenbus/driver.c
>> @@ -58,10 +58,10 @@ typedef struct _XENBUS_DRIVER {
>>    static XENBUS_DRIVER    Driver;
>>    
>>    #define XENBUS_DRIVER_TAG   'VIRD'
>> -#define DEFAULT_CONSOLE_LOG_LEVEL   (LOG_LEVEL_INFO |       \
>> -                                     LOG_LEVEL_WARNING |    \
>> -                                     LOG_LEVEL_ERROR |      \
>> -                                     LOG_LEVEL_CRITICAL)
>> +#define DEFAULT_CONSOLE_LOG_LEVEL   0 // (LOG_LEVEL_INFO |       \
>> +                                      //  LOG_LEVEL_WARNING |    \
>> +                                      //  LOG_LEVEL_ERROR |      \
>> +                                      //  LOG_LEVEL_CRITICAL)
> 
> b) Leaving code in comments like this is not something we want
> 
> If there is a reasonable justification for why we want no logging through the 
> console then ditch the comments.
> 
>     Paul
> 
>>    
>>    static FORCEINLINE PVOID
>>    __DriverAllocate(
>>
> 
> 


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.