From mboxrd@z Thu Jan 1 00:00:00 1970 From: radhika.putty@gmail.com (Radhika Chowdary) Date: Fri, 1 Apr 2011 13:24:47 +0530 Subject: [ltt-dev] Getting current process from Log files Message-ID: Hi We are implementing importer for LTTng and not using any existing C parser or linuxtools plugins. I need some info on how we get the currently running process. From what i see from the existing C parser code i understand its the sched_schedule event which can help in getting currently running process. We get the timestamp of when a sched change event happened and add the process to the stack with timestamp. So any event occuring after the sched_schedule event we get the process that was scheduled in as currently running process. Is my understanding currect. If that is true and we get an event before any sched_schedule or fork events how can we get the process that generated the event. Would it be the init process? Thanks Radhika -------------- next part -------------- An HTML attachment was scrubbed... URL: From mboxrd@z Thu Jan 1 00:00:00 1970 From: radhika.putty@gmail.com (Radhika Chowdary) Date: Fri, 1 Apr 2011 13:24:47 +0530 Subject: [ltt-dev] Getting current process from Log files Message-ID: Message-ID: <20110401075447.0sN1fqM5qvR5PBI2xuZnf20YSVyHp5YWiVdaQO7gqeA@z> Hi We are implementing importer for LTTng and not using any existing C parser or linuxtools plugins. I need some info on how we get the currently running process. From what i see from the existing C parser code i understand its the sched_schedule event which can help in getting currently running process. We get the timestamp of when a sched change event happened and add the process to the stack with timestamp. So any event occuring after the sched_schedule event we get the process that was scheduled in as currently running process. Is my understanding currect. If that is true and we get an event before any sched_schedule or fork events how can we get the process that generated the event. Would it be the init process? Thanks Radhika -------------- next part -------------- An HTML attachment was scrubbed... URL: From mboxrd@z Thu Jan 1 00:00:00 1970 From: radhika.putty@gmail.com (Radhika Chowdary) Date: Fri, 1 Apr 2011 13:24:47 +0530 Subject: [ltt-dev] Getting current process from Log files Message-ID: Message-ID: <20110401075447.cn5JXihUEaCwyW7ENMexgkY4anBCwO5vuvzINWxN-Sc@z> Hi We are implementing importer for LTTng and not using any existing C parser or linuxtools plugins. I need some info on how we get the currently running process. From what i see from the existing C parser code i understand its the sched_schedule event which can help in getting currently running process. We get the timestamp of when a sched change event happened and add the process to the stack with timestamp. So any event occuring after the sched_schedule event we get the process that was scheduled in as currently running process. Is my understanding currect. If that is true and we get an event before any sched_schedule or fork events how can we get the process that generated the event. Would it be the init process? Thanks Radhika -------------- next part -------------- An HTML attachment was scrubbed... URL: