diff options
Diffstat (limited to 'patches/boot_time_opt/0114-bootstats-add-printk-s-to-measure-boot-time-in-more-.patch')
-rw-r--r-- | patches/boot_time_opt/0114-bootstats-add-printk-s-to-measure-boot-time-in-more-.patch | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/patches/boot_time_opt/0114-bootstats-add-printk-s-to-measure-boot-time-in-more-.patch b/patches/boot_time_opt/0114-bootstats-add-printk-s-to-measure-boot-time-in-more-.patch new file mode 100644 index 0000000..c6bf036 --- /dev/null +++ b/patches/boot_time_opt/0114-bootstats-add-printk-s-to-measure-boot-time-in-more-.patch | |||
@@ -0,0 +1,83 @@ | |||
1 | From 3a1512b4ed3922f88936b95731aaff706e7286a9 Mon Sep 17 00:00:00 2001 | ||
2 | From: Arjan van de Ven <arjan@linux.intel.com> | ||
3 | Date: Wed, 11 Feb 2015 16:05:23 -0600 | ||
4 | Subject: [PATCH 114/124] bootstats: add printk's to measure boot time in more | ||
5 | detail | ||
6 | |||
7 | Few distro-tweaks to add printk's to visualize boot time better | ||
8 | |||
9 | Author: Arjan van de Ven <arjan@linux.intel.com> | ||
10 | |||
11 | Signed-off-by: Miguel Bernal Marin <miguel.bernal.marin@linux.intel.com> | ||
12 | --- | ||
13 | arch/x86/kernel/alternative.c | 4 ++++ | ||
14 | drivers/base/firmware_class.c | 2 ++ | ||
15 | init/main.c | 2 +- | ||
16 | kernel/kmod.c | 2 ++ | ||
17 | 4 files changed, 9 insertions(+), 1 deletion(-) | ||
18 | |||
19 | diff --git a/arch/x86/kernel/alternative.c b/arch/x86/kernel/alternative.c | ||
20 | index 5cb272a7a5a3..d28fb7aae4ce 100644 | ||
21 | --- a/arch/x86/kernel/alternative.c | ||
22 | +++ b/arch/x86/kernel/alternative.c | ||
23 | @@ -626,7 +626,9 @@ void __init alternative_instructions(void) | ||
24 | * patching. | ||
25 | */ | ||
26 | |||
27 | + printk("clr: Applying alternatives\n"); | ||
28 | apply_alternatives(__alt_instructions, __alt_instructions_end); | ||
29 | + printk("clr: Applying alternatives done\n"); | ||
30 | |||
31 | #ifdef CONFIG_SMP | ||
32 | /* Patch to UP if other cpus not imminent. */ | ||
33 | @@ -637,6 +639,8 @@ void __init alternative_instructions(void) | ||
34 | _text, _etext); | ||
35 | } | ||
36 | |||
37 | + printk("clr: Applying alternatives smp done\n"); | ||
38 | + | ||
39 | if (!uniproc_patched || num_possible_cpus() == 1) | ||
40 | free_init_pages("SMP alternatives", | ||
41 | (unsigned long)__smp_locks, | ||
42 | diff --git a/drivers/base/firmware_class.c b/drivers/base/firmware_class.c | ||
43 | index a95e1e572697..b29467031be6 100644 | ||
44 | --- a/drivers/base/firmware_class.c | ||
45 | +++ b/drivers/base/firmware_class.c | ||
46 | @@ -1224,6 +1224,8 @@ request_firmware(const struct firmware **firmware_p, const char *name, | ||
47 | { | ||
48 | int ret; | ||
49 | |||
50 | + printk("clr: request_firmware: %s\n", name); | ||
51 | + | ||
52 | /* Need to pin this module until return */ | ||
53 | __module_get(THIS_MODULE); | ||
54 | ret = _request_firmware(firmware_p, name, device, NULL, 0, | ||
55 | diff --git a/init/main.c b/init/main.c | ||
56 | index 2858be732f6d..f1d8c3fdbf05 100644 | ||
57 | --- a/init/main.c | ||
58 | +++ b/init/main.c | ||
59 | @@ -751,7 +751,7 @@ static int __init_or_module do_one_initcall_debug(initcall_t fn) | ||
60 | unsigned long long duration; | ||
61 | int ret; | ||
62 | |||
63 | - printk(KERN_DEBUG "calling %pF @ %i\n", fn, task_pid_nr(current)); | ||
64 | + printk(KERN_DEBUG "calling %pF @ %i\n", fn, raw_smp_processor_id()); | ||
65 | calltime = ktime_get(); | ||
66 | ret = fn(); | ||
67 | rettime = ktime_get(); | ||
68 | diff --git a/kernel/kmod.c b/kernel/kmod.c | ||
69 | index 0277d1216f80..dc5a6edd3895 100644 | ||
70 | --- a/kernel/kmod.c | ||
71 | +++ b/kernel/kmod.c | ||
72 | @@ -76,6 +76,8 @@ static int call_modprobe(char *module_name, int wait) | ||
73 | NULL | ||
74 | }; | ||
75 | |||
76 | + printk("clr: call_modprobe: %s %i \n", module_name, wait); | ||
77 | + | ||
78 | char **argv = kmalloc(sizeof(char *[5]), GFP_KERNEL); | ||
79 | if (!argv) | ||
80 | goto out; | ||
81 | -- | ||
82 | 2.11.1 | ||
83 | |||