summaryrefslogtreecommitdiff
path: root/rtc.c
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Automatically replace kernel_(scno|ureg)_t with kernel_ulong_tDmitry V. Levin2016-12-261-4/+4
| | | | | | | | | | | | | Remove temporary types created for transition from long to kernel_ulong_t. Automatically replace kernel_scno_t and kernel_ureg_t with kernel_ulong_t using $ git grep -El 'kernel_(scno|ureg)_t' | xargs sed -ri 's/kernel_(scno|ureg)_t/kernel_ulong_t/g' * kernel_types.h (kernel_scno_t, kernel_ureg_t): 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.
* rtc: change type of ioctl 3rd argument from long to kernel_ureg_tDmitry V. Levin2016-12-251-5/+5
| | | | | | * rtc.c (decode_rtc_time, decode_rtc_wkalrm, decode_rtc_pll_info): Change addr type from long to kernel_ureg_t. (rtc_ioctl): Change arg type from long to kernel_ureg_t.
* Mpersify RTC_* ioctl parserDmitry V. Levin2016-05-251-5/+12
| | | | | | | * defs.h (rtc_ioctl): Remove. * rtc.c: Mpersify struct rtc_pll_info and ioctl numbers. (rtc_ioctl): Mpersify. * NEWS: Mention this enhancement.
* rtc.c: fix decoding of struct rtc_wkalrmDmitry V. Levin2016-05-251-1/+1
| | | | * rtc.c (decode_rtc_wkalrm): Print field name of struct rtc_wkalrm.time.
* rtc.c: do not print argument of ioctls that have no argumentsDmitry V. Levin2016-05-251-0/+13
| | | | | * rtc.c (rtc_ioctl): Do not print argument of RTC_{A,U,P,W}IE_{ON,OFF} and RTC_VL_CLR ioctls.
* rtc.c: decode RTC_PLL_GET and RTC_PLL_SETDmitry V. Levin2016-05-251-0/+20
| | | | * rtc.c (rtc_ioctl): Decode RTC_PLL_GET and RTC_PLL_SET
* rtc.c: optimize decoding of paired ioctlsDmitry V. Levin2016-05-251-9/+7
| | | | | * rtc.c (rtc_ioctl): Optimize decoding of RTC_ALM_READ/RTC_ALM_SET, RTC_RD_TIME/RTC_SET_TIME, and RTC_WKALM_RD/RTC_WKALM_SET ioctl pairs.
* Fix printing tracee's long integersDmitry V. Levin2015-08-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace ambiguous printnum_long that used to fetch native long integers from tracee's memory with printnum_ptr, printnum_slong, and printnum_ulong that fetch tracee's pointer, signed long, and unsigned long integers. * defs.h (printnum_long, printpair_long): Remove prototypes. (printnum_int64, printpair_int64): Remove macros, declare functions unconditionally. [SUPPORTED_PERSONALITIES > 1 && SIZEOF_LONG > 4] (printnum_long_int): New prototype. (printnum_ptr, printnum_slong, printnum_ulong): New macros. * aio.c (sys_io_setup): Use printnum_ulong. * block.c (block_ioctl): Use printnum_slong and printnum_ulong. * get_robust_list.c (sys_get_robust_list): Use printnum_ptr and printnum_ulong. * io.c (print_off_t): Remove. (sys_sendfile): Use printnum_ulong. * ipc.c (sys_semctl): Use printnum_ptr. * prctl.c (sys_prctl): Likewise. * process.c (sys_ptrace): Likewise. * rtc.c (rtc_ioctl): Use printnum_ulong. * util.c (printnum_long, printpair_long): Remove. (printnum_int64, printpair_int64): Define unconditionally. [SUPPORTED_PERSONALITIES > 1 && SIZEOF_LONG > 4] (printnum_long_int): New function. Signed-off-by: Dmitry V. Levin <ldv@altlinux.org> Signed-off-by: Elvira Khabirova <lineprinter0@gmail.com>
* rtc.c: enhance rtc ioctl parserDmitry V. Levin2015-07-091-47/+48
| | | | | | | | | * rtc.c: Update for RVAL_DECODED. (print_rtc): Rename to print_rtc_time. (decode_rtc_time, decode_rtc_wkalrm): New functions. (rtc_ioctl): Use them. [RTC_VL_READ]: Decode RTC_VL_READ. Use printnum_long for RTC_IRQP_READ and RTC_EPOCH_READ decoding.
* time.c: move rtc ioctl parser to a separate fileDmitry V. Levin2015-07-051-0/+115
* rtc.c: new file * Makefile.am (strace_SOURCES): Add it. * time.c (print_rtc, rtc_ioctl): Move to rtc.c.