Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ktest: Keep fonud configs separate from default configs

The IGNORE_CONFIG file holds the configs that we don't want to change
(with their proper settings). But on start up, the make noconfig is
executed, and the configs that are on are also put into the ignore
config category. But these are configs that were forced on by the
kconfig scripts and not something that we found must be enabled to boot
our machine. By keeping the configs that are forced on by default,
separate from the configs we found that are required to boot the box, we
can get a much more interesting IGNORE_CONFIG. In fact, the
IGNORE_CONFIG can usually end up being the must have configs to boot,
and only have 6 or 7 configs set.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>

authored by

Steven Rostedt and committed by
Steven Rostedt
43d1b651 35ce5952

+8 -4
+8 -4
tools/testing/ktest/ktest.pl
··· 2405 2405 2406 2406 my %min_configs; 2407 2407 my %keep_configs; 2408 + my %save_configs; 2408 2409 my %processed_configs; 2409 2410 my %nochange_config; 2410 2411 ··· 2497 2496 2498 2497 process_config_ignore $output_config; 2499 2498 2500 - undef %keep_configs; 2499 + undef %save_configs; 2501 2500 undef %min_configs; 2502 2501 2503 2502 if (defined($ignore_config)) { 2504 2503 # make sure the file exists 2505 2504 `touch $ignore_config`; 2506 - assign_configs \%keep_configs, $ignore_config; 2505 + assign_configs \%save_configs, $ignore_config; 2507 2506 } 2507 + 2508 + %keep_configs = %save_configs; 2508 2509 2509 2510 doprint "Load initial configs from $start_minconfig\n"; 2510 2511 ··· 2617 2614 doprint "$min_configs{$config} is needed to boot the box... keeping\n"; 2618 2615 # this config is needed, add it to the ignore list. 2619 2616 $keep_configs{$config} = $min_configs{$config}; 2617 + $save_configs{$config} = $min_configs{$config}; 2620 2618 delete $min_configs{$config}; 2621 2619 2622 2620 # update new ignore configs 2623 2621 if (defined($ignore_config)) { 2624 2622 open (OUT, ">$temp_config") 2625 2623 or die "Can't write to $temp_config"; 2626 - foreach my $config (keys %keep_configs) { 2627 - print OUT "$keep_configs{$config}\n"; 2624 + foreach my $config (keys %save_configs) { 2625 + print OUT "$save_configs{$config}\n"; 2628 2626 } 2629 2627 close OUT; 2630 2628 run_command "mv $temp_config $ignore_config" or