This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Script run makes the system to hang


beginner966 <nitin966@gmail.com> writes:

> I had written this script to gather the time spent by a task in the
> runqueue. It runs fine for 1-2 ms or so(short time I mean). But
> whenever I try to run it without an exit() in timer function, my
> system hangs. [...]

Can you collect the information suggested by the HowToReportBugs systemtap
wiki page and/or by running the "stap-report" script?


> Please suggest some help regarding this matter as to how to make this script
> run for infinite amount of time and provide useful statistics.
> probe timer.ms(11)
> {
> 	exit();
> }

(Please note that 11 milliseconds is a very short time indeed.)


> probe kernel.function("finish_task_switch") [...]

I wonder if utrace-based or scheduler.stp tapset-based probe points
may serve as well.


- FChE


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]