[PATCH] libtracefs: Do not have utest fail debugfs/tracing not found
Steven Rostedt <[email protected]> Tue, 30 Dec 2025 19:39:21 -0500
| Newsgroups | org.kernel.vger.linux-trace-devel |
|---|---|
| Message-ID | <[email protected]> |
From: "Steven Rostedt (Google)" <[email protected]> Now that the tracing directory in debugfs is obsolete and will be removed in the future. Do not fail the mount test when looking for the debugfs/tracing directory. Signed-off-by: Steven Rostedt (Google) <[email protected]> --- utest/tracefs-utest.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/utest/tracefs-utest.c b/utest/tracefs-utest.c index 4a412b20cdb8..97a91dfcdb2c 100644 --- a/utest/tracefs-utest.c +++ b/utest/tracefs-utest.c @@ -1860,10 +1860,7 @@ static void test_mounting(void) printf("debug directory mounted at '%s'\n", debug_dir); - /* Make sure the directory has content.*/ - asprintf(&path, "%s/tracing", debug_dir); - CU_TEST(stat(path, &st) == 0); - free(path); + CU_TEST(stat(debug_dir, &st) == 0); } if (save_debug) -- 2.51.0