From: matthieu.castet@parrot.com (Matthieu CASTET)
Subject: [ltt-dev] syscall id limited to 16 bits
Date: Fri, 14 Aug 2009 14:06:28 +0200 [thread overview]
Message-ID: <4A855344.106@parrot.com> (raw)
Hi,
in the ltt patch used for 2.6.27, syscall trace only report the syscall
id on 16 bits [1].
This is wrong. For example on arm, there are private arch syscall in the
range 0xf0000-0xfffff (for example set_tls).
For this syscall the kernel.syscall_entry trace get the id truncated.
Matthieu
[1] look at the (unsigned short) cast on id
+notrace void probe_syscall_entry(struct pt_regs *regs, long id)
+{
+ struct marker *marker;
+ struct serialize_long_short data;
+
+ data.f1 = instruction_pointer(regs);
+ data.f2 = (unsigned short)id;
+
+ marker = &GET_MARKER(kernel, syscall_entry);
+ ltt_specialized_trace(marker, marker->single.probe_private,
+ &data, serialize_sizeof(data), sizeof(long));
+}
next reply other threads:[~2009-08-14 12:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-14 12:06 Matthieu CASTET [this message]
2009-08-24 14:35 ` Mathieu Desnoyers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A855344.106@parrot.com \
--to=matthieu.castet@parrot.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox