Printd - Red Hat ENTERPRISE LINUX 5.4 - SYSTEMTAP LANGUAGE Reference Manual

Systemtap language reference
Hide thumbs Also See for ENTERPRISE LINUX 5.4 - SYSTEMTAP LANGUAGE:
Table of Contents

Advertisement

Chapter 9. Predefined functions
printf("%3d: %1b%1b%1b\n", i, i, i-32, i-64)
exit()
}
This prints:
97: aA!
98: bB"
99: cC#
100: dD$
101: eE%
102: fF&
103: gG'
104: hH(
105: iI)
106: jJ*
107: kK+
108: lL,
109: mM-
Another example:
stap -e 'probe begin{printf("%b%b", 0xc0dedbad, \
0x12345678);exit()}' | hexdump -C
This prints:
00000000
ad db de c0 00 00 00 00
78 56 34 12 00 00 00 00
|........xV4.....|
00000010
Another example:
probe begin{
printf("%1b%1b%1blo %1b%1brld\n", 72,101,108,87,111)
exit()
}
This prints:
Hello World

9.1.5. printd

General syntax:
42

Advertisement

Table of Contents
loading

Table of Contents