1bf215546Sopenharmony_ci/*
2bf215546Sopenharmony_ci * Copyright (C) 2014 The Android Open Source Project
3bf215546Sopenharmony_ci *
4bf215546Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
5bf215546Sopenharmony_ci * you may not use this file except in compliance with the License.
6bf215546Sopenharmony_ci * You may obtain a copy of the License at
7bf215546Sopenharmony_ci *
8bf215546Sopenharmony_ci *      http://www.apache.org/licenses/LICENSE-2.0
9bf215546Sopenharmony_ci *
10bf215546Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software
11bf215546Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
12bf215546Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13bf215546Sopenharmony_ci * See the License for the specific language governing permissions and
14bf215546Sopenharmony_ci * limitations under the License.
15bf215546Sopenharmony_ci */
16bf215546Sopenharmony_ci
17bf215546Sopenharmony_ci#ifndef _BACKTRACE_BACKTRACE_CONSTANTS_H
18bf215546Sopenharmony_ci#define _BACKTRACE_BACKTRACE_CONSTANTS_H
19bf215546Sopenharmony_ci
20bf215546Sopenharmony_ci// When the pid to be traced is set to this value, then trace the current
21bf215546Sopenharmony_ci// process. If the tid value is not BACKTRACE_NO_TID, then the specified
22bf215546Sopenharmony_ci// thread from the current process will be traced.
23bf215546Sopenharmony_ci#define BACKTRACE_CURRENT_PROCESS (-1)
24bf215546Sopenharmony_ci// When the tid to be traced is set to this value, then trace the specified
25bf215546Sopenharmony_ci// current thread of the specified pid.
26bf215546Sopenharmony_ci#define BACKTRACE_CURRENT_THREAD (-1)
27bf215546Sopenharmony_ci
28bf215546Sopenharmony_ci#define MAX_BACKTRACE_FRAMES 256
29bf215546Sopenharmony_ci
30bf215546Sopenharmony_ci#endif // _BACKTRACE_BACKTRACE_CONSTANTS_H
31