Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1343323
| From | Steven Rostedt <rostedt@goodmis.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH RESEND 1/3] tracing/syscalls: Rename variable 'nr' to 'syscall_nr' |
| Date | 2016-02-25 18:10 +0100 |
| Message-ID | <r67Am-6XN-7@gated-at.bofh.it> (permalink) |
| References | <r661A-5NR-3@gated-at.bofh.it> <r66kW-5Wh-5@gated-at.bofh.it> <r67qG-6DX-17@gated-at.bofh.it> <r67Am-6XN-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, 25 Feb 2016 12:05:01 -0500 Steven Rostedt <rostedt@goodmis.org> wrote: > On Fri, 26 Feb 2016 01:53:47 +0900 > Taeung Song <treeze.taeung@gmail.com> wrote: > > > > > The underlying cause of this problem is not because of > > the python script. This problem have relevance to tracing/syscalls > > as below. > > > > # cat > > /sys/kernel/debug/tracing/events/syscalls/sys_enter_io_getevents/format > > name: sys_enter_io_getevents > > ID: 739 > > format: > > field:unsigned short common_type; offset:0;size:2;signed:0; > > field:unsigned char common_flags; offset:2;size:1;signed:0; > > field:unsigned char common_preempt_count; offset:3;size:1;signed:0; > > field:int common_pid; offset:4;size:4;signed:1; > > field:int nr; offset:8;size:4;signed:1; > > field:aio_context_t ctx_id; offset:16;size:8;signed:0; > > field:long min_nr; offset:24;size:8;signed:0; > > field:long nr; offset:32;size:8;signed:0; > > field:struct io_event * events; offset:40;size:8;signed:0; > > field:struct timespec * timeout; offset:48;size:8;signed:0; > > > > print fmt: "ctx_id: 0x%08lx, min_nr: 0x%08lx, nr: 0x%08lx, events: > > 0x%08lx, timeout: 0x%08lx", ((unsigned long)(REC->ctx_id)), ((unsigned > > long)(REC->min_nr)), ((unsigned long)(REC->nr)), ((unsigned > > long)(REC->events)), ((unsigned long)(REC->timeout)) > > > > > > As you see, there are duplicated variable name among fields. > > So I renamed the variable name 'nr' to 'syscall_nr' to avoid this > > duplication. As you know 'nr' in print_syscall_enter() mean > > system call number so, I changed 'nr' to 'syscall_nr'(IMHO). > > > > The above should have been in the change log. That makes much more > sense. > I'm a bit nervous about this change though. Because it is an ABI change. Hopefully there's no tools that parse the syscall tracepoints and expect to find a 'nr' in there. -- Steve
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH RESEND 1/3] tracing/syscalls: Rename variable 'nr' to 'syscall_nr' Taeung Song <treeze.taeung@gmail.com> - 2016-02-25 16:30 +0100
Re: [PATCH RESEND 1/3] tracing/syscalls: Rename variable 'nr' to 'syscall_nr' Steven Rostedt <rostedt@goodmis.org> - 2016-02-25 16:50 +0100
Re: [PATCH RESEND 1/3] tracing/syscalls: Rename variable 'nr' to 'syscall_nr' Taeung Song <treeze.taeung@gmail.com> - 2016-02-25 18:00 +0100
Re: [PATCH RESEND 1/3] tracing/syscalls: Rename variable 'nr' to 'syscall_nr' Steven Rostedt <rostedt@goodmis.org> - 2016-02-25 18:10 +0100
Re: [PATCH RESEND 1/3] tracing/syscalls: Rename variable 'nr' to 'syscall_nr' Taeung Song <treeze.taeung@gmail.com> - 2016-02-25 18:30 +0100
Re: [PATCH RESEND 1/3] tracing/syscalls: Rename variable 'nr' to 'syscall_nr' Steven Rostedt <rostedt@goodmis.org> - 2016-02-25 18:10 +0100
csiph-web