Visit Our UNIX and Linux User Community

Linux and UNIX Man Pages

Test Your Knowledge in Computers #118
Difficulty: Easy
A Unix-like OS is the one that works like Unix systems, however, Unix-like system do not necessarily conform to the Single UNIX Specification (SUS) or POSIX (Portable Operating System Interface) standards.
True or False?
Linux & Unix Commands - Search Man Pages

trace-cmd-hist(1) [centos man page]

TRACE-CMD-HIST(1)														 TRACE-CMD-HIST(1)

trace-cmd-hist - show histogram of events in trace.dat file SYNOPSIS
trace-cmd hist [OPTIONS][input-file] DESCRIPTION
The trace-cmd(1) hist displays a histogram form from the trace.dat file. Instead of showing the events as they were ordered, it creates a histogram that can be displayed per task or for all tasks where the most common events appear first. It uses the function tracer and call stacks that it finds to try to put together a call graph of the events. OPTIONS
-i input-file By default, trace-cmd hist will read the file trace.dat. But the -i option open up the given input-file instead. Note, the input file may also be specified as the last item on the command line. -P To compact all events and show the call graphs by ignoring tasks and different PIDs, add the -P to do so. Instead of showing the task name, it will group all chains together and show "<all pids>". SEE ALSO
trace-cmd(1), trace-cmd-record(1), trace-cmd-report(1), trace-cmd-start(1), trace-cmd-stop(1), trace-cmd-extract(1), trace-cmd-reset(1), trace-cmd-split(1), trace-cmd-listen(1) AUTHOR
Written by Steven Rostedt, <[1]> RESOURCES
git:// COPYING
Copyright (C) 2010 Red Hat, Inc. Free use of this software is granted under the terms of the GNU Public License (GPL). NOTES
1. 06/11/2014 TRACE-CMD-HIST(1)

Check Out this Related Man Page


trace-cmd-extract - extract out the data from the Ftrace Linux tracer. SYNOPSIS
trace-cmd extract [OPTIONS] DESCRIPTION
The trace-cmd(1) extract is usually used after trace-cmd-start(1) and trace-cmd-stop(1). It can be used after the Ftrace tracer has been started manually through the Ftrace pseudo file system. The extract command creates a trace.dat file that can be used by trace-cmd-report(1) to read from. It reads the kernel internal ring buffer to produce the trace.dat file. OPTIONS
-p plugin Although extract does not start any traces, some of the plugins require just reading the output in ASCII format. These are the latency tracers, since the latency tracers have a separate internal buffer. The plugin option is therefore only necessary for the wakeup, wakeup-rt, irqsoff, preemptoff and preemptirqsoff plugins. With out this option, the extract command will extract from the internal Ftrace buffers. -O option If a latency tracer is being extracted, and the -p option is used, then there are some Ftrace options that can change the format. This will update those options before extracting. To see the list of options see trace-cmd-list. To enable an option, write its name, to disable the option append the characters no to it. For example: noprint-parent will disable the print-parent option that prints the parent function in printing a function event. -o outputfile By default, the extract command will create a trace.dat file. This option will change where the file is written to. SEE ALSO
trace-cmd(1), trace-cmd-record(1), trace-cmd-report(1), trace-cmd-start(1), trace-cmd-stop(1), trace-cmd-reset(1), trace-cmd-split(1), trace-cmd-list(1), trace-cmd-listen(1) AUTHOR
Written by Steven Rostedt, <[1]> RESOURCES
git:// COPYING
Copyright (C) 2010 Red Hat, Inc. Free use of this software is granted under the terms of the GNU Public License (GPL). NOTES
1. 06/11/2014 TRACE-CMD-EXTRACT(1)

15 More Discussions You Might Find Interesting

1. Programming

Debugging Pro C Programs

Dear All, I am debugging a pro c executable and I want to trace the variables. Using dbx I cant trace local variables. Please let me know how I can do a breakpoint and trace of Pro C programs. Regards, Ramesh (5 Replies)
Discussion started by: rameshvmenon
5 Replies

2. UNIX for Dummies Questions & Answers

Illegal characters in Servername / Path

Hi there. I wonder if anybody can help me. I am very new to this and a bit out of my depth. I have a .cmd file which sets various environmental variables for me. When I input a server name that does not contains dots (.) in the name it works fine. As soon as I place in a server name... (5 Replies)
Discussion started by: goodjuju
5 Replies

3. HP-UX

How to trace a user

on HP-Unix how can i trace user for example "xxx999" ? (4 Replies)
Discussion started by: salhoub
4 Replies

4. Shell Programming and Scripting

set -x not working

Hi, even after i am setting the trace on(set -x), trace is not printed. can you please tell me what is the error. below is the code & output. Thanks in advance, Harish ------------------------------------------------- ------------------------------------------------- #!... (5 Replies)
Discussion started by: harish.madu
5 Replies

5. AIX

Which command can trace what I have done on aix?

I remember there is a command can trace what I have done on aix. such as when I run smitty user to add a new user, run any command on aix, install some application software on aix, just like trace every step and every screen out to a file. I forget what command is, does anyone know it? (6 Replies)
Discussion started by: rainbow_bean
6 Replies

6. Shell Programming and Scripting

tail command not show on screen

Hi, I'm moniroting duplicate text with unix command (tail -f trace75747 | grep 'duplicate'), but it showed many lines then it stop show trace information although trace information in this file trace75747 always got. What should I do? I look forward to hearing from you. THANKS! (10 Replies)
Discussion started by: seyha_moth
10 Replies

7. Programming

how to call c executable inside c program??

hi guys i have only basic knowledge of c so guys plz help me ..... i want 2 call c executable which requires file name as argument and i need to modify file contents before calling that executable now my question is how can i call this c executable inside another c program with arguments ?? i... (9 Replies)
Discussion started by: zedex
9 Replies

8. Shell Programming and Scripting

extracting desired value from cmd o/p

Hi I m using vxassist cmd to get avaialbe space in DG o/p is like this, wat I need is only numeric value of the o/p , I have a solution is anyone can provide better x1# vxassist -g appdg1 maxsize Maximum volume size: 90406912 (44144Mb) I need only 44144 value command I m using rite... (7 Replies)
Discussion started by: tarunn.dubeyy
7 Replies

9. Shell Programming and Scripting

Help with filtering trace file through grep

Hi, I am using NS2 and i need to filter a trace file (part of which is shown below): - 33.91576 2 3 tcp 1040 ------- 1 0.0 4.0 1115 2258 r 33.918907 4 3 ack 40 ------- 1 4.0 0.0 1107 2272 + 33.918907 3 2 ack 40 ------- 1 4.0 0.0 1107 2272 - 33.918907 3 2 ... (5 Replies)
Discussion started by: saqibshah
5 Replies

10. Shell Programming and Scripting

Passing varibles as a string argument ?

For example test="teststring" cmd=$1 $cmd For some reason I'm NOT seeing "teststring" when I type: ./ "echo $test" Any ideas on how to get around this? I've tried commands like: ./ "echo $($test)" ./ "echo '$test'" And many variations to no... (6 Replies)
Discussion started by: secops
6 Replies

11. UNIX for Dummies Questions & Answers

Help with the find cmd

Hello, I'm having a trouble with the find cmd. I would like to find all the java versions on my systems. I have solaris 9 & 10 RHEL and SUSIE. java -version doesn't give all the versions on the server. So I am trying to use the find command to find them all find / -name java I would... (7 Replies)
Discussion started by: bitlord
7 Replies

12. UNIX for Dummies Questions & Answers

[Solved] History cmd

When using the history cmd it appears to be limited to the last 16 lines. Is it possible to increase this limit? (6 Replies)
Discussion started by: nosuchluck
6 Replies

13. Linux

Search a file with specified pattern

May I know how to search for a file whose name is embedded with 3007 but it shouldn't begin or end with 3007. For ex. : 3008ab3007cd1007. (10 Replies)
Discussion started by: ravisingh
10 Replies

14. Shell Programming and Scripting

Line count of trace files for 24 period

Hi, Using solaris 10 5.10 o/s I am learning awk as I work here on the job. What I need to do is isolate the trace file for the last 24 hours. After that I need to open those trace files and search for 'TNS-|ORA-' message from each one. These trace files MAY HAVE an occurance of them. I... (5 Replies)
Discussion started by: bdby
5 Replies

15. UNIX for Beginners Questions & Answers

Some trace file to track timings of a process

I will initiate a process from Server1 and the flow is as follow Server1 --> Web server --> Application server --> DB Server Note all seperate unix servers. Now I need to put a trace for that process to track the timings from each server. Like the below trace should be there: ... (5 Replies)
Discussion started by: saraperu
5 Replies

Featured Tech Videos