Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/b/bt_set_flags.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/b/bt_set_flags.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/b/bt_set_flags.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/b/bt_set_flags.html on line 8
Set or clear the flags for backtracing
|
The backtrace library is an unsupported feature, due to its fragility.
For more information, see
Backtraces
in the QNX Neutrino technotes. |
#include <backtrace.h>
int bt_set_flags( bt_accessor_t *acc,
unsigned flags,
int onoff );
- acc
- A pointer to a bt_accessor_t structure.
This is an opaque structure that holds the identity of the thread to
backtrace.
- flags
- A bitwise ORing of the flags you want to set:
- BTF_LIVE_BACKTRACE — typically
bt_get_backtrace()
freezes a thread before gathering the backtrace.
If you set this flag, bt_get_backtrace() doesn't freeze
the thread.
This can be useful if you want to freeze many threads at the same
time, and then collect the backtrace for all threads, thus providing
a coherent snapshot for all of the threads.
- onoff
- Zero to clear the specified flags, or a nonzero value to set the flags.
libbacktrace
Use the -l backtrace option to
qcc
to link against this library.
The bt_set_flags() function lets you turn the specified flags
on or off.
- 0
- Success.
- -1
- An error occurred
(errno
is set).
- EINVAL
- The flags argument specifies an invalid flag.
QNX Neutrino
Safety: | |
Cancellation point |
No |
Interrupt handler |
Yes |
Signal handler |
Yes |
Thread |
Yes |
bt_get_backtrace(),
bt_init_accessor(),
bt_load_memmap(),
bt_release_accessor(),
bt_sprn_memmap(),
bt_sprnf_addrs(),
bt_translate_addrs(),
bt_unload_memmap()
Backtraces
in the QNX Neutrino technotes
pidin backtrace
in the Utilities Reference
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/b/bt_set_flags.html on line 185
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/b/bt_set_flags.html on line 185