All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bruce Richardson <bruce.richardson@intel.com>
To: dev@dpdk.org
Cc: anatoly.burakov@intel.com, Bruce Richardson <bruce.richardson@intel.com>
Subject: [PATCH 3/3] test/eal_flags: add extra logging for file prefix tests
Date: Tue, 20 Jan 2026 11:25:52 +0000	[thread overview]
Message-ID: <20260120112552.921243-4-bruce.richardson@intel.com> (raw)
In-Reply-To: <20260120112552.921243-1-bruce.richardson@intel.com>

Add some additional logging about what files are being matched, locked
or deleted as part of the unit tests. This could help with debugging any
issues with the tests.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
---
 app/test/test_eal_flags.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/app/test/test_eal_flags.c b/app/test/test_eal_flags.c
index aa70f11434..f54b770ae3 100644
--- a/app/test/test_eal_flags.c
+++ b/app/test/test_eal_flags.c
@@ -214,6 +214,8 @@ process_hugefiles(const char * prefix, enum hugepage_action action)
 			case HUGEPAGE_CHECK_EXISTS:
 				{
 					/* file exists, return */
+					printf("Hugepage file %s/%s exists, matching prefix %s\n",
+							hugedir, dirent->d_name, hugefile_prefix);
 					closedir(hugepage_dir);
 					result = 1;
 					goto end;
@@ -236,6 +238,7 @@ process_hugefiles(const char * prefix, enum hugepage_action action)
 						result = -1;
 						goto end;
 					}
+					printf("Deleted hugepage file %s\n", file_path);
 					result = 1;
 				}
 				break;
@@ -269,6 +272,8 @@ process_hugefiles(const char * prefix, enum hugepage_action action)
 						goto end;
 					}
 					result = 1;
+					printf("Hugepage file %s/%s is locked\n",
+						hugedir, dirent->d_name);
 					close(fd);
 				}
 				break;
-- 
2.51.0


  parent reply	other threads:[~2026-01-20 11:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-20 11:25 [PATCH 0/3] improve debug output for EAL flags unit tests Bruce Richardson
2026-01-20 11:25 ` [PATCH 1/3] app/test: add extra logging for recursive calls Bruce Richardson
2026-01-20 11:25 ` [PATCH 2/3] test/eal_flags: add line numbers to error messages Bruce Richardson
2026-01-20 15:03   ` Stephen Hemminger
2026-01-20 15:22     ` Bruce Richardson
2026-01-20 11:25 ` Bruce Richardson [this message]
2026-01-21  9:14 ` [PATCH 0/3] improve debug output for EAL flags unit tests David Marchand
2026-01-23 11:08   ` David Marchand
2026-01-23 11:28     ` Bruce Richardson

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=20260120112552.921243-4-bruce.richardson@intel.com \
    --to=bruce.richardson@intel.com \
    --cc=anatoly.burakov@intel.com \
    --cc=dev@dpdk.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.