Lines Matching +full:com +full:- +full:seq
1 // SPDX-License-Identifier: GPL-2.0
4 * Author: Alan Maguire <alan.maguire@oracle.com>
12 #include "string-stream.h"
39 static void debugfs_print_result(struct seq_file *seq, in debugfs_print_result() argument
43 if (!test_case || !test_case->log) in debugfs_print_result()
46 seq_printf(seq, "%s", test_case->log); in debugfs_print_result()
52 static int debugfs_print_results(struct seq_file *seq, void *v) in debugfs_print_results() argument
54 struct kunit_suite *suite = (struct kunit_suite *)seq->private; in debugfs_print_results()
58 if (!suite || !suite->log) in debugfs_print_results()
61 seq_printf(seq, "%s", suite->log); in debugfs_print_results()
64 debugfs_print_result(seq, suite, test_case); in debugfs_print_results()
66 seq_printf(seq, "%s %d - %s\n", in debugfs_print_results()
67 kunit_status_to_string(success), 1, suite->name); in debugfs_print_results()
80 suite = (struct kunit_suite *)inode->i_private; in debugfs_results_open()
97 suite->log = kzalloc(KUNIT_LOG_SIZE, GFP_KERNEL); in kunit_debugfs_create_suite()
99 test_case->log = kzalloc(KUNIT_LOG_SIZE, GFP_KERNEL); in kunit_debugfs_create_suite()
101 suite->debugfs = debugfs_create_dir(suite->name, debugfs_rootdir); in kunit_debugfs_create_suite()
104 suite->debugfs, in kunit_debugfs_create_suite()
112 debugfs_remove_recursive(suite->debugfs); in kunit_debugfs_destroy_suite()
113 kfree(suite->log); in kunit_debugfs_destroy_suite()
115 kfree(test_case->log); in kunit_debugfs_destroy_suite()