lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <cf70f0211001222331y17af1f56oe7d4e61c1d38d7d3@mail.gmail.com>
Date:	Fri, 22 Jan 2010 23:31:43 -0800
From:	Shivdas Gujare <shivdas.tech@...il.com>
To:	linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
	tim.bird@...sony.com
Subject: measureing kernel & application boottime's

Hi Tim/all,

I am trying to measure kernel boottime along with measuring
application process start time on ARM V6 platform.
Because of few reasons, I have to stick to kernel 2.6.25(can't upgrade
it to latest).

While measuring application process times, I use "cat /proc/uptime"
when I start a process (I am not sure, if this is the best way to
measure time , please suggest if any).
For kernel, I use CONFIG_PRINTK_TIME macro. my application loads a
kernel module.
So, my question is how "/proc/uptime" relates to PRINTK_TIME timestamps?

I see, "uptime" uses
        do_posix_clock_monotonic_gettime(&uptime);
        monotonic_to_bootbased(&uptime);

while PRINTK_TIME does only, "cpu_clock(printk_cpu); "
but I am not able to understand practical difference between above two logics.

So, how do I correlate the time information from kernel dmesg , when
kernel module is loaded by my application(i.e. uptime measures just
before starting an application which loads kernel module).

Also, Is there any best method to measure application start time
(except bootchart, can't use it)?
Thanks for all your help.


Thanks and Regards,
Shivdas Gujare
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ