Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1222937

Re: [PATCH v2 0/6] perf: Introduce extended syscall error reporting

From Alexander Shishkin <alexander.shishkin@linux.intel.com>
Newsgroups linux.kernel
Subject Re: [PATCH v2 0/6] perf: Introduce extended syscall error reporting
Date 2015-09-11 18:20 +0200
Message-ID <q7zdo-6M4-7@gated-at.bofh.it> (permalink)
References (6 earlier) <q1D0l-71b-7@gated-at.bofh.it> <q1DjI-7nv-11@gated-at.bofh.it> <q1DjI-7nv-9@gated-at.bofh.it> <q1Mdk-38r-11@gated-at.bofh.it> <q1PXB-8w3-37@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Arnaldo Carvalho de Melo <acme@kernel.org> writes:

> Em Wed, Aug 26, 2015 at 07:56:47PM +0300, Alexander Shishkin escreveu:
>> So I hacked stuff a bit [1] to accomodate some of the above
>> ideas. The below diff shows how these ideas integrate with perf. The
>> rest is in my github tree.
>> 
>>  - this exterr implementation allows its users to add arbitrary
>>  information to the  call site structures and also pretty print them on
>>  the way out; in the example, perf stores perf_event_attr field name
>>  that is the source of trouble; it's a string rather than offsetof(),
>>  because half of our event attribute is a bit field;
>>  - the "way out" doesn't have to be syscall return path (although in the
>>  example it is);
>>  - userspace can fetch the extended error reports via prctl() like you
>>  suggested above;
>>  - error codes are still passed around in the [-EXT_ERRNO..-MAX_ERRNO]
>>  range until they are passed to userspace (which is where ext_err_code()
>>  converts them back to traditional errno.h values).
>
> Hey, can we see the builtin-record.c patch please?

Should be on the way to your inbox.

Cheers,
--
Alex
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [PATCH v2 0/6] perf: Introduce extended syscall error reporting Alexander Shishkin <alexander.shishkin@linux.intel.com> - 2015-09-11 18:20 +0200

csiph-web