[PATCH 0/5] get_scno is an unholy mess, make it less horrible

2011-08-22 Thread Denys Vlasenko
Currently, get_scno does *much* more than get syscall no. It checks for post-execve SIGTRAP. It checks for changes in personality. It retrieves params on entry and registers on exit. Worse still, it is different in different architectures: for example, for AVR32 regs are fetched in get_scno(),

[PATCH 1/5] Duplicate get_scno into identical get_scno_on_sysenter, get_scno_on_sysexit

2011-08-22 Thread Denys Vlasenko
On Mon, 2011-08-22 at 12:21 +0200, Denys Vlasenko wrote: 1. Duplicate get_scno into identical get_scno_on_sysenter, get_scno_on_sysexit functions. Call them in syscall enter and syscall exit, correspondingly. diff -d -urpN strace.0/defs.h strace.1/defs.h --- strace.0/defs.h 2011-08-21

[PATCH 2/5] Remove if (entering(tcp)) / if (exiting(tcp)) conditionals

2011-08-22 Thread Denys Vlasenko
On Mon, 2011-08-22 at 12:21 +0200, Denys Vlasenko wrote: 2. Remove if (entering(tcp)) / if (exiting(tcp)) conditionals from both functions, since now we know that they are always true or false there. diff -d -urpN strace.1/syscall.c strace.2/syscall.c --- strace.1/syscall.c 2011-08-22

[PATCH 3/5] Remove scno retrieval code in get_scno_on_sysexit

2011-08-22 Thread Denys Vlasenko
On Mon, 2011-08-22 at 12:21 +0200, Denys Vlasenko wrote: 3. Remove scno retrieval code in get_scno_on_sysexit, since we don't save it anyway. This is the first real logic change which should make strace faster: for example, on x64 ORIG_EAX is no longer read in each syscall exit. diff -d -urpN

[PATCH 4/5] On x86, EAX read on syscall entry is not necessary

2011-08-22 Thread Denys Vlasenko
On Mon, 2011-08-22 at 12:21 +0200, Denys Vlasenko wrote: 4. Another speedup: on x86, EAX read on syscall entry is also not necessary if we know that post-execve SIGTRAP is disabled by PTRACE_O_TRACEEXEC ptrace option. This patch (a) moves EAX retrieval from syscall_fixup to

[PATCH 5/5] Unify post-execve SIGTRAP check across all arches

2011-08-22 Thread Denys Vlasenko
On Mon, 2011-08-22 at 12:21 +0200, Denys Vlasenko wrote: 5. Move post-execve SIGTRAP from get_scno_on_sysenter (multitude of places on many architectures) to a single location in trace_syscall_entering. This loosens the logic for some arches, since many of them had additional checks such as

Etiqueta e Postura no Ambiente de Trabalho - É nesta semana!

2011-08-22 Thread Capacitare
Olá , Este programa não permite a visualização de mensagens formatadas (com cores, imagens e links), portanto solicitamos que você copie o texto abaixo, e cole no campo Endereço do seu navegador. http://emkt.capacitarerh.com.br/emkt/tracer/?1,547525,c1fe18de,1b0c Para garantir que nossas

[SPAM] 上司的得力助手strace-devel

2011-08-22 Thread gsnlh2r
strace-devel  您好! 高级秘书、助理和行政人员技能提高训练营 ━━━ 【课.程.收.益】 ★提高基行政工作能力,逐步成为合格的企业管理层 ★掌握行政管理中的各种技巧,提升行政风险管理技能 ★运用专业的测评工具,了解自己的行为风格并掌握针对性的改善方法 ★学会快速判断其它人行为风格并与之有效沟通的技巧,提升办事效率 ★熟悉办公事务的处理技巧:通过现场练习,现场点评,并提供足够多的范本给你参照 ★支持上司,成为上司的得力助手 ★掌握高级的秘书技能,在公文写作等方面独挡一面