社区
VxWorks
帖子详情
workbench 中的system viewer 怎么用
goodthinghappen
2013-07-05 01:19:50
我用workbench 调试了一个downloadable kernel module工程,自己创建了一个应用文件,链接目标机vxsim后,我用system viewer 想看一下程序的运行状态,stop logging 后upload时 会出现下面的错误:
java.lang.nullpointerexception
请问这是什么原因呢?
应该怎么用system viewer 这个工具呢?
谢谢高手指点!
...全文
441
1
打赏
收藏
workbench 中的system viewer 怎么用
我用workbench 调试了一个downloadable kernel module工程,自己创建了一个应用文件,链接目标机vxsim后,我用system viewer 想看一下程序的运行状态,stop logging 后upload时 会出现下面的错误: java.lang.nullpointerexception 请问这是什么原因呢? 应该怎么用system viewer 这个工具呢? 谢谢高手指点!
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
1 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
fingying2618
2013-08-01
打赏
举报
回复
是选择的自动upload吗?
Workbench
集成开发环境的使用.pdf
Workbench
集成开发环境的使用 建立和管理工程(Project) 使用命令行工具(HostShell) 使用调试工具(Debugg
er
) 逻辑分析工具(System
View
er
) VxWorks的再配置(Scalable)
北京
中
科信软实时嵌入式系统 VxWorks培训1
培训目标: Aft
er
this course, students will be able to: Design, develop, debug, build, and test real-time applications in a target-host development environment with
Workbench
and VxWorks. Efficiently use the tools and functionality of
Workbench
Course Format. 培训对象:Develop
er
s who work with
Workbench
and GPP, VE . Specific questions are addressed . New project memb
er
s on teams already using VxWorks products. Labsessions allow hands-on application of course concepts. Manag
er
s who want a quick und
er
standing
Workbench
components. Senior engine
er
s who want to evaluate VxWorks technology Global Reach of Wind Riv
er
Education S
er
vices 学员基础:One year of C programming,Basic und
er
standing of op
er
ating systems and debugging techniques,Functional knowledge of Windows 培训大纲: 实时多任务操作系统(RTOS)简介 (RTOS)的基础及特性 实时多任务操作系统(RTOS)的任务管理。 (RTOS)任务间的通信机制。 异常、
中
断和定时器程序设计。 实时应用系统设计概要; VxWorks系统概述 VxWorks操作系统的配置和启动 VxWorks组件概述 VxWorks文件系统 VxWorks网络系统、 VxWorks图形系统 VxWorks操作系统的编译和重新配置 VxWorks 6.x操作系统的体系结构内核配置 VxWorks 交叉开发调试原理 嵌入式系统软硬件配置及引导过程 定制内核VxWorks VxWorks应用开发流程 VxWorks实时多任务系统 实时应用系统交叉开发环境的特点 VxWorks实时内核基本概念 VxWorks 内核的功能和特性; 实时多任务程序设计和调试 实时多任务应用系统设计要点; 多任务程序调试及分析 多任务系统的状态和控制 VxWorks 内核定制。 实时多任务的VxWorks编程。 案例讲解与演练 VxWorks 设备驱动 VxWorks 设备 I/O策略 轮巡和
中
断 字符设备驱动 块设备驱动 Tornado 串行设备 网络驱动 VxWorks事件及事件的使用 VxWorks信号灯的使用 任务间交互通信的程序设计 任务间通信概述 共享存储器方式 消息队列方式 管道方式 案例讲解 内存管理程序设计 系统内存的管理及分配 系统内存的程序设计 系统的异常、
中
断和定时器程序设计 异常处理和相关信号
中
断服务程序(ISR) 定时器程序 案例讲解 基于VxWorks操作系统的BSP设计开发(重点) BSP基本原理 BSP 系统硬件及相关硬件 BSP组织部分 BSP的创建 BSP 系统配置文件 BSP开发环境的建立 BSP的开发与调试 嵌入式系统硬件抽象层 BSP的设计与实现 案例讲解
Workbench
Ov
er
view
/Target Manag
er
Workbench
p
er
spectives Help resources Cross-development set-up Target manag
er
conguration Case practice Questions Project Management Workspaces
Workbench
projects VxWorks projects types
Workbench
Host Shell Int
er
pret
er
s Cross-development with Host Shell Case practice Questions
Workbench
Source Analysis Static analysis Editor Working sets
View
s Debugging and Analyzing Applications Basic debugging System debugging System
View
er
usage
Workbench
ScopeTools StethoScope ProfileScope MemScope Cov
er
ageScope TraceScope Case practice Questions
Microsoft Library MSDN4DOS.zip
MSL 即 Microsoft Library 是 DOS 版的 "WinHelp",也就是现代版 Help
View
er
的始祖。 安装目录下有个 ini 文件,用来指定图书的路径,它即是目录。 文件来源自 http://wdl2.winworldpc.com/Abandonware%20SDKs/Microsoft Programm
er
's Library 1.3.7z Microsoft Programm
er
's Library 1.3.iso 这就是 DOS 版的 MSDN!使用 DOSBOX 就可以运行此库。此库含一大古董级MS官方编程参考材料,主要针对 Windows 3.0 平台,真可谓之应用尽有: MS Windows 3.0 SDK Guide to Programming MS Windows 3.0 SDK Install. & Update Guide MS Windows 3.0 SDK Programm
er
's Ref
er
ence Vol. 1 MS Windows 3.0 SDK Programm
er
's Ref
er
ence Vol. 2 MS Windows 3.0 SDK Tools MS Windows 3.0 SDK Articles All MS Windows 3.0 SDK Manuals MS Windows 3.0 DDK Install. & Update Guide MS Windows 3.0 DDK Adaptation Guide MS Windows 3.0 DDK Virtual Device Adapt. Guide MS Windows 3.0 DDK Print
er
& Font Kit All MS Windows 3.0 DDK Manuals MS Online Us
er
's Guide Programming MS Windows MS Windows Sample Code MS KnowledgeBase - MS Windows 以及 Options => Library 菜单下提供的 9 个重要的参考资料,其
中
就有 C 和 MASM 这些重要的参考资料。这些是已安装的目录部分,鉴于 MASM 的重要性,特将其添加到压缩包内,免CD运行: Windows Ref
er
ences OS/S Ref
er
ences Network Ref
er
ences MS-DOS Ref
er
ences MS Systems Journal Hardware Ref
er
ences C Ref
er
ences MASM Ref
er
ences BASIC Ref
er
ences Pascal Ref
er
ences FORTUAN Ref
er
ences 其
中
C Ref
er
ences 和 MASM Ref
er
ences 包含: Installing and Using MS MASM 6.0 MS MASM 6.0 Ref
er
ence MS MASM 6.0 Programm
er
's Guide MS MASM 6.0 White Pap
er
QuickAssembl
er
2.01 Programm
er
's Guide MS Mixed-Language Programming Guide Code
View
& Utilities Us
er
's Guide MS Editor Us
er
's Guide MS OnLine Us
er
's Guide MASM Sample Code MS KnowledgeBase - MASM MS C 6.0 Advanced Programming Techniques MS C 6.0 Installing and Using the P.D.S. MS C 6.0 Ref
er
ence MS C 6.0 Run-Time Library Ref
er
ence MS C 6.0 Develop
er
's Toolkit Ref
er
ence QuickC 2.5 Tool Kit QuickC 2.5 C for Yourself QuickC 2.5 Up and Running QuickC 2.5 Update MS Professional
SAP PO/PI教程 Process Orchestration The Comprehensive Guide
SAP Process Orchestration The Comprehensive Guide, 2nd Edition SAP流程编制综合指南 1 Introduction to SAP Process Orchestration 1.1 Historical Ov
er
view
and Evolution 1.1.1 SAP Process Integration 1.1.2 SAP Composition Environment 1.1.3 SAP Process Orchestration 1.1.4 SAP Process Orchestration 7.5 Highlights 1.2 SAP Process Orchestration Components 1.2.1 SAP Process Integration 1.2.2 Business Process Management 1.2.3 Business Rules Management 1.3 Architectural Ov
er
view
and Positioning 1.3.1 SAP Process Orchestration Positioning 1.3.2 SAP NetWeav
er
Application S
er
v
er
for Java: System Architecture 1.3.3 SAP NetWeav
er
AS Java System Logical Lay
er
s 1.4 Installation Options 1.4.1 Case 1: SAP Process Integration Dual Stack 1.4.2 Case 2: SAP PI Dual Stack and SAP Composition Environment in Separate Installations 1.4.3 Case 3: SAP PI Single Stack and SAP Composition Environment in Separate Installations 1.4.4 Case 4: SAP PO—SAP PI and SAP Composition Environment in a Single Installation 1.5 Summary 2 Administration and Development Tools 2.1 SAP Process Orchestration Tools 2.1.1 Ent
er
prise S
er
vices Repository 2.1.2 Integration Directory 2.1.3 System Landscape Directory 2.1.4 Configuration and Monitoring 2.2 SAP NetWeav
er
Administrator 2.2.1 Availability and P
er
formance 2.2.2 Op
er
ations 2.2.3 Configuration 2.2.4 Troubleshooting 2.2.5 SOA 2.3 SAP NetWeav
er
Develop
er
Studio 2.3.1 Use and Download 2.3.2 SAP Process Orchestration and SAP NetWeav
er
Develop
er
Studio 2.4 Summary Part II Advanced Adapt
er
Engine Extended (AEX) 3 Configuring the System Landscape Directory 3.1 System Landscape Directory Components and Features 3.1.1 Landscape 3.1.2 Software Catalog 3.1.3 Development 3.2 Regist
er
ing Systems to the System Landscape Directory 3.2.1 Connecting to ABAP-Based Systems 3.2.2 Connecting to Java-Based Systems 3.2.3 Connecting to Oth
er
Systems 3.3 Administration of the System Landscape Directory 3.3.1 S
er
v
er
3.3.2 Data and Content 3.4 System Landscape Directory Strategies 3.4.1 Manual Export and Import of Data 3.4.2 Automatic Bridge Forwarding 3.4.3 Full Automatic Synchronization 3.5 Tips and Tricks 3.5.1 Naming Convention 3.5.2 Keeping Your System Landscape Directory Catalogs Up to Date 3.5.3 Self-Registration of a Java-Based System with the SLD 3.5.4 Configuring Data Suppli
er
s from One SLD to Anoth
er
3.5.5 Manual Export and Import of Data 3.5.6 Connecting the SLD to CTS+ to Facilitate the Export and Import of SLD Data 3.6 Ex
er
cise: Configuring the System Landscape Directory 3.6.1 Ex
er
cise Description 3.6.2 Ex
er
cise Solution Approach 3.6.3 Ex
er
cise Step-by-Step Solution 3.7 Summary 4 Working with the Ent
er
prise S
er
vices Repository and Registry 4.1 Basic ES Repository Technical Concepts 4.1.1 Functional Blocks 4.1.2 First Steps in the Ent
er
prise S
er
vices Repository 4.1.3 S
er
vice Int
er
face 4.1.4 Integration Patt
er
ns: Stateful and Stateless Communication 4.1.5 Asynchronous v
er
sus Synchronous 4.1.6 Quality of S
er
vice 4.2 Design Objects 4.2.1 Software Component V
er
sions 4.2.2 Fold
er
s 4.2.3 Namespaces 4.2.4 Mappings 4.2.5 Process Integration Scenario 4.2.6 Actions 4.3 Data Types and Message Types 4.3.1 Data Types 4.3.2 Ext
er
nal Definitions 4.3.3 Message Type 4.3.4 Additional Design Objects 4.4 Ex
er
cise: Working with the ES Repository and Registry 4.4.1 Ex
er
cise Description 4.4.2 Ex
er
cise Solution Approach 4.4.3 Ex
er
cise Step-by-Step Solution 4.5 Summary 5 Working with the Integration Directory 5.1 Integration Directory Ov
er
view
5.2 Collaboration Profiles 5.2.1 Party 5.2.2 Communication Component 5.2.3 Communication Channel 5.2.4 Communication Component without a Party 5.3 Adapt
er
Types 5.3.1 Technical Adapt
er
s to Enable Communication with SAP or Third-Party Systems 5.3.2 Application Adapt
er
s to Enable Communication with an SAP System 5.3.3 SAP Industry Adapt
er
s 5.3.4 Third-Party-Developed Adapt
er
s 5.4 Integrated Configuration 5.4.1 Inbound Processing 5.4.2 Receiv
er
5.4.3 Receiv
er
Int
er
faces 5.4.4 Outbound Processing 5.5 The XI Message Protocol 5.6 Configuration Scenario 5.6.1 Creating a Configuration Scenario from Scratch (Manually) 5.6.2 Creating a Configuration Scenario from a Model 5.7 Value Mapping 5.7.1 If/Else Logic 5.7.2 Fixed Values 5.7.3 Value Mapping 5.8 Business-to-Business Integration 5.8.1 Business-to-Business On Premise 5.8.2 Business-to-Business Managed S
er
vices 5.8.3 Trading Partn
er
Management 5.9 Axis Framework 5.10 Representational State Transf
er
Adapt
er
5.11 Message Al
er
ting 5.11.1 Al
er
t Rule Ov
er
view
5.11.2 Creating an Al
er
t Rule 5.11.3 Editing or Deleting a Rule 5.12 Publish the S
er
vice in the S
er
vices Registry 5.13 Integration Directory Programming Int
er
face (Directory API) 5.14 Ex
er
cise: Working with the Integration Directory 5.14.1 Ex
er
cise Description 5.14.2 Ex
er
cise Solution Approach 5.14.3 Ex
er
cise Step-by-Step Solution 5.15 Summary 6 Building an Integration Flow 6.1 SAP NetWeav
er
Develop
er
Studio 6.1.1 Installing SAP NetWeav
er
Develop
er
Studio 6.1.2 Setting Up SAP NetWeav
er
Develop
er
Studio 6.1.3 Ent
er
prise Integration Patt
er
ns and Us
er
-Defined Templates 6.2 Basics of Creating and Configuring an Integration Flow 6.2.1 Creating an iFlow 6.2.2 Configuring an iFlow 6.3 iFlow Example 6.3.1 Creating Products, Software Components, Business Systems, and Technical Systems in the SLD 6.3.2 Importing SLD Objects into the ES Repository in SAP NetWeav
er
Develop
er
Studio 6.3.3 Create Ent
er
prise S
er
vice Repository Objects 6.3.4 Create Directory Objects: Import Business Systems and Create iFlows 6.3.5 Testing the iFlow Scenario 6.3.6 Monitoring the Scenario 6.4 New Features of the Process Integration Design
er
6.4.1 Export Objects from the Integration Design
er
6.4.2 Automatically Deploy aft
er
Import 6.4.3 V
er
sion History and Deployment Status 6.5 Supporting Multiple Send
er
s for Your iFlow 6.6 Ex
er
cise: Building an Integration Flow 6.6.1 Ex
er
cise Description 6.6.2 Ex
er
cise Solution Approach 6.6.3 Ex
er
cise Step-by-Step Solution 6.7 Summary 7 Administration and Monitoring in AEX 7.1 Administration 7.1.1 Central Administration Tool 7.1.2 SAP NetWeav
er
Administrator 7.1.3 SAP NetWeav
er
Application S
er
v
er
Java 7.1.4 SAP Process Integration Monitoring (pimon) 7.1.5 SAP Management Console 7.1.6 Config Tool 7.1.7 Administration Using Telnet 7.2 Monitoring 7.2.1 SAP NetWeav
er
Administrator 7.2.2 SAP Process Integration Local Monitoring 7.2.3 SAP PI Central Monitoring with SAP Solution Manag
er
7.2.4 Message Retention 7.2.5 Us
er
-Defined Message Search 7.3 Troubleshooting 7.3.1 Configuring Log and Traces 7.3.2 Using the Log
View
er
7.4 Summary 8 Migrating Int
er
faces from SAP PI Dual Stack to SAP PO 8.1 Migration Strategies 8.2 Migrating System Landscape Directory Content 8.2.1 Products 8.2.2 Software Components 8.2.3 Technical System 8.2.4 Business System 8.3 Migrating Ent
er
prise S
er
vices Repository Content 8.3.1 Exporting Objects 8.3.2 Importing Objects 8.4 Migrating Integration Directory Content 8.4.1 Manually 8.4.2 Using the Migration Tool 8.5 Summary Part III Business Process Management and Composition 9 Introduction to SAP BPM and BPMN 2.0 9.1 Managing Business Processes 9.2 SAP Business Process Management 9.2.1 SAP BPM v
er
sus SAP Business Workflow 9.2.2 BPM before SAP BPM 9.2.3 SAP BPM Main Components 9.3 Business Process Model and Notation 2.0 9.3.1 Swimlanes 9.3.2 Artifacts 9.3.3 Flow Objects 9.3.4 Connections 9.4 Summary 10 Creating Your First SAP BPM Process 10.1 SAP BPM Positioning and Development Environment 10.1.1 Positioning 10.1.2 Setting Up Your Development Environment 10.2 Creating and Modeling an SAP BPM Process 10.2.1 Demonstration Scenario 10.2.2 Building an SAP BPM Process: Ov
er
view
10.2.3 SAP NetWeav
er
Develop
er
Studio P
er
spective Concept 10.2.4 Create a Project in SAP NetWeav
er
Develop
er
Studio 10.2.5 Creating a Process for Your BPMN 10.2.6 Creating a BPMN Model 10.3 Configuring the BPMN Model 10.3.1 Data Objects 10.3.2 Creating Data Structures 10.3.3 Importing XSD and WSDL 10.3.4 Process Pool Prop
er
ties 10.3.5 BPMN Flow Objects 10.4 Flow Objects 10.4.1 Events 10.4.2 Tasks 10.4.3 Activities 10.4.4 Gateways 10.4.5 Artifacts 10.5 Build and Deploy Your Process 10.5.1 Steps for Building a Process 10.5.2 Steps for Deploying a Process 10.6 Advanced Mapping 10.6.1 Mappings 10.6.2 Options in Mapping Assignment 10.6.3 Automatic Mapping 10.6.4 Custom Functions 10.7 Implementing
Er
ror Handling 10.8 Combining SAP BPM and the AEX 10.8.1 Message from SAP BPM to the AEX 10.8.2 Message from the AEX to SAP BPM 10.8.3 Lev
er
age an ES Repository Mapping in SAP BPM 10.9 Ex
er
cise: Creating an SAP Business Process Management Process 10.9.1 Ex
er
cise Description 10.9.2 Ex
er
cise Solution Approach 10.9.3 Ex
er
cise Step-by-Step Solution 10.10 Summary 11 Applying Advanced SAP BPM Concepts and Extensions 11.1 S
er
vice-Oriented Architecture Configuration 11.1.1 Configuration for an Automated Activity 11.1.2 Configuration for a Start Event or Int
er
mediary Event 11.2 Testing and Running an SAP BPM Process 11.2.1 Process Repository Ov
er
view
11.2.2 Process Testing 11.3 Custom Ent
er
prise Java Bean Functions 11.3.1 Create EJB and EAR Development Components 11.3.2 Create the Ent
er
prise Java Bean 11.3.3 Build and Deploy 11.3.4 Create a New Ent
er
prise Java Bean Function 11.4 Using the Claim Check Patt
er
n 11.4.1 Create Int
er
faces 11.4.2 Create Mappings 11.4.3 Configure the Channel 11.4.4 Retrieve the Large Message from SAP BPM 11.4.5 Update the Status of the Large Message from SAP BPM 11.5 SAP BPM Application Programming Int
er
face 11.5.1 Pr
er
equisite to Using the SAP BPM API 11.5.2 Implementation Aspects and Examples 11.6 SAP Business Process Management OData 11.6.1 OData S
er
vices for Tasks and Task Data 11.6.2
Er
ror Handling 11.7 Using the Push API to Access SAP BPM Lifecycle Events 11.7.1 Accessing Events through a Message Driven Bean 11.7.2 Accessing Events through a Java Message S
er
vice API 11.8 Debugging and Troubleshooting SAP BPM Processes 11.8.1 Place Breakpoints in the Process 11.8.2 Add a Debug Configuration 11.9 Tuning SAP BPM-Related P
er
formance Paramet
er
s 11.10 Best Practices for Your SAP BPM Application 11.10.1 BPMN, Mapping, and Parallelism 11.10.2 Task Related 11.10.3 Gateways 11.10.4 Looping 11.10.5 Data Object 11.10.6 Correlation 11.10.7
Er
ror Handling 11.10.8 Housekeeping 11.11 Ex
er
cise: Applying Advanced SAP BPM Concepts and Extensions 11.11.1 Ex
er
cise Solution Approach 11.11.2 Ex
er
cise Step-by-Step Solution 11.12 Summary 12 Combining SAP BPM and UI Technologies 12.1 Web Dynpro Java Us
er
Int
er
face Technology 12.1.1 Gen
er
ating a Web Dynpro Us
er
Int
er
face 12.1.2 Post-Configuration Steps 12.2 Integrating SAPUI5 into an SAP BPM Process 12.2.1 SAPUI5 Technology Platform 12.2.2 Model-
View
-Controll
er
Concept 12.2.3 SAPUI5 Components 12.2.4 Oth
er
SAPUI5 Concepts 12.2.5 Integration Steps 12.3 Oth
er
Us
er
Int
er
face Technologies 12.3.1 Visual Compos
er
12.3.2 Adobe Offline Forms 12.3.3 Support for Custom Us
er
Int
er
face Technologies 12.4 Summary 13 SAP Business Rules Management 13.1 How Business Rules Work 13.2 SAP Business Rules Management 13.2.1 Rules Compos
er
13.2.2 Rules Manag
er
13.2.3 Rules Engine 13.3 Modeling Business Rules with Rules Compos
er
13.3.1 Create the Rules Compos
er
Development Component 13.3.2 Adding Context to the Rules 13.3.3 Creating a Ruleset 13.3.4 Flow Ruleset 13.4 Testing Business Rules 13.5 Best Practices for Modeling Business Rules 13.5.1 Separate Decision Logic from Oth
er
Types of Logic 13.5.2 Reuse and Extend before Building 13.6 Ex
er
cise: SAP Business Rules Management 13.6.1 Ex
er
cise Solution Approach 13.6.2 Ex
er
cise Step-by-Step Solution 13.7 Summary 14 Implementing Java Proxies 14.1 Java Proxy Concept and Consid
er
ations 14.2 Implementation Approaches 14.2.1 Outside-In Approach 14.2.2 Inside-Out Approach 14.3 Technical Implementation 14.3.1 Development Environment 14.3.2 Developing a S
er
v
er
Java Proxy 14.3.3 Developing a Client Java Proxy 14.4 Building an Orchestration 14.5 Ex
er
cise: Implementing Java Proxies 14.5.1 Ex
er
cise Solution Approach 14.5.2 Ex
er
cise Step-by-Step Solution 14.6 Summary 15 Administration and Monitoring Message Processing in SAP BPM 15.1 Monitoring 15.1.1 SAP Business Process Management System Ov
er
view
15.1.2 Process Repository 15.1.3 Process Management 15.1.4 Task Management 15.1.5 SAP BPM Inbox 15.1.6 Business Logs 15.1.7 SAP BPM Action Monitor 15.1.8 Process Troubleshooting 15.1.9 Rules Business Logs 15.1.10 SAP BPM Analytics Dashboard 15.2 Administration 15.2.1 Process Data Archiving 15.2.2 Log
View
er
15.3 Summary 16 Migrating ccBPM from SAP PI to SAP PO 16.1 Motivation for Migration 16.2 Migration Approach 16.2.1 Analyze the As-Is Integration Processes 16.2.2 Translate and Redesign 16.2.3 Export and Reuse Ent
er
prise S
er
vices Repository Objects 16.2.4 Migrate and Adapt Configuration Scenarios 16.3 Recommendations 16.4 Summary Part IV Advanced Concepts 17 SAP Cloud Platform Integration for SAP PO 17.1 Enable Cloud Integration Content in SAP PO 17.2 Reusing Cloud Integration Content 17.2.1 Download Cloud Integration Content 17.2.2 Deploy the Cloud Integration Content 17.3 Monitoring 17.3.1 Monitoring the Integration Gateway Component 17.3.2 Monitoring Messages Related to the Deployment of Cloud Integration Content 17.4 Summary 18 Additional Components for SAP Process Orchestration 18.1 Component Model 18.1.1 Product 18.1.2 Software Components 18.1.3 Development Component 18.1.4 Dependencies among Development Components 18.1.5 Public Parts 18.2 SAP NetWeav
er
Development Infrastructure 18.2.1 Change Management S
er
vices 18.2.2 Design Time Repository 18.2.3 Component Build S
er
vice 18.3 SAP Composite Application Framework 18.3.1 Design Time Aspects 18.3.2 Runtime Aspects 18.4 S
er
vice Registry 18.5 Enhanced Change and Transport System 18.5.1 SAP PI-Related Transports 18.5.2 Transports for Non-SAP PI Java Objects 18.6 Ex
er
cise: Create an SWCV 18.6.1 Ex
er
cise Solution Approach 18.6.2 Ex
er
cise Step-by-Step Solution 18.7 Summary 19 Landscape Setup Consid
er
ations 19.1 Java System Configuration 19.1.1 Java Sizing and Setup Consid
er
ations 19.1.2 Java System Architecture 19.1.3 Java Central S
er
vices 19.1.4 Java Paramet
er
Tuning 19.2 Handling C
er
tificates 19.2.1 C
er
tificate Key Storage 19.2.2 Encryption of Message Content on Database Level 19.3 Housekeeping 19.3.1 Archiving 19.3.2 Deletion 19.3.3 Restarting 19.3.4 Recov
er
y 19.4 Monitoring 19.4.1 Runtime
Workbench
19.4.2 Wily Ent
er
prise Manag
er
19.4.3 SAP Management Console 19.4.4 SAP Solution Manag
er
Monitoring 19.4.5 Tracing 19.4.6 JVMMON 19.5 Summary A Orchestration Outlook A.1 SAP API Management A.2 SAP Cloud Platform Integration A.2.1 Features and Facts Ov
er
view
of SAP Cloud Platform Integration A.2.2 Development Guide: Getting Started A.2.3 Monitoring A.3 The Integration Advisor A.3.1 Int
er
face Specifications: Advice from the Advisor A.3.2 Mapping Guideline A.3.3 Runtime A.3.4 Testing A.4 SAP Cloud Platform Workflow as a S
er
vice A.4.1 Workflow S
er
vice A.4.2 Workflow Modeling A.4.3 SAP Cloud Platform Business Rules A.4.4 Workflow Tasks Management A.4.5 Integration 官方出品,英文原版,可编辑带导航非影印版(总计1866页)
vxworks_k
er
nel_programm
er
s_guide_6.9
PART I: CORE TECHNOLOGIES 1 Ov
er
view
...................................................................................................... 3 1.1 Introduction ...................................................................................................................... 3 1.2 K
er
nel Architecture ......................................................................................................... 3 1.3 Related Documentation Resources .............................................................................. 4 1.4 VxWorks Configuration and Build .............................................................................. 5 2 VxWorks Configuration ............................................................................. 7 2.1 Introduction ...................................................................................................................... 7 2.2 About VxWorks Configuration ................................................................................... 7 2.2.1 Default Configuration and Images ................................................................. 8 2.2.2 Configuration With VxWorks Image Projects ............................................... 8 2.2.3 Configuration With VxWorks Source Build Projects ................................... 8 2.2.4 Configuration and Customization .................................................................. 8 2.2.5 Configuration Tools:
Workbench
and vxprj .................................................. 9 2.3 VxWorks Image Projects: VIPs .................................................................................... 9 2.3.1 VxWorks Components ...................................................................................... 10 Component Names .......................................................................................... 10 Basic VxWorks Components ............................................................................ 11 2.3.2 Device Driv
er
Selection ................................................................................... 13 2.3.3 Component Bundles and Configuration Profiles ........................................ 14 2.3.4 VxWorks Component Ref
er
ence .................................................................... 14 2.4 VxWorks Source Build Projects: VSBs ....................................................................... 14 2.4.1 Basic Op
er
ating System VSB Options ........................................................... 16 BSP-Specific Optimizations ............................................................................. 16 VxWorks K
er
nel Programm
er
's Guide, 6.9 iv Inconsistent Cache Mode Support .................................................................. 17 System
View
er
Instrumentation Support ...................................................... 17 Real-Time Process Support .............................................................................. 17 Object Management Support ........................................................................... 17
Er
ror Detection and Reporting Policy Hooks ............................................... 18 Task Switch Hook Support .............................................................................. 18 Task Create Hook Support ............................................................................... 18 CPU Pow
er
Management Support ................................................................. 19 Advanced Options ............................................................................................ 19 VxWorks BSP Validation Test Suite Support ................................................. 19 Symmetric Multiprocessor (SMP) Support ................................................... 19 SMP Det
er
minism ............................................................................................. 19 MIPC Support .................................................................................................... 20 WRLOAD Support ............................................................................................ 20 Task-Specific Current Working Directory ...................................................... 20 Device Name Length ........................................................................................ 20 NFS V3 S
er
v
er
Optimization ........................................................................... 20 DOSFS Name Length Compatible .................................................................. 21 2.4.2 VSB Profiles ........................................................................................................ 21 2.4.3 Using VSB Projects to Create VxWorks Systems: Basic Steps .................... 21 2.4.4 Developing K
er
nel Applications for VSB Systems ..................................... 21 2.5 VxWorks Without Networking ..................................................................................... 22 2.6 Small-Footprint VxWorks Configuration ................................................................... 22 2.6.1 About Small-Footprint VxWorks .................................................................... 22 K
er
nel Facilities ................................................................................................. 22 Unsupported Facilities ..................................................................................... 23 BSPs ..................................................................................................................... 23 2.6.2 Configuring Small Footprint VxWorks .......................................................... 23 Small-Footprint VSB Profile and Options ...................................................... 24 VSB Options Specific to the Small-Footprint Profile .................................... 24 Small-Footprint VIP Profile and Components .............................................. 25 Optional Components for a Small Footprint VIP Project ............................ 25 2.6.3 Configuration and Build Steps for Small-Footprint VxWorks ................... 25 2.6.4 Writing Applications for Small-Footprint VxWorks .................................... 26 2.6.5 Example Application ........................................................................................ 26 2.6.6 Debugging Small-Footprint VxWorks ............................................................ 28 2.7 VxWorks Image Types ................................................................................................... 28 2.7.1 Default VxWorks Images ................................................................................ 29 2.7.2 VxWorks Images for Development and Production Systems ..................... 29 2.7.3 Boot Paramet
er
Configuration for Standalone VxWorks Images .............. 30 2.8 Image Size Consid
er
ations ............................................................................................ 30 2.8.1 Boot Load
er
and Downloadable Image ......................................................... 30 2.8.2 Self-Booting Image ............................................................................................ 31 Contents v 3 Boot Load
er
................................................................................................. 33 3.1 Introduction ...................................................................................................................... 33 3.2 Using a Default Boot Load
er
......................................................................................... 34 3.3 Boot Load
er
Image Types ............................................................................................... 35 3.4 Boot Load
er
Shell ............................................................................................................ 35 3.4.1 Boot Load
er
Shell Commands ......................................................................... 36 3.5 Boot Paramet
er
s ............................................................................................................... 39 3.5.1 Displaying Current Boot Paramet
er
s ............................................................. 40 3.5.2 Description of Boot Paramet
er
s ...................................................................... 41 3.5.3 Changing Boot Paramet
er
s Int
er
actively ....................................................... 44 3.6 Rebooting VxWorks ........................................................................................................ 45 3.7 Configuring and Building Boot Load
er
s .................................................................... 46 3.7.1 Boot Load
er
Profiles .......................................................................................... 46 3.7.2 Boot Load
er
Components ................................................................................ 47 3.7.3 Configuring Boot Paramet
er
s Statically ......................................................... 47 3.7.4 Enabling Networking for Non-Boot Int
er
faces ............................................. 48 3.7.5 Selecting a Boot Device ..................................................................................... 48 3.7.6 Reconfiguring Boot Load
er
Memory Layout for 32-Bit VxWorks ............. 50 Redefining the Boot Load
er
Link Address for Custom Boot Load
er
s ....... 50 Reconfiguring Memory Layout for a P
er
sistent Memory Region ............. 51 3.7.7 Reconfiguring Boot Load
er
Memory Layout for 64-Bit VxWorks ............. 53 3.7.8 Building Boot Load
er
s ...................................................................................... 53 3.8 Installing Boot Load
er
s .................................................................................................. 53 3.9 Booting From a Network ............................................................................................... 53 3.10 Booting From a Target File System ............................................................................. 55 3.11 Booting From the Host File System Using TSFS ..................................................... 55 4 K
er
nel Applications .................................................................................... 57 4.1 Introduction ...................................................................................................................... 57 4.2 About K
er
nel Applications ........................................................................................... 58 4.3 Comparing K
er
nel Applications with RTP Applications ....................................... 59 4.4 C and C++ Libraries ........................................................................................................ 60 VxWorks K
er
nel Programm
er
's Guide, 6.9 vi 4.5 K
er
nel Application Structure ........................................................................................ 60 4.6 VxWorks Head
er
Files .................................................................................................... 61 4.6.1 VxWorks Head
er
File: vxWorks.h ................................................................... 61 4.6.2 Oth
er
VxWorks Head
er
Files ........................................................................... 62 4.6.3 ANSI Head
er
Files ............................................................................................ 62 4.6.4 ANSI C++ Head
er
Files .................................................................................... 62 4.6.5 The -I Compil
er
Flag ......................................................................................... 62 4.6.6 VxWorks Nested Head
er
Files ........................................................................ 62 4.6.7 VxWorks Private Head
er
Files ........................................................................ 63 4.7 Custom Head
er
Files ....................................................................................................... 63 4.8 Static Instantiation of K
er
nel Objects ......................................................................... 64 4.8.1 About Static Instantiation of K
er
nel Objects ................................................. 64 K
er
nel Objects That can be Instantiated Statically ....................................... 65 Static Instantiation and Code Size .................................................................. 65 Advantages of Static Instantiation .................................................................. 65 Applications and Static Instantiation ............................................................. 66 4.8.2 Scope Of Static Declarations ............................................................................ 66 4.8.3 Caveat With Regard to Macro Use .................................................................. 66 4.8.4 Static Instantiation of Tasks ............................................................................. 66 4.8.5 Static Instantiation Of Semaphores ................................................................ 67 4.8.6 Static Instantiation of Message Queues ......................................................... 68 4.8.7 Static Instantiation of Watchdog Tim
er
s ........................................................ 68 4.9 Boot-Time Hook Routine Facility ............................................................................... 69 Boot-Time Hook Routine Stubs and Components ....................................... 69 Using Boot-Time Hook Routine Stubs ........................................................... 70 4.10 K
er
nel Applications and K
er
nel Component Requirements ................................. 71 4.11 Building K
er
nel Application Modules ....................................................................... 71 4.12 Downloading K
er
nel Application Object Modules to a Target ............................. 72 4.13 Linking K
er
nel Application Object Modules with VxWorks ................................ 72 4.14 Configuring VxWorks to Run Applications Automatically ................................... 72 5 C++ Development ....................................................................................... 75 5.1 Introduction ...................................................................................................................... 75 5.2 Configuring VxWorks for C++ ..................................................................................... 76 5.3 C++ Head
er
Files ............................................................................................................. 76 Contents vii 5.4 Spawning Tasks That Use C++ ..................................................................................... 76 5.5 Calls Between C and C++ Code .................................................................................... 77 5.6 C++ Compil
er
Caveats .................................................................................................... 77 5.7 Using C++ in Signal Handl
er
s and ISRs ................................................................... 78 5.8 Downloadable K
er
nel Modules in C++ ..................................................................... 78 5.9 C++ Compil
er
Diff
er
ences ............................................................................................ 78 5.9.1 Template Instantiation ...................................................................................... 78 5.9.2 Run-Time Type Information ............................................................................ 80 5.10 Namespaces ...................................................................................................................... 80 5.11 C++ Exception Handling ................................................................................................ 81 5.12 Standard Template Library (STL) ................................................................................ 81 5.13 C++ Demo Example ........................................................................................................ 81 6 Multitasking ................................................................................................. 83 6.1 Introduction ...................................................................................................................... 83 6.2 About Tasks and Multitasking ..................................................................................... 84 6.2.1 Task States and Transitions .............................................................................. 85 Tasks States and State Symbols ....................................................................... 85 Illustration of Basic Task State Transitions .................................................... 86 6.3 VxWorks System Tasks .................................................................................................. 87 Basic VxWorks Tasks ......................................................................................... 88 Tasks for Optional Components ..................................................................... 91 6.4 Task Scheduling .............................................................................................................. 93 6.4.1 Task Priorities .................................................................................................... 93 6.4.2 VxWorks Traditional Schedul
er
...................................................................... 93 Priority-Based Preemptive Scheduling .......................................................... 94 Scheduling and the Ready Queue ................................................................. 94 Round-Robin Scheduling ................................................................................. 95 6.5 Task Creation and Management ................................................................................... 97 6.5.1 Task Creation and Activation .......................................................................... 97 Static instantiation of Tasks ............................................................................. 98 6.5.2 Task Names and IDs ......................................................................................... 98 Task Naming Rules ........................................................................................... 99 Task Name and ID Routines ............................................................................ 99 VxWorks K
er
nel Programm
er
's Guide, 6.9 viii 6.5.3 Int
er
-Process Communication With Public Tasks ......................................... 99 6.5.4 Task Creation Options ...................................................................................... 100 6.5.5 Task Stack ........................................................................................................... 102 Task Stack Protection ........................................................................................ 102 6.5.6 Task Information ............................................................................................... 103 6.5.7 Task Deletion and Deletion Safety .................................................................. 104 6.5.8 Task Execution Control ..................................................................................... 105 6.5.9 Task Scheduling Control .................................................................................. 106 6.5.10 Tasking Extensions: Using Hook Routines .................................................... 107 6.6 Task
Er
ror Status:
er
rno .................................................................................................. 108 6.6.1 Lay
er
ed Definitions of
er
rno ........................................................................... 109 6.6.2 A Separate
er
rno Value for Each Task ............................................................ 109 6.6.3
Er
ror Return Convention ................................................................................. 109 6.6.4 Assignment of
Er
ror Status Values ................................................................. 110 6.7 Task Exception Handling ............................................................................................... 110 6.8 Shared Code and Reentrancy ........................................................................................ 111 6.8.1 Dynamic Stack Variables .................................................................................. 112 6.8.2 Guarded Global and Static Variables ............................................................. 112 6.8.3 Task-Specific Variables .................................................................................... 113 Thread-Local Variables: __thread Storage Class ........................................... 113 taskVarLib and Task Variables ........................................................................ 114 6.8.4 Multiple Tasks with the Same Main Routine ................................................ 114 7 Int
er
task and Int
er
process Communication ............................................. 117 7.1 Introduction ...................................................................................................................... 117 7.2 About Int
er
task and Int
er
process Communication .................................................. 118 7.3 Shared Data Structures ................................................................................................... 119 7.4 Int
er
rupt Locks ............................................................................................................... 120 7.5 Task Locks ........................................................................................................................ 121 7.6 Semaphores ...................................................................................................................... 122 7.6.1 Int
er
-Process Communication With Public Semaphores ............................. 123 7.6.2 Semaphore Creation and Use .......................................................................... 123 Options for Scalable and Inline Semaphore Routines ................................ 125 Static Instantiation of Semaphores ................................................................. 125 Scalable and Inline Semaphore Take and Give Routines ........................... 126 Contents ix 7.6.3 Binary Semaphores ........................................................................................... 126 Mutual Exclusion .............................................................................................. 127 Synchronization ................................................................................................. 128 7.6.4 Mutual-Exclusion Semaphores ....................................................................... 129 Priority Inv
er
sion and Priority Inh
er
itance ................................................... 129 Deletion Safety ................................................................................................... 132 Recursive Resource Access .............................................................................. 133 7.6.5 Counting Semaphores ...................................................................................... 134 7.6.6 Read/Write Semaphores ................................................................................. 134 Specification of Read or Write Mode .............................................................. 135 Precedence for Write Access Op
er
ations ....................................................... 136 Read/Write Semaphores and System P
er
formance ..................................... 136 7.6.7 Special Semaphore Options ............................................................................. 136 Semaphore Timeout .......................................................................................... 136 Semaphores and Queueing .............................................................................. 137 Semaphores and VxWorks Events .................................................................. 137 7.7 Message Queues .............................................................................................................. 137 7.7.1 Int
er
-Process Communication With Public Message Queues ..................... 138 7.7.2 Message Creation and Use ............................................................................... 138 Static Instantiation of Message Queues ......................................................... 139 Message Queue Timeout .................................................................................. 139 Message Queue Urgent Messages .................................................................. 140 Message Queues and Queuing Options ........................................................ 140 7.7.3 Displaying Message Queue Attributes .......................................................... 141 7.7.4 S
er
v
er
s and Clients with Message Queues .................................................... 141 7.7.5 Message Queues and VxWorks Events .......................................................... 142 7.8 Pipes ................................................................................................................................... 142 7.8.1 Creating Pipes ................................................................................................... 142 7.8.2 Writing to Pipes from ISRs ............................................................................... 142 7.8.3 I/O Control Functions ...................................................................................... 143 7.9 VxWorks Events ............................................................................................................... 143 7.9.1 Configuring VxWorks for Events .................................................................... 144 7.9.2 About Event Flags and the Task Events Regist
er
......................................... 144 7.9.3 Receiving Events ............................................................................................... 145 7.9.4 Sending Events .................................................................................................. 146 7.9.5 Int
er
-Process Communication With Events .................................................. 148 7.9.6 Events Routines ................................................................................................. 148 7.9.7 Code Example ................................................................................................... 149 7.9.8 Show Routines and Events .............................................................................. 149 VxWorks K
er
nel Programm
er
's Guide, 6.9 x 7.10 Int
er
-Process Communication With Public Objects ................................................. 149 Creating and Naming Public and Private Objects ....................................... 150 Example of Int
er
-process Communication With a Public Semaphore ...... 150 7.11 About VxWorks API Timeout Paramet
er
s .................................................................. 152 7.12 About Object Own
er
ship and Resource Reclamation ............................................. 152 8 Signals, ISRs, and Watchdog Tim
er
s ........................................................ 155 8.1 Introduction ...................................................................................................................... 155 8.2 Signals .............................................................................................................................. 156 8.2.1 Configuring VxWorks for Signals .................................................................. 157 8.2.2 Basic Signal Routines ........................................................................................ 158 8.2.3 Queued Signal Routines .................................................................................. 159 8.2.4 Signal Events ...................................................................................................... 162 8.2.5 Signal Handl
er
s ................................................................................................. 163 8.3 Int
er
rupt S
er
vice Routines: ISRs ................................................................................. 166 8.3.1 Configuring VxWorks for ISRs ........................................................................ 166 Configuring the Int
er
rupt Stack ...................................................................... 166 Adding Show Routine Support ....................................................................... 167 8.3.2 Writing ISRs ....................................................................................................... 167 Restrictions on ISRs ........................................................................................... 167 Facilities Available for ISRs .............................................................................. 169 Res
er
ving High Int
er
rupt Levels .................................................................... 170 8.3.3 System Clock ISR Modification ....................................................................... 171 8.3.4 Connecting ISRs to Int
er
rupts ......................................................................... 171 8.3.5 Getting Information About ISRs ..................................................................... 172 8.3.6 Debugging ISRs ................................................................................................. 173 8.4 Watchdog Tim
er
s ............................................................................................................. 174 Static Instantiation of Watchdog Tim
er
s ........................................................ 175 8.4.1 Int
er
-Process Communication With Public Watchdog Tim
er
s ................... 176 9 POSIX Facilities .......................................................................................... 177 9.1 Introduction ...................................................................................................................... 178 9.2 Configuring VxWorks with POSIX Facilities ............................................................ 179 9.2.1 VxWorks Components for POSIX Facilities .................................................. 179 9.3 Gen
er
al POSIX Support ................................................................................................. 180 9.4 POSIX Head
er
Files ........................................................................................................ 181 Contents xi 9.5 POSIX Namespace .......................................................................................................... 183 9.6 POSIX Clocks and Tim
er
s ............................................................................................. 183 9.7 POSIX Asynchronous I/O .............................................................................................. 186 9.8 POSIX Advisory File Locking ....................................................................................... 186 9.9 POSIX Page-Locking Int
er
face ..................................................................................... 186 9.10 POSIX Threads ................................................................................................................ 187 9.10.1 POSIX Thread Attributes ................................................................................. 188 9.10.2 VxWorks-Specific Pthread Attributes ............................................................ 188 9.10.3 Specifying Attributes when Creating Pthreads ........................................... 189 9.10.4 POSIX Thread Creation and Management .................................................... 190 9.10.5 POSIX Thread Attribute Access ...................................................................... 190 9.10.6 POSIX Thread Private Data ............................................................................. 191 9.10.7 POSIX Thread Cancellation ............................................................................. 192 9.11 POSIX Thread Mutexes and Condition Variables .................................................... 193 9.11.1 Thread Mutexes ................................................................................................. 193 Protocol Mutex Attribute ................................................................................ 194 Priority Ceiling Mutex Attribute .................................................................... 195 9.11.2 Condition Variables .......................................................................................... 195 9.12 POSIX and VxWorks Scheduling ................................................................................. 196 9.12.1 Diff
er
ences in POSIX and VxWorks Scheduling ........................................... 197 9.12.2 POSIX and VxWorks Priority Numb
er
ing ..................................................... 198 9.12.3 Default Scheduling Policy ................................................................................ 198 9.12.4 VxWorks Traditional Schedul
er
...................................................................... 198 9.12.5 POSIX Threads Schedul
er
................................................................................ 199 9.12.6 POSIX Scheduling Routines ............................................................................ 203 9.12.7 Getting Scheduling Paramet
er
s: Priority Limits and Time Slice ................ 204 9.13 POSIX Semaphores ......................................................................................................... 204 9.13.1 Comparison of POSIX and VxWorks Semaphores ....................................... 205 9.13.2 Using Unnamed Semaphores .......................................................................... 206 9.13.3 Using Named Semaphores .............................................................................. 208 9.14 POSIX Message Queues ................................................................................................. 211 9.14.1 Comparison of POSIX and VxWorks Message Queues ............................... 212 9.14.2 POSIX Message Queue Attributes .................................................................. 213 9.14.3 Displaying Message Queue Attributes .......................................................... 214 VxWorks K
er
nel Programm
er
's Guide, 6.9 xii 9.14.4 Communicating Through a Message Queue ................................................ 215 9.14.5 Notification of Message Arrival ..................................................................... 218 9.15 POSIX Signals .................................................................................................................. 222 9.16 POSIX Memory Management ....................................................................................... 222 10 Memory Management ................................................................................. 223 10.1 Introduction ...................................................................................................................... 223 10.2 32-Bit VxWorks Memory Layout ................................................................................. 224 10.2.1 Displaying Information About Memory Layout .......................................... 224 10.2.2 System Memory Map Without RTP Support ................................................ 224 10.2.3 System Memory Map with RTP Support ....................................................... 226 10.2.4 System RAM Autosizing .................................................................................. 228 10.2.5 Res
er
ved Memory: Us
er
-Res
er
ved Memory and P
er
sistent Memory ...... 228 10.3 64-Bit VxWorks Memory Layout ................................................................................. 229 10.3.1 Displaying Information About Memory Layout .......................................... 230 10.3.2 Virtual Memory Regions .................................................................................. 230 K
er
nel System Virtual Memory Region ......................................................... 231 K
er
nel Virtual Memory Pool Region .............................................................. 232 K
er
nel Res
er
ved Memory Region ................................................................... 232 Shared Us
er
Virtual Memory Region ............................................................. 232 RTP Private Virtual Memory Region .............................................................. 232 10.3.3 Global RAM Pool .............................................................................................. 233 10.3.4 K
er
nel Memory Map ........................................................................................ 233 K
er
nel System Memory .................................................................................... 235 K
er
nel Common Heap ...................................................................................... 235 DMA32 Heap ..................................................................................................... 235 Us
er
-Res
er
ved Memory ................................................................................... 235 P
er
sistent Memory ............................................................................................ 235 10.3.5 Res
er
ved Memory Configuration: Us
er
-Res
er
ved Memory and P
er
sistent Memory .............................................................................................................. 236 10.3.6 System RAM Autosizing .................................................................................. 236 10.4 About VxWorks Memory Allocation Facilities ......................................................... 236 10.5 32-Bit VxWorks Heap and Memory Partition Management .................................. 237 10.5.1 Configuring the K
er
nel Heap and the Memory Partition Manag
er
.......... 238 10.5.2 Basic Heap and Memory Partition Manag
er
................................................. 238 10.5.3 Full Heap and Memory Partition Manag
er
................................................... 238 10.6 64-Bit VxWorks Heap and Memory Partition Management .................................. 239 10.6.1 K
er
nel Common Heap ...................................................................................... 239 Contents xiii 10.6.2 K
er
nel Proximity Heap ..................................................................................... 240 10.6.3 DMA32 Heap ..................................................................................................... 240 10.7 SMP-Optimized Memory Allocation .......................................................................... 241 10.7.1 Configuration ..................................................................................................... 241 10.7.2 Usage scenarios ................................................................................................. 241 10.8 Memory Pools .................................................................................................................. 242 10.9 POSIX Memory Management ....................................................................................... 242 10.9.1 POSIX Memory Management APIs ................................................................ 243 10.9.2 POSIX Memory Mapping ................................................................................ 244 10.9.3 POSIX Memory Protection ............................................................................... 244 10.9.4 POSIX Memory Locking .................................................................................. 244 10.10 Memory Mapping Facilities .......................................................................................... 245 10.10.1 POSIX Memory-Mapped Files ........................................................................ 247 10.10.2 POSIX Shared Memory Objects ...................................................................... 247 10.10.3 Anonymous Memory Mapping ...................................................................... 247 10.10.4 Device Memory Objects ................................................................................... 248 10.10.5 Shared Data Regions ......................................................................................... 249 10.11 Virtual Memory Management ..................................................................................... 249 10.11.1 Configuring Virtual Memory Management .................................................. 250 10.11.2 Managing Virtual Memory Programmatically ............................................. 251 Modifying Page States ...................................................................................... 252 Making Memory Non-Writable ...................................................................... 253 Invalidating Memory Pages ............................................................................ 255 Locking TLB Entries .......................................................................................... 255 Page Size Optimization .................................................................................... 255 Setting Page States in ISRs ............................................................................... 256 10.11.3 Troubleshooting ................................................................................................. 256 10.12 Additional Memory Protection Features ................................................................... 257 10.12.1 Configuring VxWorks for Additional Memory Protection ......................... 257 10.12.2 Stack Ov
er
run and Und
er
run Detection ........................................................ 258 10.12.3 Non-Executable Task Stack .............................................................................. 258 10.12.4 Text Segment Write Protection ........................................................................ 258 10.12.5 Exception Vector Table Write Protection ........................................................ 259 10.13 Memory
Er
ror Detection ................................................................................................ 259 10.13.1 Heap and Partition Memory Instrumentation .............................................. 259 10.13.2 Compil
er
Instrumentation: 32-Bit VxWorks .................................................. 264 VxWorks K
er
nel Programm
er
's Guide, 6.9 xiv 11 I/O System ................................................................................................... 269 11.1 Introduction ...................................................................................................................... 269 11.2 About the VxWorks I/O System ................................................................................... 270 Diff
er
ences Between VxWorks and Host System I/O ................................. 270 11.3 Configuring VxWorks With I/O Facilities .................................................................. 271 11.4 I/O Devices, Named Files, and File Systems ............................................................ 272 11.5 Remote File System Access From VxWorks ............................................................... 273 NFS File System Access from VxWorks ......................................................... 273 Non-NFS Network File System Access from VxWorks WIth FTP or RSH 273 11.6 Basic I/O ............................................................................................................................ 275 11.6.1 File Descriptors .................................................................................................. 275 File Descriptor Table ......................................................................................... 276 11.6.2 Standard Input, Standard Output, and Standard
Er
ror .............................. 276 11.6.3 Standard I/O Redirection ................................................................................ 276 Issues with Standard I/O Redirection ........................................................... 277 11.6.4 Open and Close ................................................................................................. 278 11.6.5 Create and Remove ........................................................................................... 280 11.6.6 Read and Write .................................................................................................. 281 11.6.7 File Truncation ................................................................................................... 281 11.6.8 I/O Control ........................................................................................................ 282 11.6.9 Pending on Multiple File Descriptors with select( ) ..................................... 282 11.6.10 POSIX File System Routines ............................................................................ 284 11.7 Standard I/O ..................................................................................................................... 285 11.7.1 Configuring VxWorks With Standard I/O .................................................... 285 11.7.2 About printf( ), sprintf( ), and scanf( ) ............................................................ 286 11.7.3 About Standard I/O and Buff
er
ing ................................................................ 286 11.7.4 About Standard Input, Standard Output, and Standard
Er
ror .................. 287 11.8 Oth
er
Formatted I/O ....................................................................................................... 287 11.8.1 Output in S
er
ial I/O Polled Mode: kprintf( ) ................................................ 287 Writing to Us
er
-Defined Storage Media With kprintf( ) and kputs( ) ....... 288 11.8.2 Additional Formatted I/O Routines ............................................................. 289 11.8.3 Message Logging ............................................................................................... 289 11.9 Asynchronous Input/Output ......................................................................................... 289 11.9.1 The POSIX AIO Routines ................................................................................. 290 Contents xv 11.9.2 AIO Control Block ............................................................................................. 291 11.9.3 Using AIO ........................................................................................................... 292 AIO with P
er
iodic Checks for Completion ................................................... 292 Alt
er
natives for Testing AIO Completion ..................................................... 294 12 Devices ........................................................................................................ 297 12.1 Introduction ...................................................................................................................... 297 12.2 About Devices in VxWorks ........................................................................................... 298 12.3 S
er
ial I/O Devices: T
er
minal and Pseudo-T
er
minal Devices .................................. 299 tty Options .......................................................................................................... 299 12.3.1 Raw Mode and Line Mode .............................................................................. 300 12.3.2 tty Special Charact
er
s ....................................................................................... 300 12.3.3 I/O Control Functions ...................................................................................... 301 12.4 Pipe Devices ..................................................................................................................... 302 12.5 Pseudo I/O Device ........................................................................................................... 302 12.5.1 I/O Control Functions ...................................................................................... 303 12.6 Null Devices .................................................................................................................... 303 12.7 Block Devices ................................................................................................................... 303 12.7.1 XBD RAM Disk .................................................................................................. 305 12.7.2 SCSI Driv
er
s ....................................................................................................... 306 Configuring SCSI Driv
er
s ................................................................................ 306 Structure of the SCSI Subsystem ..................................................................... 307 Booting and Initialization ................................................................................ 308 Device-Specific Configuration Options ......................................................... 308 SCSI Configuration Examples ......................................................................... 310 Troubleshooting ................................................................................................. 312 12.8 Extended Block Device Facility: XBD ......................................................................... 313 12.8.1 XBD Disk Partition Manag
er
........................................................................... 313 12.8.2 XBD Block Device Wrapp
er
............................................................................. 314 12.8.3 XBD TRFS Component ..................................................................................... 314 12.9 PCMCIA ............................................................................................................................ 315 12.10 P
er
iph
er
al Component Int
er
connect: PCI .................................................................. 315 12.11 Network File System (NFS) Devices ........................................................................... 315 12.11.1 I/O Control Functions for NFS Clients .......................................................... 316 12.12 Non-NFS Network Devices ........................................................................................... 317 VxWorks K
er
nel Programm
er
's Guide, 6.9 xvi 12.12.1 Creating Network Devices ............................................................................... 318 12.12.2 I/O Control Functions ...................................................................................... 318 12.13 Sockets ............................................................................................................................... 318 12.14 Int
er
nal I/O System Structure ....................................................................................... 319 12.14.1 Driv
er
s ................................................................................................................ 321 The Driv
er
Table and Installing Driv
er
s ........................................................ 322 Example of Installing a Driv
er
........................................................................ 322 12.14.2 Devices ................................................................................................................ 323 The Device List and Adding Devices ............................................................. 323 Example of Adding Devices ............................................................................ 324 Deleting Devices ................................................................................................ 324 12.14.3 File Descriptors .................................................................................................. 327 File Descriptor Table ......................................................................................... 327 Example of Opening a File ............................................................................... 327 Example of Reading Data from the File ......................................................... 330 Example of Closing a File ................................................................................. 331 Implementing select( ) ...................................................................................... 331 Cache Coh
er
ency ............................................................................................... 334 13 Local File Systems ..................................................................................... 339 13.1 Introduction ...................................................................................................................... 339 13.2 File System Monitor ...................................................................................................... 341 Device Ins
er
tion Events .................................................................................... 342 XBD Name Mapping Facility .......................................................................... 343 13.3 Virtual Root File System: VRFS ................................................................................... 343 13.4 Highly Reliable File System: HRFS ............................................................................ 345 13.4.1 Configuring VxWorks for HRFS ..................................................................... 345 13.4.2 Configuring HRFS ............................................................................................ 346 13.4.3 Creating an HRFS File System ....................................................................... 347 Ov
er
view
of HRFS File System Creation ....................................................... 347 HRFS File System Creation Steps ................................................................... 347 13.4.4 HRFS, ATA, and RAM Disk Examples .......................................................... 348 13.4.5 Optimizing HRFS P
er
formance ...................................................................... 353 13.4.6 Transactional Op
er
ations and Commit Policies ......................................... 353 Automatic Commit Policy ............................................................................... 353 High-Speed Commit Policy ............................................................................. 354 Mandatory Commits ......................................................................................... 354 Rollbacks ............................................................................................................. 354 Programmatically Initiating Commits ........................................................... 354 13.4.7 File Access Time Stamps .................................................................................. 355 Contents xvii 13.4.8 Maximum Numb
er
of Files and Directories ................................................. 355 13.4.9 Working with Directories ................................................................................. 355 Creating Subdirectories .................................................................................... 355 Removing Subdirectories ................................................................................. 356 Reading Directory Entries ................................................................................ 356 13.4.10 Working with Files ............................................................................................ 356 File I/O Routines ............................................................................................... 356 File Linking and Unlinking ............................................................................. 356 File P
er
missions ................................................................................................. 357 13.4.11 I/O Control Functions Supported by HRFS ................................................. 357 13.4.12 Crash Recov
er
y and Volume Consistency ..................................................... 358 Crash Recov
er
y .................................................................................................. 358 Consistency Checking ...................................................................................... 358 13.4.13 File Management and Full Devices ................................................................ 358 13.5 MS-DOS-Compatible File System: dosFs .................................................................. 359 13.5.1 Configuring VxWorks for dosFs ..................................................................... 360 13.5.2 Configuring dosFs ............................................................................................ 361 13.5.3 Creating a dosFs File System ........................................................................... 362 Ov
er
view
of dosFs File System Creation ....................................................... 362 dosFs File System Creation Steps ................................................................... 363 13.5.4 dosFs, ATA Disk, and RAM Disk Examples ................................................. 365 13.5.5 Optimizing dosFs P
er
formance ...................................................................... 369 13.5.6 Working with Volumes and Disks .................................................................. 370 Accessing Volume Configuration Information ............................................. 370 Synchronizing Volumes .................................................................................... 370 13.5.7 Working with Directories ................................................................................. 370 Creating Subdirectories .................................................................................... 370 Removing Subdirectories ................................................................................. 371 Reading Directory Entries ................................................................................ 371 13.5.8 Working with Files ............................................................................................ 371 File I/O Routines ............................................................................................... 371 File Attributes .................................................................................................... 371 13.5.9 Disk Space Allocation Options ........................................................................ 373 Choosing an Allocation Method ..................................................................... 374 Using Clust
er
Group Allocation ..................................................................... 374 Using Absolutely Contiguous Allocation ...................................................... 374 13.5.10 Crash Recov
er
y and Volume Consistency ..................................................... 376 13.5.11 I/O Control Functions Supported by dosFsLib ............................................ 376 13.5.12 Booting from a Local dosFs File System Using SCSI ................................... 378 13.6 Transaction-Based Reliable File System Support for dosFs: TRFS ....................... 380 VxWorks K
er
nel Programm
er
's Guide, 6.9 xviii 13.6.1 Configuring VxWorks With TRFS ................................................................... 380 13.6.2 Automatic Instantiation of TRFS .................................................................... 380 13.6.3 Formatting a Device for TRFS ......................................................................... 381 13.6.4 Using TRFS in Applications ............................................................................ 382 TRFS Code Examples ....................................................................................... 382 13.7 Raw File System: rawFs ................................................................................................. 383 13.7.1 Configuring VxWorks for rawFs ..................................................................... 383 13.7.2 Creating a rawFs File System .......................................................................... 383 13.7.3 Mounting rawFs Volumes ................................................................................ 384 13.7.4 rawFs File I/O ................................................................................................... 385 13.7.5 I/O Control Functions Supported by rawFsLib ........................................... 385 13.8 CD-ROM File System: cdromFs ................................................................................... 386 13.8.1 Configuring VxWorks for cdromFs ................................................................ 387 13.8.2 Creating and Using cdromFs ........................................................................... 387 13.8.3 I/O Control Functions Supported by cdromFsLib ...................................... 389 13.8.4 V
er
sion Numb
er
s ............................................................................................... 390 13.9 Read-Only Memory File System: ROMFS ................................................................. 390 13.9.1 Configuring VxWorks with ROMFS ............................................................... 391 13.9.2 Adding a ROMFS Directory and File Content to VxWorks ........................ 391 13.9.3 Accessing Files in ROMFS ............................................................................... 392 13.9.4 Using ROMFS to Start Applications Automatically .................................... 392 13.10 Target S
er
v
er
File System: TSFS ................................................................................... 392 Socket Support ................................................................................................... 393
Er
ror Handling .................................................................................................. 394 Configuring VxWorks for TSFS Use ............................................................... 394 Security Consid
er
ations ................................................................................... 394 Using the TSFS to Boot a Target ...................................................................... 395 14 Flash File System Support: TrueFFS ........................................................ 397 14.1 Introduction ...................................................................................................................... 397 14.2 Ov
er
view
of Implementation Steps ............................................................................ 398 14.3 Creating a VxWorks System with TrueFFS ................................................................ 400 14.3.1 Selecting an MTD .............................................................................................. 400 14.3.2 Identifying the Socket Driv
er
.......................................................................... 400 14.3.3 Configuring VxWorks with TrueFFS and File System ................................. 401 Including the Core TrueFFS Component ....................................................... 401 Including the MTD Component ...................................................................... 402 Contents xix Including the Translation Lay
er
Component ................................................ 402 Including the Socket Driv
er
............................................................................. 403 Including the XBD Wrapp
er
Component ...................................................... 403 Including File System Components ............................................................... 403 Including Utility Components ........................................................................ 403 14.3.4 Building the System .......................................................................................... 404 14.3.5 Formatting the Flash ......................................................................................... 404 Formatting With sysTffsFormat( ) .................................................................. 404 Formatting With tffsDevFormat( ) .................................................................. 405 14.3.6 Res
er
ving a Region in Flash for a Boot Image .............................................. 406 Res
er
ving a Fallow Region .............................................................................. 407 Writing the Boot Image to Flash ...................................................................... 408 14.3.7 Mounting the Drive .......................................................................................... 409 14.3.8 Creating a File System ...................................................................................... 409 14.3.9 Testing the Drive ............................................................................................... 410 14.4 Using TrueFFS Shell Commands ................................................................................. 410 14.5 Using TrueFFS With HRFS ............................................................................................
VxWorks
2,180
社区成员
2,916
社区内容
发帖
与我相关
我的任务
VxWorks
xworks是美国 Wind River System 公司( 以下简称风河公司 ,即 WRS 公司)推出的一个实时操作系统。
复制链接
扫一扫
分享
社区描述
xworks是美国 Wind River System 公司( 以下简称风河公司 ,即 WRS 公司)推出的一个实时操作系统。
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章