comparison agent/src/os/linux/libproc_impl.h @ 8058:2394a89e89f4

8008088: SA can hang the VM Reviewed-by: mgronlun, sla, dholmes
author rbackman
date Wed, 13 Feb 2013 09:46:19 +0100
parents c18cbe5936b8
children
comparison
equal deleted inserted replaced
8057:7adae9244bc8 8058:2394a89e89f4
1 /* 1 /*
2 * Copyright (c) 2003, 2005, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
103 }; 103 };
104 104
105 int pathmap_open(const char* name); 105 int pathmap_open(const char* name);
106 106
107 void print_debug(const char* format,...); 107 void print_debug(const char* format,...);
108 void print_error(const char* format,...);
108 bool is_debug(); 109 bool is_debug();
109 110
110 typedef bool (*thread_info_callback)(struct ps_prochandle* ph, pthread_t pid, lwpid_t lwpid); 111 typedef bool (*thread_info_callback)(struct ps_prochandle* ph, pthread_t pid, lwpid_t lwpid);
111 112
112 // reads thread info using libthread_db and calls above callback for each thread 113 // reads thread info using libthread_db and calls above callback for each thread