These are java applications whose PID I want to get using a kernel
module. In the kernel module it will be tracking the system calls.

Regards,
Perumal

On Mar 23, 11:23 pm, Amit Dang <danga...@gmail.com> wrote:
> Are these applications java applications or a native executable?
>
> On Tue, Mar 23, 2010 at 9:01 AM, perumal316 <perumal...@gmail.com> wrote:
>
> > I have tried that but it is giving the process ID of
> > android.process.acore not of the application
>
> > Regards,
> > Perumal
>
> > On Mar 23, 10:43 am, Mike Chan <m...@android.com> wrote:
> > > Maybe try task_tgid_nr(current) ?
>
> > > -- Mike
>
> > > On Mon, Mar 22, 2010 at 7:27 PM, perumal316 <perumal...@gmail.com>
> > wrote:
> > > > Hi all,
>
> > > > I have tried the following
>
> > > > current->pid and current->comm to get the process ID and name of
> > > > process from kernel module
>
> > > > but what it is giving me is Binder Thread and an id which is not the
> > > > same when I check it against the pid and name by doing 'ps' from adb
> > > > shell.
>
> > > > Any idea why I am getting Binder Thread as my process name? When it
> > > > should be the actual process's name. How to get the correct PID and
> > > > name?
>
> > > > Thanks in Advance,
> > > > Perumal
>
> > > > On Mar 18, 1:41 pm, perumal316 <perumal...@gmail.com> wrote:
> > > >> Hi,
>
> > > >> Is there any way to get the current process ID and the corresponding
> > > >> name of the application from the kernel module?
>
> > > >> I have tried using task->comm ,task->pid, current->pid etc But I am
> > > >> not getting the correct process ID.
>
> > > >> I want to printk the process ID and the application name each time a
> > > >> system call is called. System call should have a way to identify which
> > > >> process ID or application is calling it.
>
> > > >> Any other way to printk the process ID and the application name?
>
> > > >> Thanks In Advance,
> > > >> Perumal
>
> > > > --
> > > > unsubscribe: 
> > > > android-kernel+unsubscr...@googlegroups.com<android-kernel%2bunsubscr...@googlegroups.com>
> > > > website:http://groups.google.com/group/android-kernel
>
> > > > To unsubscribe from this group, send email to android-kernel+
> > unsubscribegooglegroups.com or reply to this email with the words "REMOVE
> > ME" as the subject.
>
> > --
> > unsubscribe: 
> > android-kernel+unsubscr...@googlegroups.com<android-kernel%2bunsubscr...@googlegroups.com>
> > website:http://groups.google.com/group/android-kernel
>
> > To unsubscribe from this group, send email to android-kernel+
> > unsubscribegooglegroups.com or reply to this email with the words "REMOVE
> > ME" as the subject.

-- 
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-kernel

To unsubscribe from this group, send email to 
android-kernel+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.

Reply via email to