⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 paje_def.h

📁 linux下的多线程调试工具
💻 H
字号:
/* Copyright (C) 2004,2005,2006  Bull S.A. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA *//* declaration of event format */#define paje_evt_def "\%EventDef PajeDefineContainerType 1\n\%    Alias           string\n\%    ContainerType   string\n\%    Name            string\n\%EndEventDef\n\%EventDef PajeDefineEventType 2\n\%    Alias           string\n\%    ContainerType   string\n\%    Name            string\n\%    Shape           string\n\%    Height          string\n\%    Width           string\n\%EndEventDef\n\%EventDef PajeDefineStateType 3\n\%    Alias           string\n\%    ContainerType   string\n\%    Name            string\n\%    Height          string\n\%EndEventDef\n\%EventDef PajeDefineVariableType 4\n\%    Alias           string\n\%    ContainerType   string\n\%    Name            string\n\%    Height          string\n\%    Width           string\n\%EndEventDef\n\%EventDef PajeDefineLinkType 5\n\%    Alias           string\n\%    ContainerType   string\n\%    SourceContainerType string\n\%    DestContainerType   string\n\%    Name            string\n\%EndEventDef\n\%EventDef PajeDefineEntityValue 6\n\%    Alias           string\n\%    EntityType      string\n\%    Name            string\n\%    Color           color\n\%EndEventDef\n\%EventDef PajeCreateContainer 7\n\%    Time            date\n\%    Alias           string\n\%    Type            string\n\%    Container       string\n\%    Name            string\n\%EndEventDef\n\%EventDef PajeDestroyContainer 8\n\%    Time            date\n\%    Type            string\n\%    Container       string\n\%EndEventDef\n\%EventDef PajeNewEvent 9\n\%    Time            date\n\%    EntityType      string\n\%    Container       string\n\%    Value           string\n\%EndEventDef\n\%EventDef PajeSetState 10\n\%    Time            date\n\%    EntityType      string\n\%    Container       string\n\%    Value           string\n\%EndEventDef\n\%EventDef PajePushState 11\n\%    Time            date\n\%    EntityType      string\n\%    Container       string\n\%    Value           string\n\%EndEventDef\n\%EventDef PajePopState 12\n\%    Time            date\n\%    EntityType      string\n\%    Container       string\n\%EndEventDef\n\%EventDef PajeSetVariable 13\n\%    Time            date\n\%    EntityType      string\n\%    Container       string\n\%    Value           double\n\%EndEventDef\n\%EventDef PajeAddVariable 14\n\%    Time            date\n\%    EntityType      string\n\%    Container       string\n\%    Value           double\n\%EndEventDef\n\%EventDef PajeSubVariable 15\n\%    Time            date\n\%    EntityType      string\n\%    Container       string\n\%    Value           double\n\%EndEventDef\n\%EventDef PajeStartLink 16\n\%    Time            date\n\%    EntityType      string\n\%    Container       string\n\%    SourceContainer string\n\%    Value           string\n\%    Key             string\n\%EndEventDef\n\%EventDef PajeEndLink 17\n\%    Time            date\n\%    EntityType      string\n\%    Container       string\n\%    DestContainer   string\n\%    Value           string\n\%    Key             string\n\%EndEventDef\n\\n\\n\"/* declaration of program */#define paje_prog_decl "\1 program 0 \"PROGRAM\"\n\\n\"/* declaration of thread with "function" state and "ret_val" event */#define paje_thread_decl "\1 thread             program     \"THREADS\"\n\\n\3 thread_func        thread      \"T func\"  40\n\6 USER_IN            thread_func \"User\"    \".6 .6 .6\"\n\6 BARRIER_DESTROY_IN thread_func \"Bdestr\"  \".9 .9 .6\"\n\6 BARRIER_INIT_IN    thread_func \"Binit\"   \".9 .9 .6\"\n\6 BARRIER_WAIT_IN    thread_func \"Bwait\"   \".9 .9 .6\"\n\6 COND_BROAD_IN      thread_func \"CVbroad\" \".9 .7 .5\"\n\6 COND_DESTROY_IN    thread_func \"CVdestr\" \".9 .7 .5\"\n\6 COND_INIT_IN       thread_func \"CVinit\"  \".9 .7 .5\"\n\6 COND_SIGNAL_IN     thread_func \"CVsign\"  \".9 .7 .5\"\n\6 COND_WAIT_IN       thread_func \"CVwait\"  \".9 .7 .5\"\n\6 MUTEX_DESTROY_IN   thread_func \"Mdestr\"  \".9 .5 .4\"\n\6 MUTEX_INIT_IN      thread_func \"Minit\"   \".9 .5 .4\"\n\6 MUTEX_LOCK_IN      thread_func \"Mlock\"   \".9 .5 .4\"\n\6 MUTEX_UNLOCK_IN    thread_func \"Munlock\" \".9 .5 .4\"\n\6 THREAD_CANCEL_IN   thread_func \"Tcancel\" \".6 .5 .4\"\n\6 THREAD_CREATE_IN   thread_func \"Tcreate\" \".6 .5 .4\"\n\6 THREAD_JOIN_IN     thread_func \"Tjoin\"   \".6 .5 .4\"\n\\n\2 ret_val thread  \"ret_val\" \"PSFPin\" 20 10\n\6 failed  ret_val \"failed\" \".9 .1 .1\"\n\\n\"/* declaration of "state" state for thread */#define paje_thread_state_decl "\3 thread_state              thread       \"T state\" 20\n\6 THREAD_STATE_WAKE         thread_state \"Tr\"      \".1 .7 .1\"\n\6 THREAD_STATE_WAIT         thread_state \"Tb\"      \".9 .1 .1\"\n\6 THREAD_STATE_WAKE_MUTEX   thread_state \"Tr\"      \".1 .7 .1\"\n\6 THREAD_STATE_WAIT_MUTEX   thread_state \"Tb\"      \".9 .1 .1\"\n\6 THREAD_STATE_WAKE_BARRIER thread_state \"Tr\"      \".1 .7 .1\"\n\6 THREAD_STATE_WAIT_BARRIER thread_state \"Tb\"      \".9 .1 .1\"\n\6 THREAD_STATE_WAKE_COND    thread_state \"Tr\"      \".1 .7 .1\"\n\6 THREAD_STATE_WAIT_COND    thread_state \"Tb\"      \".9 .1 .1\"\n\6 THREAD_STATE_WAKE_SEM     thread_state \"Tr\"      \".1 .7 .1\"\n\6 THREAD_STATE_WAIT_SEM     thread_state \"Tb\"      \".9 .1 .1\"\n\6 THREAD_STATE_CANCEL       thread_state \"Tc\"      \".9 .6 .9\"\n\6 THREAD_STATE_DEAD         thread_state \"Tz\"      \".6 .6 .9\"\n\\n\"/* declaration of "attribute" state for thread */#define paje_thread_attr_decl "\3 thread_attr     thread      \"T attr\" 20\n\6 THREAD_JOINABLE thread_attr \"Tj\"     \".3 .6 .9\"\n\6 THREAD_DETACH   thread_attr \"Td\"     \".6 .6 .6\"\n\\n\"/* declaration of barrier */#define paje_barrier_decl "\1 barrier            program       \"BARRIERS\"\n\\n\3 barrier_state      barrier       \"B state\" 20\n\6 BARRIER_LOCK_FREE  barrier_state \"Bf\"      \".1 .7 .1\"\n\6 BARRIER_LOCK_TAKEN barrier_state \"Bt\"      \".9 .1 .1\"\n\\n\4 barrier_left       barrier       \"B left\"  20 2\n\\n\"/* declaration of conditionnal variable */#define paje_cond_decl "\1 cond            program    \"CONDITIONS\"\n\\n\3 cond_state      cond       \"CV state\" 20\n\6 COND_LOCK_FREE  cond_state \"CVf\"      \".1 .7 .1\"\n\6 COND_LOCK_TAKEN cond_state \"CVt\"      \".9 .1 .1\"\n\\n\"/* declaration of mutex */#define paje_mutex_decl "\1 mutex             program     \"MUTEXES\"\n\\n\3 mutex_state       mutex       \"M state\" 20\n\6 MUTEX_STATE_FREE  mutex_state \"Mf\"      \".1 .7 .1\"\n\6 MUTEX_STATE_TAKEN mutex_state \"Mt\"      \".9 .1 .1\"\n\\n\4 mutex_count       mutex       \"M count\" 20 2\n\\n\"/* declaration of links */#define paje_link_decl "\5 thread-thread  program        thread      thread     \"thread-thread\"\n\6 th-th_col      thread-thread  \"th-th_col\" \".2 .2 .2\"\n\5 thread-barrier program        thread      barrier    \"thread-barrier\"\n\6 th-ba_col      thread-barrier \"th-ba_col\" \".2 .2 .2\"\n\5 thread-cond    program        thread      cond       \"thread-cond\"\n\6 th-co_col      thread-cond    \"th-co_col\" \".2 .2 .2\"\n\5 thread-mutex   program        thread      mutex      \"thread-mutex\"\n\6 th-mu_col      thread-mutex   \"th-mu_col\" \".2 .2 .2\"\n\5 cond-mutex     program        cond        mutex      \"cond_mutex\"\n\6 co-mu_col      cond-mutex     \"co-mu_col\" \".2 .2 .2\"\n\\n\\n\"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -