Skip to content

Commit d731ef6

Browse files
committed
initial commit (2.1b2)
0 parents  commit d731ef6

File tree

14 files changed

+6809
-0
lines changed

14 files changed

+6809
-0
lines changed

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# build executables
2+
hcat
3+
trpr
4+
5+
# OS generated files #
6+
.DS_Store
7+
.DS_Store?
8+
._*
9+
.Spotlight-V100
10+
.Trashes
11+
ehthumbs.db
12+
Thumbs.db

Hcat.dsp

Lines changed: 100 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

LICENSE

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/*********************************************************************
2+
*
3+
* AUTHORIZATION TO USE AND DISTRIBUTE
4+
*
5+
* Redistribution and use in source and binary forms, with or without
6+
* modification, are permitted provided that:
7+
*
8+
* (1) source code distributions retain this paragraph in its entirety,
9+
*
10+
* (2) distributions including binary code include this paragraph in
11+
* its entirety in the documentation or other materials provided
12+
* with the distribution.
13+
*
14+
* "This product includes software written and developed
15+
* by Code 5520 of the Naval Research Laboratory (NRL)."
16+
*
17+
* The name of NRL, the name(s) of NRL employee(s), or any entity
18+
* of the United States Government may not be used to endorse or
19+
* promote products derived from this software, nor does the
20+
* inclusion of the NRL written and developed software directly or
21+
* indirectly suggest NRL or United States Government endorsement
22+
* of this product.
23+
*
24+
* THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
25+
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
26+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
27+
*
28+
********************************************************************/

Makefile.linux

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
all: trpr hcat
2+
3+
trpr: trpr.cpp
4+
g++ -g -o trpr trpr.cpp -lm
5+
6+
hcat: hcat.cpp
7+
g++ -g -o hcat hcat.cpp -lm
8+
9+
clean:
10+
rm -f trpr hcat

README.md

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
TRace Plot Realtime (trpr) Distribution (2.1b2)
2+
3+
OVERVIEW:
4+
5+
This directory contains the source code and documentation
6+
for the "trpr" program which analyzes trace files, provides
7+
statistics and histograms and allows for graphical display of
8+
analytical results. Trpr supports trace (log) files produced
9+
by the following programs:
10+
11+
tcpdump (using tcpdump's hexadecimal (-x) output)
12+
13+
mgen (NRL's "Multi-generator" message generation program)
14+
15+
ns-2 (The Berkeley/ISI network simulation tool.
16+
17+
"Trpr" has filter options and can display plots for different
18+
"flows" of data (defined by protocol type, source, and
19+
destination). "Trpr" provides built-in support for display
20+
of graphical data using the "gnuplot" plotting program, but
21+
its output may also be plotted using other graphing tools.
22+
23+
24+
FILES:
25+
26+
README.TXT - this file.
27+
28+
trpr.cpp - C++ source code for the "trpr" program
29+
30+
trpr.html - "Trpr" User's Guide.
31+
32+
hcat.cpp - C++ source code for "hcat", the histogram
33+
concatenation program.
34+
35+
TO BUILD:
36+
37+
g++ -o trpr trpr.cpp -lm
38+
39+
g++ -o hcat hcat.cpp -lm
40+
41+
OR: "make -f Makefile.linux"
42+
43+
HCAT Usage:
44+
45+
The Histogram Concatenator ("hcat") is useful for post-processing
46+
the histogram output produced by "trpr". "hcat" can be used to
47+
combine multiple histograms and to retrieve some summary statistics
48+
from the histogram data.
49+
50+
Usage:
51+
52+
hcat [normalize] [percent [<rangeMin>:]<rangeMax>] file1 [file2 file3 ...]
53+
54+
Options:
55+
56+
normalize - The minimum bin is adjusted to correspond to zero. Other
57+
bins are correspondingly linearly adjusted.
58+
59+
percent [<rangeMin>:]<rangeMax> - Calculates the percentage of data
60+
points lying in the specified range.
61+
62+
The <files> are expected to contain histogram data in pairs of data in the
63+
order of minimum bin to maximum bin, with the first value of the pair
64+
specifying the bin and the second value specifying the number of data
65+
points for that histogram bin. Lines beginning with '#' are ignored as
66+
comments.
67+
68+
69+
IPv6 NOTES:
70+
71+
TRPR IPv6 support is still a bit "kludgy". I plan to re-write TRPR to use my
72+
"Protolib" stuff to leverage those address-independent classes and to better
73+
support TRPR cross-platform portability. Meanwhile, some notes:
74+
75+
1) For MGEN IPv6 flows, you can (and may have) to use abbreviated IPv6 addresses
76+
in your flow descriptions provided on the command-line.
77+
78+
2) For tcpdump file analysis, note that full (non-abbreviated) IPv6 address
79+
syntax MUST be used.

Trpr.dsp

Lines changed: 102 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Trpr.dsw

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
Microsoft Developer Studio Workspace File, Format Version 6.00
2+
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
3+
4+
###############################################################################
5+
6+
Project: "Hcat"=.\Hcat.dsp - Package Owner=<4>
7+
8+
Package=<5>
9+
{{{
10+
}}}
11+
12+
Package=<4>
13+
{{{
14+
}}}
15+
16+
###############################################################################
17+
18+
Project: "Trpr"=.\Trpr.dsp - Package Owner=<4>
19+
20+
Package=<5>
21+
{{{
22+
}}}
23+
24+
Package=<4>
25+
{{{
26+
}}}
27+
28+
###############################################################################
29+
30+
Global:
31+
32+
Package=<5>
33+
{{{
34+
}}}
35+
36+
Package=<3>
37+
{{{
38+
}}}
39+
40+
###############################################################################
41+

Trpr.opt

52.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)