KDB Kernel Debugger and Kdb Command

Total Page:16

File Type:pdf, Size:1020Kb

KDB Kernel Debugger and Kdb Command AIX Version 7.2 KDB kernel debugger and kdb command IBM Note Before using this information and the product it supports, read the information in “Notices” on page 323. This edition applies to AIX Version 7.2 and to all subsequent releases and modifications until otherwise indicated in new editions. © Copyright International Business Machines Corporation 2015. US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Contents About this document.............................................................................................ix Highlighting..................................................................................................................................................ix Case-sensitivity in AIX................................................................................................................................ ix ISO 9000......................................................................................................................................................ix KDB kernel debugger and kdb command................................................................ 1 KDB kernel debugger................................................................................................................................... 1 Invoking the KDB kernel debugger........................................................................................................ 2 The kdb command..................................................................................................................................3 The debugger prompt.................................................................................................................................. 5 Online help..............................................................................................................................................5 Registers................................................................................................................................................. 6 Expressions.............................................................................................................................................8 User-defined variables........................................................................................................................... 9 Command line editing.............................................................................................................................9 Multiprocessor systems....................................................................................................................... 10 Viewing and modifying global data........................................................................................................... 10 Method 1: Using the symbol name...................................................................................................... 10 Method 2: Using the TOC and map file................................................................................................ 11 Method 3: Using the map file............................................................................................................... 13 Viewing stack traces.................................................................................................................................. 14 Stack frame format...............................................................................................................................14 Verbose stack output........................................................................................................................... 16 Setting breakpoints....................................................................................................................................17 Method 1: Using the lke subcommand................................................................................................ 17 Method 2: Using the nm subcommand................................................................................................18 Method 3: Using the kmid pointer....................................................................................................... 19 Method 4: Using the devsw subcommand.......................................................................................... 20 Subcommand lists..................................................................................................................................... 21 Alphabetic list.......................................................................................................................................21 Task category list..................................................................................................................................34 End user subcommands............................................................................................................................ 36 h subcommand.....................................................................................................................................36 set subcommand..................................................................................................................................37 dbgopt subcommand........................................................................................................................... 40 varset subcommand.............................................................................................................................41 varlist subcommand.............................................................................................................................42 varrm subcommand............................................................................................................................. 42 his subcommand.................................................................................................................................. 43 debug subcommand.............................................................................................................................43 ! subcommand......................................................................................................................................44 Leaving kdb subcommands....................................................................................................................... 45 e subcommand.....................................................................................................................................45 reboot subcommand............................................................................................................................ 46 halt subcommand.................................................................................................................................47 Changing context subcommands.............................................................................................................. 47 sw subcommand.................................................................................................................................. 47 cpu subcommand.................................................................................................................................49 ctx subcommand..................................................................................................................................50 runcpu subcommand........................................................................................................................... 52 iii Calculator and converter subcommands.................................................................................................. 53 hcal and dcal subcommands............................................................................................................... 53 conv subcommand............................................................................................................................... 54 CPU start and stop subcommands............................................................................................................ 55 start and stop subcommands.............................................................................................................. 55 Basic display subcommands..................................................................................................................... 56 f subcommand......................................................................................................................................56 status subcommand.............................................................................................................................58 stat subcommand.................................................................................................................................59 pr subcommand................................................................................................................................... 60 symptom subcommand........................................................................................................................63 Memory register display and decode subcommands...............................................................................64 d, dw, dd, dp, dpw, and dpd subcommands........................................................................................ 64 dc and dpc subcommands..................................................................................................................
Recommended publications
  • Is Ja Dialect of APL? Reported by Jonathan Barman Eugene Mcdonnell - the Question Is Irrelevant
    VICTOR Vol.8 No.2 convert the noun back to verb and as a result various interesting control structures can be created. The verbal nouns thus formed can be put into arrays and some of the benefits that various people have suggested might arise from arrays of functions can be obtained. A design goal is to make compilation possible without limiting the expressive power of J. APL Technology of Computer Simulation, by A Boozin and I Popselov reported by Sylvia Camacho Both authors of this paper are academic mathematicians and their use of APL is just where one might expect it to be: in modelling linear differential equations and stochastic Markovian processes. Questions put showed that they first used APL 15 years ago on terminals to what was described as 'a big old computer'. Currently they use APL*PLUS/PC. They have set up an environment in which they can split the screen and display data graphically with some zoom facilities. This environment can be used in conjunction with raw APL while exploring the results of a model, or can be used in conjunction with data derived from APL or some other source. In fact it is often used by Pascal programmers. Most recently they have been setting up economic models to try to come to terms with the consequences of decentralisation and privatisation. They use both Roman and Cyrillic alphabets. Panel: Is Ja Dialect of APL? reported by Jonathan Barman Eugene McDonnell - The question is irrelevant. Surely proponents of J would not be thrown out of the APL community? Garth Foster - J is quite definitely not APL.
    [Show full text]
  • An APL Subset Interpreter for a New Chip Set / by James Hoskin
    An APL Subset Interpreter for a New Chip Set James Hoskin MSc (Physics), University of Calgary A THESIS SUBMI 1 TED IN L'ARTlAl f Ul FILLMENT OF THE REQUIKEMENTS FOR THE DEGREE OF MASTER OF SCIFNCE In the School of Cornput~ngSc~enre " James Hosk~n1987 SIMON FRASER UNIVERSITY May 1987 All rights reserved This thesis may not be reproduced in whole or in part. by photocopy or other means w~thoutthe permission of the author Approval Title of Thesis: An APL Subset Interpreter for a New Chip Set Name. James D Hoskin Degree: Master of ~iience Examining Committee. Chairperson. Dr. W. S. Luk Dr. R. F. Hobson Senior Supervisor Dr J& Weinkam,"I/, Dr. R. D. Cameron External Examiner Dr. Carl McCrosky External Examiner April 28, 1987 Date Approved: PART IAL COPYR l GHT L ICENSE I hereby grant to Simon Fraser University the right to lend my thesis, project or extended essay (the title of which is shown below) to users of the Simon Fraser University Library, and to make partial or single copies only for such users or in response to a request from the library of any other university, or other educational institution, on its own behalf or for one of its users. I further agree that permission for multiple copying of this work for scholarly purposes may be granted by me or the Dean of Graduate Studies. It is understood that copying or publication of this work for financial gain shall not be allowed without my written permission. Title of Thesis/Project/Extended Essay -- - Author: (signature) (date) Abstract The APL language provides a powerful set of functions and operators to handle dynamic array data.
    [Show full text]
  • Compendium of Technical White Papers
    COMPENDIUM OF TECHNICAL WHITE PAPERS Compendium of Technical White Papers from Kx Technical Whitepaper Contents Machine Learning 1. Machine Learning in kdb+: kNN classification and pattern recognition with q ................................ 2 2. An Introduction to Neural Networks with kdb+ .......................................................................... 16 Development Insight 3. Compression in kdb+ ................................................................................................................. 36 4. Kdb+ and Websockets ............................................................................................................... 52 5. C API for kdb+ ............................................................................................................................ 76 6. Efficient Use of Adverbs ........................................................................................................... 112 Optimization Techniques 7. Multi-threading in kdb+: Performance Optimizations and Use Cases ......................................... 134 8. Kdb+ tick Profiling for Throughput Optimization ....................................................................... 152 9. Columnar Database and Query Optimization ............................................................................ 166 Solutions 10. Multi-Partitioned kdb+ Databases: An Equity Options Case Study ............................................. 192 11. Surveillance Technologies to Effectively Monitor Algo and High Frequency Trading ..................
    [Show full text]
  • A Lambda Calculus for Transfinite Arrays
    1 A Lambda Calculus for Transfinite Arrays Unifying Arrays and Streams ARTJOMS ŠINKAROVS, Heriot-Watt University SVEN-BODO SCHOLZ, Heriot-Watt University Array programming languages allow for concise and generic formulations of numerical algorithms, thereby providing a huge potential for program optimisation such as fusion, parallelisation, etc. One of the restric- tions that these languages typically have is that the number of elements in every array has to be finite. This means that implementing streaming algorithms in such languages requires new types of data structures, with operations that are not immediately compatible with existing array operations or compiler optimisations. In this paper, we propose a design for a functional language that natively supports infinite arrays. We use ordinal numbers to introduce the notion of infinity in shapes and indices. By doing so, we obtain a calculus that naturally extends existing array calculi and, at the same time, allows for recursive specifications as they are found in stream- and list-based settings. Furthermore, the main language construct that can be thought of as an n-fold cons operator gives rise to expressing transfinite recursion in data, something that lists or streams usually do not support. This makes it possible to treat the proposed calculus as a unifying theory of arrays, lists and streams. We give an operational semantics of the proposed language, discuss design choices that we have made, and demonstrate its expressibility with several examples. We also demonstrate that the proposed formalism preserves a number of well-known universal equalities from array/list/stream theories, and discuss implementation-related challenges.
    [Show full text]
  • KDB+ Quick Guide
    KKDDBB++ -- QQUUIICCKK GGUUIIDDEE http://www.tutorialspoint.com/kdbplus/kdbplus_quick_guide.htm Copyright © tutorialspoint.com KKDDBB++ -- OOVVEERRVVIIEEWW This is a complete quide to kdb+ from kx systems, aimed primarily at those learning independently. kdb+, introduced in 2003, is the new generation of the kdb database which is designed to capture, analyze, compare, and store data. A kdb+ system contains the following two components − KDB+ − the database kdatabaseplus Q − the programming language for working with kdb+ Both kdb+ and q are written in k programming language (same as q but less readable). Background Kdb+/q originated as an obscure academic language but over the years, it has gradually improved its user friendliness. APL 1964, AProgrammingLanguage A+ 1988, modifiedAPLbyArthurWhitney K 1993, crispversionofA + , developedbyA. Whitney Kdb 1998, in − memorycolumn − baseddb Kdb+/q 2003, q language – more readable version of k Why and Where to Use KDB+ Why? − If you need a single solution for real-time data with analytics, then you should consider kdb+. Kdb+ stores database as ordinary native files, so it does not have any special needs regarding hardware and storage architecture. It is worth pointing out that the database is just a set of files, so your administrative work won’t be difficult. Where to use KDB+? − It’s easy to count which investment banks are NOT using kdb+ as most of them are using currently or planning to switch from conventional databases to kdb+. As the volume of data is increasing day by day, we need a system that can handle huge volumes of data. KDB+ fulfills this requirement. KDB+ not only stores an enormous amount of data but also analyzes it in real time.
    [Show full text]
  • Generating an APL Font
    TUGboat, Volume 8 (1987), No. 3 275 Generating an APL Font a typewriter-like typeface with fixed spacing; the Aarno Hohti and Okko Kanerva same approach for representing TEX input was University of Helsinki adopted by Knuth in the wbook. The verbatim macros have often been used for importing screen ABSTRACT. The APL language is well known for its or paper outputs into 'I@X documents; some people peculiar symbols which have inhibited the use of this misuse them for an easy construction of tables etc. language in many programming environments. Making In verbatim, the typewriter mode is entered by the APL documents of good quality has been difficult and control sequence \ begint t - that mode is ended by expensive. We describe here a simple way how to use METAFONT to generate an APL font for Tk,X by using \endtt. In the same vein, we could enter the APL existing font definitions as far as possible. mode by the control sequence \beginapl, and to end it by \endapl. However, it is more convenient Introduction to augment verbatim with aplstyle so that it This note describes an interesting exercise in using can be used with several different typewriter-like METAFONT to produce new typefaces by combining fonts. (The verbatim macros can be found in the letters from standard fonts. As we know, the APL Wbook, p. 421.) Since Q (the at sign) is used as language [6] of Kenneth Iverson has never gained the escape character inside verbatim mode, our the popularity it deserves largely because of its code might (and in fact does) look as follows: strange symbol set.
    [Show full text]
  • Glossary of Mathematical Symbols
    Glossary of mathematical symbols A mathematical symbol is a figure or a combination of figures that is used to represent a mathematical object, an action on mathematical objects, a relation between mathematical objects, or for structuring the other symbols that occur in a formula. As formulas are entirely constituted with symbols of various types, many symbols are needed for expressing all mathematics. The most basic symbols are the decimal digits (0, 1, 2, 3, 4, 5, 6, 7, 8, 9), and the letters of the Latin alphabet. The decimal digits are used for representing numbers through the Hindu–Arabic numeral system. Historically, upper-case letters were used for representing points in geometry, and lower-case letters were used for variables and constants. Letters are used for representing many other sort of mathematical objects. As the number of these sorts has dramatically increased in modern mathematics, the Greek alphabet and some Hebrew letters are also used. In mathematical formulas, the standard typeface is italic type for Latin letters and lower-case Greek letters, and upright type for upper case Greek letters. For having more symbols, other typefaces are also used, mainly boldface , script typeface (the lower-case script face is rarely used because of the possible confusion with the standard face), German fraktur , and blackboard bold (the other letters are rarely used in this face, or their use is unconventional). The use of Latin and Greek letters as symbols for denoting mathematical objects is not described in this article. For such uses, see Variable (mathematics) and List of mathematical constants. However, some symbols that are described here have the same shape as the letter from which they are derived, such as and .
    [Show full text]
  • Why I'm Still Using
    Why I’m Still Using APL Jeffrey Shallit School of Computer Science University of Waterloo Waterloo, ON N2L 3G1 Canada www.cs.uwaterloo.ca/~shallit [email protected] What is APL? • a system of mathematical notation invented by Ken Iverson and popularized in his book A Programming Language published in 1962 • a functional programming language based on this notation, using an exotic character set (including overstruck characters) and right-to- left evaluation order • a programming environment with support for defining, executing, and debugging functions and procedures Frequency Distribution APL and Me • worked at the IBM Philadelphia Scientific Center in 1973 with Ken Iverson, Adin Falkoff, Don Orth, Howard Smith, Eugene McDonnell, Richard Lathwell, George Mezei, Joey Tuttle, Paul Berry, and many others Communicating APL and Me • worked as APL programmer for the Yardley Group under Alan Snyder from 1976 to 1979, with Scott Bentley, Dave Jochman, Greg Bentley, and Dave Ehret APL and Me • worked from 1974 to 1975 at Uni-Coll in Philadelphia as APL consultant • worked from 1975 to 1979 as APL consultant at Princeton • worked at I. P. Sharp in Palo Alto in 1979 with McDonnell, Berry, Tuttle, and others • published papers at APL 80, APL 81, APL 82, APL 83 and various issues of APL Quote-Quad • taught APL in short courses at Berkeley from 1979 to 1983 and served as APL Press representative • taught APL at the University of Chicago from 1983 to 1988 Why I’m Still Using APL Because • I don’t need to master arcane “ritual incantations” to do things
    [Show full text]
  • Programming Language) 1 APL (Programming Language)
    APL (programming language) 1 APL (programming language) APL Paradigm array, functional, structured, modular Appeared in 1964 Designed by Kenneth E. Iverson Developer Kenneth E. Iverson Typing discipline dynamic Major implementations IBM APL2, Dyalog APL, APL2000, Sharp APL, APLX Dialects A+, Dyalog APL, APLNext Influenced by mathematical notation [1] [2] [3] [4] Influenced J, K, Mathematica, MATLAB, Nial, PPL, Q APL (named after the book A Programming Language)[5] is an interactive array-oriented language and integrated development environment which is available from a number of commercial and non-commercial vendors[6] and for most computer platforms.[7] It is based on a mathematical notation developed by Kenneth E. Iverson. APL has a combination of unique and relatively uncommon features that appeal to programmers and make it a productive programming language:[8] • It is concise, using symbols rather than words and applying functions to entire arrays without using explicit loops. • It is solution focused, emphasizing the expression of algorithms independently of machine architecture or operating system. • It has just one simple, consistent, and recursive precedence rule: the right argument of a function is the result of the entire expression to its right. • It facilitates problem solving at a high level of abstraction. APL is used in scientific,[9] actuarial,[8] statistical,[10] and financial applications where it is used by practitioners for their own work and by programmers to develop commercial applications. It was an important influence on the development of spreadsheets, functional programming,[11] and computer math packages.[3] It has also inspired several other programming languages.[1] [2] [4] It is also associated with rapid and lightweight development projects in volatile business environments.[12] History The first incarnation of what was later to be the APL programming language was published and formalized in A Programming Language,[5] a book describing a notation invented in 1957 by Kenneth E.
    [Show full text]
  • Nie Sprachlos Winterrätsel
    04/2014 Auflösung des Winterrätsels Forum Nie sprachlos Winterrätsel 80 Nur wer sich in der Programmiersprachen-Historie auskennt, hatte eine Chance bei den Fragen des Winterrät- sels aus Ausgabe 02/ 14. Diesmal gibt’s neben den kniffligen Fragen auch die Antworten – und den Namen des Rätselkönigs 2014, der neben dem Ruhm auch einen Videorecorder für den Raspberry Pi einstreicht. Nils Magnus www.linux-magazin.de Allein um eine zumindest größtenteils richtige Lösung für die 20 Auf- ten Code formulieren hilft. Die in Listing 1 per Ocaml kodierte gaben des Winterrätsels aus dem Linux-Magazin 02/ 2014 zustande Sortierfunktion, die auf beliebigen Typen funktioniert, ist ein zu bekommen, bedarf es weit überdurchschnittlicher Kenntnisse schönes Beispiel dafür. der Programmiersprachen-Geschichte. So gesehen darf sich jeder Teilnehmer als Siegertyp betrachten. Der Legende nach motivierte den ursprünglichen Autor zur Gewinner des Sachpreises – Videorecorder-Equipment für den Namenswahl seiner Skriptsprache ein Gleichnis aus dem Matt- Rasp berry Pi von DVB Link [1] – konnte jedoch nur einer der teilneh- 3 häus-Evangelium. Darin sucht ein Händler nach Preziosen. Was menden Hobbyhistoriker werden, der Kasten „Lösung und Gewinner“ durchschreitet im selben Bibeltext das Wappentier der Sprache? lüftet das Geheimnis. Der Artikel selbst repetiert die Fragen und Der Urvater Abraham des Perl-Universums, Larry Wall, ist ka- beantwortet sie korrekt – wie gewohnt ausführlich. lifornischer Programmierer und bekennender Christ. Er beruft sich bei der Namenswahl seiner Skriptsprache gerne auf Mat- Akronyme sind für Programmiersprachen durchaus beliebt, re- thäus 13, 46: „Als er eine besonders wertvolle Perle fand, ver- kursive allemal. Welche Sprache erfand ein Mann mit dänischem kaufte er al les, was er besaß, und kaufte sie.“ Inspiriert vom 1 Pass fürs World Wide Web? Umschlag ei nes frühen Perl-Buches reüssierte das Kamel zum Obwohl er heute in den Vereinigten Staaten lebt, ist Rasmus Sinnbild für Perl.
    [Show full text]
  • Dyalog at 25
    Dyalog at 25 A special supplement to Vector Dyalog at 25 Dyalog at 25: A special supplement to Vector Published September 2008 Copyright © 2008 Dyalog Ltd Dyalog at 25 Table of Contents First Quarter ......................................................................................... 1 How we got here ................................................................................... 3 Dyadic Systems ............................................................................. 5 Dyalog (Europe) Ltd ..................................................................... 10 Writing the interpreter .................................................................. 12 Going to the show ........................................................................ 17 Ports on call ................................................................................ 19 The disappearing future ................................................................ 26 Living with Lynwood ................................................................... 29 On the road again ........................................................................ 38 Dyalog’s new face ........................................................................ 40 The ducks ................................................................................... 44 Sixty four bits .............................................................................. 45 Parting company ......................................................................... 45 The coming of the consortium .......................................................
    [Show full text]
  • MCM70 Installation Guide.Pdf
    World's first portable lull-service APL computer. World wide distribution/ service. NOV 7 1975 MCM/70 INSTALLATION GUIDE Incorporating: MCM/70 Installation Procedures MCM/70 Printer/Plotter MCM/APL Extended Features Documentation MCM/APL and APL/360 Differences and System Watch-outs • MCM/70 User's Guide Errata and Appendices \ MCM/70 INSTALLATION PROCEDURES MCM/70 Upon receipt of the MCM/70, carefully inspect for any damages which may have been sustained in transit. Notify MCM and file a claim with the carrier if there is any such damage. All equipment is carefully inspected and tested before shipped out. A check to ensure that all options have been installed within the MCM/70 should be made. The model number on the back plate of the unit describes all options contained within it. The model number consists of three digits followed by two optional letters. The first digit should always be a 7. The second digit describes the amount of memory installed, increments of 2K. The third digit depicts the number of tape drives installed in the unit. In addition, if the letters EF also appear in the model number, it designates that the unit is equipped with the extended I/0 features (ie. 782EF is an SK 2 cassette machine with extended I/0). INITIAL TURN ON PROCEDURE The MCM/70 is equipped with integral rechargable batteries used in the event of power fail. Upon receipt, the unit should be plugged into an AC outlet, the red button on the rear panel depressed and allowed to stay plugged in, unused, for approximately one hour.
    [Show full text]