From: "Modem, Bhanuprakash" <bhanuprakash.modem@intel.com>
To: Pranay Samala <pranay.samala@intel.com>, <igt-dev@lists.freedesktop.org>
Cc: <karthik.b.s@intel.com>, <kunal1.joshi@intel.com>,
<sameer.lattannavar@intel.com>
Subject: Re: [PATCH i-g-t v3 2/3] tests/kms_atomic_transition: Reducing debug loglevel dynamically
Date: Thu, 11 Jul 2024 11:17:59 +0530 [thread overview]
Message-ID: <585347be-9483-4c49-97d6-bef9d4bdb7f8@intel.com> (raw)
In-Reply-To: <20240711041355.749937-3-pranay.samala@intel.com>
On 11-07-2024 09:43 am, Pranay Samala wrote:
> This test is debug logs are too much and was killed
> due to exceeding disk usage limit on the less disk
> space machines.
>
> So dynamically reducing the debug log level to 13.
>
> v3:
> - Calling loglevel init functionality in lib file (Bhanu)
> - Here 2 means the log level will be reduced by 2 (Bhanu)
Please keep maintain the rev history (v2 is missing).
>
> Signed-off-by: Pranay Samala <pranay.samala@intel.com>
> ---
> tests/kms_atomic_transition.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/tests/kms_atomic_transition.c b/tests/kms_atomic_transition.c
> index 29dd8ac4e..f89cd0814 100644
> --- a/tests/kms_atomic_transition.c
> +++ b/tests/kms_atomic_transition.c
> @@ -34,6 +34,7 @@
> #include "igt_rand.h"
> #include "drmtest.h"
> #include "sw_sync.h"
> +#include "igt_sysfs.h"
> #include <errno.h>
> #include <pthread.h>
> #include <stdbool.h>
> @@ -1176,6 +1177,8 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
> igt_fixture {
> data.drm_fd = drm_open_driver_master(DRIVER_ANY);
>
> + igt_drm_debug_level_update(2);
Comments in Rev 2 is not addressed.
Probably, you can read the current debug level & take the decision.
Ex:
if (igt_drm_debug_level_get() > <your magic number>)
igt_drm_debug_level_update(2);
Also, please move this logic to end of the igt_fixture.
Ex: If there is valid connector found, then there is no point to update
the debug level.
- Bhanu
> +
> kmstest_set_vt_graphics_mode();
>
> igt_display_require(&data.display, data.drm_fd);
next prev parent reply other threads:[~2024-07-11 5:48 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-11 4:13 [PATCH i-g-t v3 0/3] Runtime alteration of debuglog level Pranay Samala
2024-07-11 4:13 ` [PATCH i-g-t v3 1/3] lib/igt_sysfs: Implement dynamic adjustment of debug log level Pranay Samala
2024-07-11 5:47 ` Modem, Bhanuprakash
2024-07-11 4:13 ` [PATCH i-g-t v3 2/3] tests/kms_atomic_transition: Reducing debug loglevel dynamically Pranay Samala
2024-07-11 5:47 ` Modem, Bhanuprakash [this message]
2024-07-11 4:13 ` [PATCH i-g-t v3 3/3] tests/intel-ci/fast-feedback.testlist: To get the required results Pranay Samala
2024-07-11 5:47 ` Modem, Bhanuprakash
2024-07-11 4:50 ` ✗ CI.xeBAT: failure for Runtime alteration of debuglog level (rev3) Patchwork
2024-07-11 5:13 ` ✗ Fi.CI.BAT: " Patchwork
2024-07-11 5:47 ` ✗ CI.xeFULL: " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=585347be-9483-4c49-97d6-bef9d4bdb7f8@intel.com \
--to=bhanuprakash.modem@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=karthik.b.s@intel.com \
--cc=kunal1.joshi@intel.com \
--cc=pranay.samala@intel.com \
--cc=sameer.lattannavar@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox