Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

Commit 89c62aa

Browse files
committed
First Commit
0 parents  commit 89c62aa

File tree

105 files changed

+15978
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+15978
-0
lines changed

.gitignore

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
Makefile
2+
*.log
3+
*.swp
4+
/*.tar.bz2
5+
/*.tar.gz
6+
/*.tar.xz
7+
*.la
8+
*.lo
9+
*.o
10+
*~
11+
Makefile.in
12+
aclocal.m4
13+
config.*
14+
configure
15+
autom4te.cache
16+
compile
17+
install-sh
18+
missing
19+
ltmain.sh
20+
depcomp
21+
stamp-*
22+
libtool
23+
tap-driver.sh
24+
test-driver
25+
.deps
26+
.libs
27+
build-aux/m4/libtool.m4
28+
build-aux/m4/lt~obsolete.m4
29+
build-aux/m4/ltoptions.m4
30+
build-aux/m4/ltsugar.m4
31+
build-aux/m4/ltversion.m4
32+
.dirstamp
33+
*.trs
34+
/cscope.*
35+
/tags
36+
telemd
37+
autoscan.log
38+
configure.scan
39+
tprobe
40+
hprobe
41+
crashprobe
42+
journalprobe
43+
telem-record-gen
44+
klogscanner
45+
oopsprobe
46+
pstoreclean
47+
pstoreprobe
48+
make.out
49+
types_c.taghl
50+
src/recomp.sh
51+
src/*.so
52+
src/gcc.out
53+
tests/demo
54+
tests/check_config
55+
tests/check_daemon
56+
tests/check_libtelemetry
57+
tests/check_probes
58+
src/data/*.path
59+
src/data/*.service
60+
src/data/*.socket
61+
src/data/telemetrics.conf
62+
src/data/telemetrics-dirs.conf
63+
src/data/libtelemetry.pc
64+
src/data/40-crash-probe.conf

AUTHORS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Archana Shinde <archana.m.shinde@intel.com>
2+
Patrick McCarty <patrick.mccarty@intel.com>
3+
Rob Nesius <robert.a.nesius@intel.com>
4+
Gabrielle N. Beyer <gabrielle.n.beyer@intel.com>
5+
Pam Leonard <pam.leonard@intel.com>

CODING-STYLE

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
Indentation
2+
-----------
3+
telemetrics-client uses spaces for indentation (no tabs). To help enforce this
4+
rule, all source files provide modelines; if your editor does not support
5+
modelines, configure your editor accordingly.
6+
7+
Line length
8+
-----------
9+
Wherever possible, try to limit line length to 80 characters.
10+
11+
Coding Style
12+
------------
13+
- Function declarations and invocations should include no space between the
14+
function name and the open parenthesis:
15+
16+
spool_max_size_config();
17+
18+
- All other usages of parentheses in code should have one intervening space:
19+
20+
if (spool_size == -1) {
21+
...
22+
}
23+
24+
- To distinguish function definitions from other top-level constructs, add the
25+
opening curly bracket on its own line:
26+
27+
void spool_record(char *headers[], char *body)
28+
{
29+
...
30+
}
31+
32+
- All other usages of curly brackets in code should include the opening curly
33+
bracket at the end of the line which opens the block:
34+
35+
for (i = 0; i < NUM_HEADERS; i++) {
36+
...
37+
}
38+
39+
- if statements should *always* use curly brackets, even when each clause only
40+
contains a single statement. This is a safeguard to ensure future changes to
41+
an if statement are not buggy due to forgetting to add the curly brackets
42+
when needed.
43+
44+
if (ret == -1) {
45+
...
46+
}
47+
48+
- Comments that span more than one line should use the following style:
49+
50+
/* This comment
51+
* spans more
52+
* than one
53+
* line.
54+
*/
55+
56+
- For single-line comments, use either of the following forms:
57+
58+
/* single line comment 1 */
59+
60+
// single line comment 2
61+
62+
- To make type casts stand out more, include no space between the cast and the
63+
variable, etc. to cast:
64+
65+
GString **foo = (GString **)bar;
66+
67+
- Whenever arithmetic operators are used, always include one space before and
68+
after each operator:
69+
70+
size = size - offset + 1;
71+
72+
- For pointer variable declarations, pointer dereferences, functions that return
73+
a pointer, typecasts to a pointer variable, and other related constructs;
74+
include a single space between the type and '*', and no space between the '*'
75+
and the following variable, function name, etc. The purpose here is to
76+
distinguish pointer usage versus arithmetic usage:
77+
78+
char *payload;

0 commit comments

Comments
 (0)