Arjan van de Ven
b193344145
Make sure to strdup() the ini file keys
2017-05-26 11:11:55 -07:00
Arjan van de Ven
59c63d8c40
Replace glib ini file parsing with nica ini file parsing
2017-05-26 11:11:55 -07:00
Victor Rodriguez
97768589d3
Improve README
...
Signed-off-by: Victor Rodriguez <victor.rodriguez.bahena@intel.com >
2017-05-11 15:51:20 -07:00
Patrick McCarty
7d3a9d2834
Release v1.12.0
...
This release introduces a new feature for the crash probe. It will now
collect source file and line number information for each frame in a
backtrace if the data is available.
Also, this release saw the beginning of migrating the code base to use
libnica instead of glib, with the goal of reducing memory footprint of
the telemetry daemon and probes. Future releases will convert more
existing glib usage to libnica.
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com >
v1.12.0
2017-05-11 13:19:41 -07:00
Patrick McCarty
0af684e94e
Fix bug in is_banned_path(); group conditionals
...
The checks in is_banned_path() for a path prefix not under /usr needed
to be connected with a logical AND, not OR, as implied by the recent
changes.
Also, use an explicit logical OR for the other two groups of
conditionals so that they are grouped similarly to the checks that
required an AND.
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com >
2017-05-11 12:55:33 -07:00
Patrick McCarty
51374db118
Remove more unused glib includes
...
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com >
2017-05-11 11:22:42 -07:00
Patrick McCarty
dfb40babaa
Remove unneeded glib.h include
...
telem-record-gen no longer depends on glib, so the include can be
removed.
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com >
2017-05-11 10:29:18 -07:00
Patrick McCarty
b7619e1a1c
Remove glib dependency for ASCII string check
...
As far as I can tell, the standard library doesn't have a function to
check for an ASCII string. Equivalently, we can iterate over each
character in the string, byte by byte, and verify that only 7-bit
characters are present.
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com >
2017-05-11 10:29:18 -07:00
Patrick McCarty
3be37cebb5
Use getopt_long() in telem-record-gen
...
One more binary was using GOptionContext: telem-record-gen. Convert it
to use getopt_long() as well.
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com >
2017-05-11 10:29:18 -07:00
Patrick McCarty
15a32b6346
Fix code style issues in journal.c
...
Run uncrustify again to catch further whitespace issues.
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com >
2017-05-11 10:29:18 -07:00
Patrick McCarty
e0e2aae341
Use getopt_long() in the crash probe
...
Continuing the removal of dependency on glib, switch to use
getopt_long() instead of the GOptionContext API for the crash probe.
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com >
2017-05-11 10:29:18 -07:00
Arjan van de Ven
4d1f6de3b5
replace the regexps with more simple tests
2017-05-11 09:19:41 -07:00
Patrick McCarty
f3a641b161
Use getopt_long() in the journal probe
...
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com >
2017-05-10 12:54:43 -07:00
Patrick McCarty
9018362ffb
Fix style issues missed by uncrustify
...
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com >
2017-05-10 12:39:48 -07:00
Patrick McCarty
eedcb88cb7
Run uncrustify
...
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com >
2017-05-10 12:07:44 -07:00
Patrick McCarty
2deeef65ad
Update path filter for uncrustify
...
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com >
2017-05-10 12:07:26 -07:00
Patrick McCarty
dab667eeea
Fix distcheck
...
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com >
2017-05-10 12:00:09 -07:00
Patrick McCarty
787102c4fb
Clean up makefile and header references for consistency
...
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com >
2017-05-10 11:58:55 -07:00
Arjan van de Ven
12d1c82650
Print file name / line number in backtrace
2017-05-10 11:27:52 -07:00
Arjan van de Ven
46d88d6315
more crash probe glib string removals
2017-05-10 11:27:52 -07:00
Arjan van de Ven
089183c9e0
remove some spurious glib includes
2017-05-10 11:27:52 -07:00
Arjan van de Ven
f354078d3d
convert the journal probe to getopt
2017-05-10 11:27:52 -07:00
Arjan van de Ven
db85aa9a18
stop using g_print
2017-05-10 11:27:52 -07:00
Arjan van de Ven
f5899c7ba6
convert more of the crash probe
2017-05-10 11:27:52 -07:00
Arjan van de Ven
657c8792d5
make the pstore probe use nica strings
2017-05-10 11:27:52 -07:00
Arjan van de Ven
365cfeee9a
convert the journal probe to nica strings
2017-05-10 11:27:52 -07:00
Arjan van de Ven
4957452f66
convert the crash probe to nica strings
2017-05-10 11:27:52 -07:00
Arjan van de Ven
e02e22f192
replace glib string operations with nica string operations
2017-05-10 11:27:52 -07:00
Patrick McCarty
60bbe963cb
Fix make check for Travis builds
...
The libcheck on Ubuntu is too old, so install a newer version to enable
make check.
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com >
2017-05-05 12:53:33 -07:00
Patrick McCarty
1ffc3a00c2
configure: add comment regarding minimum supported libcheck
...
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com >
2017-05-05 12:51:41 -07:00
Patrick McCarty
60edcdb165
Revert "don't be as picky about check"
...
This reverts commit aa4f9e3058 .
The oldest version of libcheck that supports TAP output is 0.9.12, so we
need to use >= 0.9.12.
2017-05-05 12:51:41 -07:00
Arjan van de Ven
bc12e6d5f7
the klog_scanner does not use glib.h
2017-05-05 12:18:42 -07:00
Arjan van de Ven
e9d29a4e7b
use isspace and isprint directly
2017-05-05 12:18:42 -07:00
Arjan van de Ven
6295f0f4dc
a gchar is just a char typedef
2017-05-05 12:18:42 -07:00
Arjan van de Ven
4cf3c7e8ac
a guint is just an uint32_t so lets use standard types
2017-05-05 12:18:42 -07:00
Arjan van de Ven
d9d957e532
make distcheck is b0rk
2017-05-05 16:51:44 +00:00
Arjan van de Ven
f88d646ae1
make check is b0rk
2017-05-05 16:49:39 +00:00
Arjan van de Ven
e0619807c9
drop flags the OS should provide
2017-05-05 16:47:01 +00:00
Arjan van de Ven
f07c9b168c
add libdw-dev
2017-05-05 16:42:50 +00:00
Arjan van de Ven
7333bc7968
add libelf-dev
2017-05-05 16:40:11 +00:00
Arjan van de Ven
aa4f9e3058
don't be as picky about check
2017-05-05 16:38:13 +00:00
Arjan van de Ven
6c36253351
add check
2017-05-05 16:35:56 +00:00
Arjan van de Ven
e78ca8b66f
avoid the stone age
2017-05-05 16:33:18 +00:00
Arjan van de Ven
a449e6cec1
add autoconf
2017-05-05 16:30:29 +00:00
Arjan van de Ven
5963f983cd
one more different package name
2017-05-05 16:27:21 +00:00
Arjan van de Ven
c65e58f696
resolve deps
2017-05-05 16:25:54 +00:00
Arjan van de Ven
1d5b2d0669
add first stab travis file
2017-05-05 16:21:36 +00:00
Patrick McCarty
356be6738f
Release v1.11.2
...
This release includes a couple of fixes for the man pages.
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com >
v1.11.2
2017-04-06 09:59:36 -07:00
Auke Kok
e73870b916
Fix wrong reference to the config file in man pages.
2017-04-06 09:57:50 -07:00
Auke Kok
c7e783f2b1
Add FILES section, explain static machine id file.
2017-04-06 09:57:50 -07:00