summaryrefslogtreecommitdiff
path: root/syslog.c
Commit message (Collapse)AuthorAgeFilesLines
* Move source files into src subdirectoryDmitry V. Levin2021-02-031-71/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/Makefile.am: New file. * src/.gitignore: Likewise. * scno.am: Move into src subdirectory. * scno.head: Likewise. * strace-graph: Likewise. * strace-log-merge: Likewise. * linux/: Likewise. * types/: Likewise. * xlat/: Likewise. * *.awk: Likewise. * *.c: Likewise. * *.h: Likewise. * *.sh: Likewise. * .gitignore: Update. * Makefile.am: Update. * bootstrap: Update. * configure.ac: Update. * debian/rules: Update. * debian/strace-udeb.install: Update. * debian/strace.examples: Update. * debian/strace.install: Update. * debian/strace64.install: Update. * m4/gen_bpf_attr_m4.sh: Update. * m4/mpers.m4: Update. * tests/Makefile.am: Update. * tests/init.sh: Update. * tests/legacy_syscall_info.test: Update. * tests/strace-log-merge-error.test: Update. * tests/strace-log-merge-suffix.test: Update.
* Change my email addressDmitry V. Levin2020-12-311-1/+1
|
* syslog: decode log level in SYSLOG_ACTION_CONSOLE_LEVEL commandEugene Syromyatnikov2019-08-051-0/+10
| | | | | | | * xlat/syslog_console_levels.in: New file. * syslog.c: Include "xlat/syslog_console_levels.h". (SYS_FUNC(syslog)): Add SYSLOG_ACTION_CONSOLE_LEVEL case. * tests/syslog.c: Add checks.
* syslog: fix argument printingEugene Syromyatnikov2019-08-051-4/+5
| | | | | | | | * syslog.c (SYS_FUNC(syslog)): Store conversion to int of tcp->u_arg[2] in len; print address using printaddr64 (as syslog doesn't use compat for x32), and third argument as int (as it has this type in the syscall handler). * tests/syslog.c: Add checks.
* syslog: do not print bufp and len for commands that ignore themEugene Syromyatnikov2019-08-051-2/+16
| | | | | | | | | | * syslog.c (SYS_FUNC(syslog)): Defer printing of comma after the first argument to the specific command handlers, return RVAL_DECODED without additional printing for SYSLOG_ACTION_CLOSE, SYSLOG_ACTION_OPEN, SYSLOG_ACTION_CLEAR, SYSLOG_ACTION_CONSOLE_OFF, SYSLOG_ACTION_CONSOLE_ON, SYSLOG_ACTION_SIZE_UNREAD, SYSLOG_ACTION_SIZE_BUFFER. * tests/syslog.c: Add checks.
* syslog: fix switch statement indentationEugene Syromyatnikov2019-08-051-10/+10
| | | | | * syslog.c (SYS_FUNC(syslog)): Decrease indentation level of case clauses in the switch statement.
* syslog: print syslog command with verbose style, as it is not in UAPIEugene Syromyatnikov2019-08-051-1/+2
| | | | | | * syslog.c (SYS_FUNC(syslog)): Print syslog_action_type using XLAT_STYLE_VERBOSE. * tests/syslog.c: Update expected output.
* syslog: move constant definitions to xlatEugene Syromyatnikov2018-12-261-14/+0
| | | | | * syslog.c (enum): Remove. * xlat/syslog_action_type.in: Add fallback definitions.
* Update copyright headersDmitry V. Levin2018-12-241-1/+1
|
* Change the license of strace to LGPL-2.1-or-laterDmitry V. Levin2018-12-101-21/+1
| | | | | | | | strace is now provided under the terms of the GNU Lesser General Public License version 2.1 or later, see COPYING for more details. strace test suite is now provided under the terms of the GNU General Public License version 2 or later, see tests/COPYING for more details.
* Add copyright headersEugene Syromyatnikov2017-05-221-0/+1
|
* Automatically replace PRI_kr[dux] with PRI_kl[dux]Dmitry V. Levin2016-12-261-1/+1
| | | | | | | | | | Remove temporary macros created for transition from long to kernel_ulong_t. Automatically replace PRI_kr[dux] with PRI_kl[dux] using $ git grep -l 'PRI_kr[dux]' | xargs sed -ri 's/PRI_kr([dux])/PRI_kl\1/g' * defs.h (PRI_krd, PRI_kru, PRI_krx): Remove. All users updated.
* Print kernel_ureg_t and kernel_scno_t using dedicated format stringsDmitry V. Levin2016-12-261-1/+1
| | | | | | | | Prepare for the change of kernel_ureg_t and kernel_scno_t from unsigned long to kernel_ulong_t. * defs.h (PRI_krd, PRI_kru, PRI_krx): New temporary macros. All users updated.
* printstr: rename to printstrn, add printstr as a thin wrapperDmitry V. Levin2016-12-251-1/+1
| | | | | | | | As about half of all printstr uses cases are invocations with the last argument set to -1, create a dedicated function for this use case. * defs.h (printstr): Rename to printstrn. All callers updated. (printstr): New static inline function. All callers updated.
* Add copyright headers to some files which lack themDmitry V. Levin2015-12-171-0/+27
| | | | | | | | | | Before this change, all files that exist since 20th century had copyright headers, while most files that appeared later didn't. This change fixes the inconsistency by adding missing copyright headers. It doesn't mean that copyright headers became maintained. In my view, git history provides much better information on this subject and is much more accurate than copyright headers.
* syslog.c: make use of RVAL_DECODEDDmitry V. Levin2015-07-161-5/+3
| | | | * syslog.c (sys_syslog): Update for RVAL_DECODED.
* syslog.c: use printaddrDmitry V. Levin2015-07-161-3/+3
| | | | * syslog.c (sys_syslog): Use printaddr.
* Declare syscall parsers using SYS_FUNC macroDmitry V. Levin2015-04-071-2/+1
| | | | | | | | | | | | | | Introduce SYS_FUNC macro to declare and define all syscall parsers. * Makefile.am (BUILT_SOURCES, CLEANFILES): Add sys_func.h. (sys_func.h): New rule. * defs.h (SYS_FUNC_NAME, SYS_FUNC): New macros. * linux/syscall.h: Include "sys_func.h". [NEED_UID16_PARSERS]: Use SYS_FUNC to declare uid16 syscall parsers. Remove other declarations. * linux/alpha/syscallent.h (160, 161): Add sys_ prefix to osf_statfs and osf_fstatfs syscall parsers. * *.c: Use SYS_FUNC to define syscall parsers.
* Move syslog parser to a separate fileDmitry V. Levin2014-12-041-0/+54
* syslog.c: New file. * Makefile.am (strace_SOURCES): Add it. * system.c: Move sys_syslog and related code to syslog.c.