]> Zhao Yanbai Git Server - minix.git/commitdiff
sprofalyze only warns when executables don't exist
authorTomas Hruby <tom@minix3.org>
Thu, 23 Sep 2010 10:49:57 +0000 (10:49 +0000)
committerTomas Hruby <tom@minix3.org>
Thu, 23 Sep 2010 10:49:57 +0000 (10:49 +0000)
- e.g. when acpi is not compiled, now we can include it

- the script still fails if a symbol from a non existent binary is
  found in the profile log

commands/profile/sprofalyze.pl

index 908804bf715aae4a696e0f27f6c278175d331757..29e6d4e2ba782688b1b32e9a4a125bd322c56365 100755 (executable)
@@ -43,6 +43,7 @@ servers/sched/sched
 commands/service/service
 
 drivers/ahci/ahci
+drivers/acpi/acpi
 drivers/amddev/amddev
 drivers/at_wini/at_wini
 drivers/atl2/atl2
@@ -136,9 +137,9 @@ sub read_symbols
        $fullname = $src_root . $exe;
 
        if ((! -x $fullname) || (! -r $fullname)) {
-               print "\nERROR: $fullname does not exist or not readable.\n";
+               print "\nWARNING: $fullname does not exist or not readable.\n";
                print "Did you do a make?\n";
-               return 1;
+               next;
        }
 
        if (`file $fullname | grep NSYM`) {