File: FAQ.md

package info (click to toggle)
snoopy 2.5.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,988 kB
  • sloc: ansic: 7,167; sh: 4,514; makefile: 1,095
file content (51 lines) | stat: -rw-r--r-- 1,819 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# F.A.Q. - Snoopy Command Logger



### Was legacy Snoopy faster than current implementation?

This test was performed with Snoopy 2.3.0.

We compared the following three implementations:
- current implementation, version 2.3.0, with enabled config file (missing), filtering, and with dynamic log message generation
- legacy Snoopy, version 1.9.0, where message is generated in single pass (no function calling)
- legacy Snoopy with output directly to console (to avoid syslog())

Results (loop with 2000 iterations, on Macbook Air 6.2 with i5-4250U):
- 2.3.0: 3.6s (with config file and filtering enabled)
- 2.3.0: 3.5s
- 1.9.0: 3.2s
- 1.9.0: 3.0s (output to console)

This 10% difference seems insignificant, at least for general workloads.
It also seems that forking is the most expensive operation, which is not unexpected.



### I see no Snoopy output after initial user login

Your user probably has LD_PRELOAD environmental variable set to something non-
empty in their profile script. Remove it, or add `libsnoopy.so` to LD_PRELOAD, like this (UNTESTED):

    export LD_PRELOAD="/path/to/libsnoopy.so /path/to/otherlib.so"



### How do I go about developing new data source/filter/output?

Consult the [HACKING-OVERVIEW.md](HACKING-OVERVIEW.md) document for more information.



### I want to contribute - how should I do it?

Contributions are welcome.
Consult [.github/CONTRIBUTING.md](../.github/CONTRIBUTING.md) for further information.



### I do not see any non-root Snoopy entries in my logs

If you have configured `file` output provider, make sure the target file has proper permissions set for writing into it by all users.
This usually means changing file permissions to world-writable `0666`, which is a fairly insecure setting.
You may want to reconfigure Snoopy to use `devlog` output instead.