From: Arnaldo Carvalho de Melo <acme@redhat.com>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: Kapileshwar Singh <kapileshwar.singh@arm.com>,
linux-kernel@vger.kernel.org, Namhyung Kim <namhyung@kernel.org>,
Javi Merino <javi.merino@arm.com>,
David Ahern <dsahern@gmail.com>, Jiri Olsa <jolsa@kernel.org>
Subject: Re: [PATCH v5] tools lib traceevent: str addresses in heterogeneous arch environments
Date: Tue, 22 Sep 2015 11:04:43 -0300 [thread overview]
Message-ID: <20150922140443.GC2580@redhat.com> (raw)
In-Reply-To: <20150922094618.2e730aa8@gandalf.local.home>
Em Tue, Sep 22, 2015 at 09:46:18AM -0400, Steven Rostedt escreveu:
> On Tue, 22 Sep 2015 14:22:03 +0100
> Kapileshwar Singh <kapileshwar.singh@arm.com> wrote:
>
> > if (!(field->flags & FIELD_IS_ARRAY) &&
> > field->size == pevent->long_size) {
> > - addr = *(unsigned long *)(data + field->offset);
> > +
> > + /* Handle heterogeneous recording and processing
> > + * architectures
> > + *
> > + * CASE I:
> > + * Traces recorded on 32-bit devices (32-bit
> > + * addressing) and processed on 64-bit devices:
> > + * In this case, only 32 bits should be read.
> > + *
> > + * CASE II:
> > + * Traces recorded on 64 bit devices and processed
> > + * on 32-bit devices:
> > + * In this case, 64 bits must be read.
>
> Probably should have added a comment about not caring about endianess
> and why, but that can be added later. This patch is good enough for now.
>
> Reviewed-by: Steven Rostedt <rostedt@goodmis.org>
>
> Arnaldo, want to pick this up?
Sure, I'm adding it to perf/core, i.e. for 4.4, or do you think this
needs to go into 4.3?
- Arnaldo
next prev parent reply other threads:[~2015-09-22 14:04 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-22 13:22 [PATCH v5] tools lib traceevent: str addresses in heterogeneous arch environments Kapileshwar Singh
2015-09-22 13:46 ` Steven Rostedt
2015-09-22 14:04 ` Arnaldo Carvalho de Melo [this message]
2015-09-22 14:19 ` Steven Rostedt
2015-09-22 14:37 ` Arnaldo Carvalho de Melo
2015-09-22 14:39 ` Kapileshwar Singh
2015-09-22 15:21 ` Steven Rostedt
2015-09-23 8:45 ` [tip:perf/core] tools lib traceevent: Fix string handling " tip-bot for Kapileshwar Singh
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=20150922140443.GC2580@redhat.com \
--to=acme@redhat.com \
--cc=dsahern@gmail.com \
--cc=javi.merino@arm.com \
--cc=jolsa@kernel.org \
--cc=kapileshwar.singh@arm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=namhyung@kernel.org \
--cc=rostedt@goodmis.org \
/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