Skip to contentSkip to conversation

perf tools: Exit recording if events have non matching sample type

PATCH In review Jiri Olsa 4 participants 13 messages Sep 29, 2011 – Oct 21, 2011 perf events

lore
Share & tools
lore

Jiri Olsa

author
#0 lore raw

PATCH 1/1 perf tools: Exit recording if events have non matching sample type

The event processing relies on all events having the same sample_type.

This is being checked when the session is being opened read only. It also needs to be checked when we do record, since events could be read during processing build IDs at the end of the record command.

If we process events with different sample_type the processing might skip some events or hang.

Following command hangs on my setup:
./perf record -o perf.data -e ext4:ext4_mb_new_group_pa \
-e LLC-loads -- date '+%F'

because hardware and tracepoint events have different sample type.

With the patch applied the record command displays "Non matching sample_type" message and exits.

---
 tools/perf/builtin-record.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
tools/perf/builtin-record.c +6 -0
index f4c3fbe..71e2c4e 100644
@@ -832,6 +832,12 @@ int cmd_record(int argc, const char **argv, const char *prefix __used)
 		goto out_symbol_exit;
 	}
 
+	if (!perf_evlist__valid_sample_type(evsel_list)) {
+		pr_err("Non matching sample_type\n");
+		err = -EINVAL;
+		goto out_symbol_exit;
+	}
+
 	if (target_pid != -1)
 		target_tid = target_pid;
 
Signature · 1 line
1.7.4
#1 lore raw

Em Thu, Sep 29, 2011 at 06:01:08PM +0200, Jiri Olsa escreveu:

Quoted 9 lines

The event processing relies on all events having the same sample_type.

This is being checked when the session is being opened read only. It also needs to be checked when we do record, since events could be read during processing build IDs at the end of the record command.

If we process events with different sample_type the processing might skip some events or hang.

Quoted 8 lines

Following command hangs on my setup:

  ./perf record -o perf.data -e ext4:ext4_mb_new_group_pa \
   -e LLC-loads -- date '+%F'

because hardware and tracepoint events have different sample type.

With the patch applied the record command displays "Non matching sample_type" message and exits.

That is way too cryptic :-\

What is that makes the sample type not match in this case? Can we make it match instead?

This is something to be properly fixed by _allowing_ non matching sample types, the evsel/evlist abstractions are getting we close but not there yet, multiple files in a perf.data/ directory are needed.

Till then can you check if we can make it match or else just say that the mix of events is not yet supported, please collect them in different sessions or something along those lines?

- Arnaldo

#2 lore raw
Quoted 21 lines · Arnaldo Carvalho de Melo

Em Thu, Sep 29, 2011 at 06:01:08PM +0200, Jiri Olsa escreveu:

Quoted 9 lines

The event processing relies on all events having the same sample_type.

This is being checked when the session is being opened read only. It also needs to be checked when we do record, since events could be read during processing build IDs at the end of the record command.

If we process events with different sample_type the processing might skip some events or hang.

Quoted 8 lines

Following command hangs on my setup:

  ./perf record -o perf.data -e ext4:ext4_mb_new_group_pa \
   -e LLC-loads -- date '+%F'

because hardware and tracepoint events have different sample type.

With the patch applied the record command displays "Non matching sample_type" message and exits.

That is way too cryptic :-\

Quoted 8 lines

What is that makes the sample type not match in this case? Can we make it match instead?

This is something to be properly fixed by _allowing_ non matching sample types, the evsel/evlist abstractions are getting we close but not there yet, multiple files in a perf.data/ directory are needed.

From what I can see sample_type has to be the same for all samples:

https://lkml.org/lkml/2011/8/15/6

author
#3 lore raw
In reply to Arnaldo Carvalho de Melo
Quoted 28 lines · Arnaldo Carvalho de Melo

Em Thu, Sep 29, 2011 at 06:01:08PM +0200, Jiri Olsa escreveu:

Quoted 9 lines

The event processing relies on all events having the same sample_type.

This is being checked when the session is being opened read only. It also needs to be checked when we do record, since events could be read during processing build IDs at the end of the record command.

If we process events with different sample_type the processing might skip some events or hang.

Quoted 8 lines

Following command hangs on my setup:

  ./perf record -o perf.data -e ext4:ext4_mb_new_group_pa \
   -e LLC-loads -- date '+%F'

because hardware and tracepoint events have different sample type.

With the patch applied the record command displays "Non matching sample_type" message and exits.

That is way too cryptic :-\

What is that makes the sample type not match in this case? Can we make it match instead?

This is something to be properly fixed by _allowing_ non matching sample types, the evsel/evlist abstractions are getting we close but not there yet, multiple files in a perf.data/ directory are needed.

Quoted 5 lines

Till then can you check if we can make it match or else just say that the mix of events is not yet supported, please collect them in different sessions or something along those lines?

- Arnaldo

hi,
thanks for comments..
I just was this got in the tip tree git://tesla.tglx.de/git/linux-2.6-tip

perf tools: Exit record if events have non matching sample type commit 6f9a4869e15de8af2fd715af876bc3e6b00757a7

Author: Jiri Olsa <[email protected]>
Date:   Thu Sep 29 19:49:50 2011 +0200

I've read the email trail.. I'll check the sources and try to come up with something.. ;)

thanks,
jirka

#4 lore raw

Em Mon, Oct 03, 2011 at 12:22:35PM +0200, Jiri Olsa escreveu:

Quoted 38 lines · Arnaldo Carvalho de Melo
Quoted 28 lines

Em Thu, Sep 29, 2011 at 06:01:08PM +0200, Jiri Olsa escreveu:

Quoted 9 lines

The event processing relies on all events having the same sample_type.

This is being checked when the session is being opened read only. It also needs to be checked when we do record, since events could be read during processing build IDs at the end of the record command.

If we process events with different sample_type the processing might skip some events or hang.

Quoted 8 lines

Following command hangs on my setup:

  ./perf record -o perf.data -e ext4:ext4_mb_new_group_pa \
   -e LLC-loads -- date '+%F'

because hardware and tracepoint events have different sample type.

With the patch applied the record command displays "Non matching sample_type" message and exits.

That is way too cryptic :-\

What is that makes the sample type not match in this case? Can we make it match instead?

This is something to be properly fixed by _allowing_ non matching sample types, the evsel/evlist abstractions are getting we close but not there yet, multiple files in a perf.data/ directory are needed.

Quoted 5 lines

Till then can you check if we can make it match or else just say that the mix of events is not yet supported, please collect them in different sessions or something along those lines?

- Arnaldo

hi,
thanks for comments..
I just was this got in the tip tree git://tesla.tglx.de/git/linux-2.6-tip

Quoted 7 lines

perf tools: Exit record if events have non matching sample type commit 6f9a4869e15de8af2fd715af876bc3e6b00757a7

Author: Jiri Olsa <[email protected]>
Date:   Thu Sep 29 19:49:50 2011 +0200

I've read the email trail.. I'll check the sources and try to come up with something.. ;)

Couldn't understand, will check if the patch was already applied, if so, why bother commenting, right? :-)

- Arnaldo

author
#5 lore raw
Quoted 44 lines · Arnaldo Carvalho de Melo

Em Mon, Oct 03, 2011 at 12:22:35PM +0200, Jiri Olsa escreveu:

Quoted 43 lines · Arnaldo Carvalho de Melo
Quoted 28 lines

Em Thu, Sep 29, 2011 at 06:01:08PM +0200, Jiri Olsa escreveu:

Quoted 9 lines

The event processing relies on all events having the same sample_type.

This is being checked when the session is being opened read only. It also needs to be checked when we do record, since events could be read during processing build IDs at the end of the record command.

If we process events with different sample_type the processing might skip some events or hang.

Quoted 8 lines

Following command hangs on my setup:

  ./perf record -o perf.data -e ext4:ext4_mb_new_group_pa \
   -e LLC-loads -- date '+%F'

because hardware and tracepoint events have different sample type.

With the patch applied the record command displays "Non matching sample_type" message and exits.

That is way too cryptic :-\

What is that makes the sample type not match in this case? Can we make it match instead?

This is something to be properly fixed by _allowing_ non matching sample types, the evsel/evlist abstractions are getting we close but not there yet, multiple files in a perf.data/ directory are needed.

Quoted 5 lines

Till then can you check if we can make it match or else just say that the mix of events is not yet supported, please collect them in different sessions or something along those lines?

- Arnaldo

hi,
thanks for comments..
I just was this got in the tip tree git://tesla.tglx.de/git/linux-2.6-tip

perf tools: Exit record if events have non matching sample type commit 6f9a4869e15de8af2fd715af876bc3e6b00757a7

Author: Jiri Olsa <[email protected]>
Date:   Thu Sep 29 19:49:50 2011 +0200
Quoted 5 lines
Quoted 2 lines

I've read the email trail.. I'll check the sources and try to come up with something.. ;)

Couldn't understand, will check if the patch was already applied, if so, why bother commenting, right? :-)

I meant solving the 'sample_type issue' some other 'better' way, probably along the lines you guys suggested.. ;)

jirka

author
#6 lore raw
In reply to Arnaldo Carvalho de Melo
Quoted 44 lines · Arnaldo Carvalho de Melo

Em Mon, Oct 03, 2011 at 12:22:35PM +0200, Jiri Olsa escreveu:

Quoted 43 lines · Arnaldo Carvalho de Melo
Quoted 28 lines

Em Thu, Sep 29, 2011 at 06:01:08PM +0200, Jiri Olsa escreveu:

Quoted 9 lines

The event processing relies on all events having the same sample_type.

This is being checked when the session is being opened read only. It also needs to be checked when we do record, since events could be read during processing build IDs at the end of the record command.

If we process events with different sample_type the processing might skip some events or hang.

Quoted 8 lines

Following command hangs on my setup:

  ./perf record -o perf.data -e ext4:ext4_mb_new_group_pa \
   -e LLC-loads -- date '+%F'

because hardware and tracepoint events have different sample type.

With the patch applied the record command displays "Non matching sample_type" message and exits.

That is way too cryptic :-\

What is that makes the sample type not match in this case? Can we make it match instead?

This is something to be properly fixed by _allowing_ non matching sample types, the evsel/evlist abstractions are getting we close but not there yet, multiple files in a perf.data/ directory are needed.

Quoted 5 lines

Till then can you check if we can make it match or else just say that the mix of events is not yet supported, please collect them in different sessions or something along those lines?

- Arnaldo

hi,
thanks for comments..
I just was this got in the tip tree git://tesla.tglx.de/git/linux-2.6-tip

perf tools: Exit record if events have non matching sample type commit 6f9a4869e15de8af2fd715af876bc3e6b00757a7

Author: Jiri Olsa <[email protected]>
Date:   Thu Sep 29 19:49:50 2011 +0200
Quoted 5 lines
Quoted 2 lines

I've read the email trail.. I'll check the sources and try to come up with something.. ;)

Couldn't understand, will check if the patch was already applied, if so, why bother commenting, right? :-)

ops, I mixed my branches, the change was not commited yet

sry, jirka

#7 lore raw
In reply to Jiri Olsa

I installed the latest kernel and found without such patch( not sure if other patches were added besides this one). That following command works fine. perf record -o perf.data -e ext3:ext3_request_inode -e LLC-loads -- date '+%F'

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Jiri Olsa
Sent: Friday, September 30, 2011 12:01 AM
To: [email protected]; [email protected]; [email protected]; [email protected]
Cc: [email protected]; Jiri Olsa
Subject: [PATCH] perf tools: Exit recording if events have non matching sample type

The event processing relies on all events having the same sample_type.

This is being checked when the session is being opened read only. It also needs to be checked when we do record, since events could be read during processing build IDs at the end of the record command.

If we process events with different sample_type the processing might skip some events or hang.

Following command hangs on my setup:
./perf record -o perf.data -e ext4:ext4_mb_new_group_pa \
-e LLC-loads -- date '+%F'

because hardware and tracepoint events have different sample type.

With the patch applied the record command displays "Non matching sample_type" message and exits.

---
 tools/perf/builtin-record.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
tools/perf/builtin-record.c +6 -0
index f4c3fbe..71e2c4e 100644
@@ -832,6 +832,12 @@ int cmd_record(int argc, const char **argv, const char *prefix __used)
 		goto out_symbol_exit;
 	}
 
+	if (!perf_evlist__valid_sample_type(evsel_list)) {
+		pr_err("Non matching sample_type\n");
+		err = -EINVAL;
+		goto out_symbol_exit;
+	}
+
 	if (target_pid != -1)
 		target_tid = target_pid;
 
Signature · 7 lines
1.7.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
author
#8 lore raw
Quoted 2 lines · Anhua

I installed the latest kernel and found without such patch( not sure if other patches were added besides this one). That following command works fine. perf record -o perf.data -e ext3:ext3_request_inode -e LLC-loads -- date '+%F'

hi,
was there any ext3 event stored? The issue should be hit when processing stored events.. either in the atexit code or during report.

Following command freezes for me on 3.1.0-rc10-tip+:
./perf record -o perf.data -e ext4:ext4_request_inode -e LLC-loads -- date '+%F'

wbr,
jirka

Quoted 56 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Jiri Olsa
Sent: Friday, September 30, 2011 12:01 AM
To: [email protected]; [email protected]; [email protected]; [email protected]
Cc: [email protected]; Jiri Olsa
Subject: [PATCH] perf tools: Exit recording if events have non matching sample type

The event processing relies on all events having the same sample_type.

This is being checked when the session is being opened read only. It also needs to be checked when we do record, since events could be read during processing build IDs at the end of the record command.

If we process events with different sample_type the processing might skip some events or hang.

Following command hangs on my setup:

  ./perf record -o perf.data -e ext4:ext4_mb_new_group_pa \
   -e LLC-loads -- date '+%F'

because hardware and tracepoint events have different sample type.

With the patch applied the record command displays "Non matching sample_type" message and exits.

---
 tools/perf/builtin-record.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
tools/perf/builtin-record.c +6 -0
index f4c3fbe..71e2c4e 100644
@@ -832,6 +832,12 @@ int cmd_record(int argc, const char **argv, const char *prefix __used)
 		goto out_symbol_exit;
 	}
 
+	if (!perf_evlist__valid_sample_type(evsel_list)) {
+		pr_err("Non matching sample_type\n");
+		err = -EINVAL;
+		goto out_symbol_exit;
+	}
+
 	if (target_pid != -1)
 		target_tid = target_pid;
 
Signature · 7 lines
1.7.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
#9 lore raw
Quoted 11 lines · Jiri Olsa
Quoted 2 lines · Anhua

I installed the latest kernel and found without such patch( not sure if other patches were added besides this one). That following command works fine. perf record -o perf.data -e ext3:ext3_request_inode -e LLC-loads -- date '+%F'

hi,
was there any ext3 event stored? The issue should be hit when processing stored events.. either in the atexit code or during report.

Following command freezes for me on 3.1.0-rc10-tip+:
./perf record -o perf.data -e ext4:ext4_request_inode -e LLC-loads -- date '+%F'

With -B and it doesn't for me. Without the -B argument the backtrace shows it stuck here:

#0 0x0000000000460d91 in fetch_mmaped_event (session=0x13dd510, head=3464, mmap_size=21112,

    buf=0x7fbd1d016000 "") at util/session.c:988
#1  0x0000000000461074 in __perf_session__process_events
(session=0x13dd510, data_offset=456,
    data_size=20656, file_size=21112, ops=0x77ad40) at util/session.c:1063
#2  0x000000000041dcc4 in process_buildids () at builtin-record.c:377
#3  0x000000000041dd2e in atexit_header () at builtin-record.c:388
#4  0x0000003e96e38991 in __run_exit_handlers () from /lib64/libc.so.6
#5  0x0000003e96e38a15 in exit () from /lib64/libc.so.6
#6  0x00000000004126f8 in handle_internal_command (argc=11,

argv=0x7fffade3f3d0) at perf.c:358
#7 0x000000000041283d in run_argv (argcp=0x7fffade3f2bc, argv=0x7fffade3f2b0) at perf.c:402
#8 0x0000000000412b24 in main (argc=11, argv=0x7fffade3f3d0) at perf.c:512

It's stuck in a loop on this:
remap:

	buf = mmap(NULL, mmap_size, mmap_prot, mmap_flags, session->fd,
		   file_offset);
	if (buf == MAP_FAILED) {
		pr_err("failed to mmap file\n");
		err = -errno;
		goto out_err;
	}
	mmaps[map_idx] = buf;
	map_idx = (map_idx + 1) & (ARRAY_SIZE(mmaps) - 1);
	file_pos = file_offset + head;

more:

	event = fetch_mmaped_event(session, head, mmap_size, buf);
	if (!event) {
		if (mmaps[map_idx]) {
			munmap(mmaps[map_idx], mmap_size);
			mmaps[map_idx] = NULL;
		}

		page_offset = page_size * (head / page_size);
		file_offset += page_offset;
		head -= page_offset;
		goto remap;
	}

head < page_size, page_offset stays 0.

David

Quoted 65 lines

wbr,
jirka

Quoted 56 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Jiri Olsa
Sent: Friday, September 30, 2011 12:01 AM
To: [email protected]; [email protected]; [email protected]; [email protected]
Cc: [email protected]; Jiri Olsa
Subject: [PATCH] perf tools: Exit recording if events have non matching sample type

The event processing relies on all events having the same sample_type.

This is being checked when the session is being opened read only. It also needs to be checked when we do record, since events could be read during processing build IDs at the end of the record command.

If we process events with different sample_type the processing might skip some events or hang.

Following command hangs on my setup:

  ./perf record -o perf.data -e ext4:ext4_mb_new_group_pa \
   -e LLC-loads -- date '+%F'

because hardware and tracepoint events have different sample type.

With the patch applied the record command displays "Non matching sample_type" message and exits.

---
 tools/perf/builtin-record.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
tools/perf/builtin-record.c +6 -0
index f4c3fbe..71e2c4e 100644
@@ -832,6 +832,12 @@ int cmd_record(int argc, const char **argv, const char *prefix __used)
 		goto out_symbol_exit;
 	}
 
+	if (!perf_evlist__valid_sample_type(evsel_list)) {
+		pr_err("Non matching sample_type\n");
+		err = -EINVAL;
+		goto out_symbol_exit;
+	}
+
 	if (target_pid != -1)
 		target_tid = target_pid;
 
Signature · 7 lines
1.7.4

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

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

#10 lore raw
Quoted 11 lines · David Ahern
Quoted 8 lines · Jiri Olsa
Quoted 2 lines · Anhua

I installed the latest kernel and found without such patch( not sure if other patches were added besides this one). That following command works fine. perf record -o perf.data -e ext3:ext3_request_inode -e LLC-loads -- date '+%F'

hi,
was there any ext3 event stored? The issue should be hit when processing stored events.. either in the atexit code or during report.

Quoted 6 lines
Quoted 3 lines

Following command freezes for me on 3.1.0-rc10-tip+:
./perf record -o perf.data -e ext4:ext4_request_inode -e LLC-loads -- date '+%F'

With -B and it doesn't for me. Without the -B argument the backtrace shows it stuck here:

While it doesn't hang with the -B, the data file is worthless -- non-matching sample type. :-)

David

author
#12 lore raw
In reply to David Ahern
Quoted 11 lines · David Ahern
Quoted 8 lines · Jiri Olsa
Quoted 2 lines · Anhua

I installed the latest kernel and found without such patch( not sure if other patches were added besides this one). That following command works fine. perf record -o perf.data -e ext3:ext3_request_inode -e LLC-loads -- date '+%F'

hi,
was there any ext3 event stored? The issue should be hit when processing stored events.. either in the atexit code or during report.

Quoted 6 lines
Quoted 3 lines

Following command freezes for me on 3.1.0-rc10-tip+:
./perf record -o perf.data -e ext4:ext4_request_inode -e LLC-loads -- date '+%F'

With -B and it doesn't for me. Without the -B argument the backtrace shows it stuck here:

yep, it get's stuck in processig build ids.

All the events are traversed and processing fails with event which does not support configured sample_type.. the event is skipped, but with no idea about the actual event length (not sure about the details right now), thus screwing processing of following events.. ending up in infinite loop ;)

jirka

Quoted 115 lines

#0 0x0000000000460d91 in fetch_mmaped_event (session=0x13dd510, head=3464, mmap_size=21112,

    buf=0x7fbd1d016000 "") at util/session.c:988
#1  0x0000000000461074 in __perf_session__process_events
(session=0x13dd510, data_offset=456,
    data_size=20656, file_size=21112, ops=0x77ad40) at util/session.c:1063
#2  0x000000000041dcc4 in process_buildids () at builtin-record.c:377
#3  0x000000000041dd2e in atexit_header () at builtin-record.c:388
#4  0x0000003e96e38991 in __run_exit_handlers () from /lib64/libc.so.6
#5  0x0000003e96e38a15 in exit () from /lib64/libc.so.6
#6  0x00000000004126f8 in handle_internal_command (argc=11,

argv=0x7fffade3f3d0) at perf.c:358
#7 0x000000000041283d in run_argv (argcp=0x7fffade3f2bc, argv=0x7fffade3f2b0) at perf.c:402
#8 0x0000000000412b24 in main (argc=11, argv=0x7fffade3f3d0) at perf.c:512

It's stuck in a loop on this:
remap:

	buf = mmap(NULL, mmap_size, mmap_prot, mmap_flags, session->fd,
		   file_offset);
	if (buf == MAP_FAILED) {
		pr_err("failed to mmap file\n");
		err = -errno;
		goto out_err;
	}
	mmaps[map_idx] = buf;
	map_idx = (map_idx + 1) & (ARRAY_SIZE(mmaps) - 1);
	file_pos = file_offset + head;

more:

	event = fetch_mmaped_event(session, head, mmap_size, buf);
	if (!event) {
		if (mmaps[map_idx]) {
			munmap(mmaps[map_idx], mmap_size);
			mmaps[map_idx] = NULL;
		}

		page_offset = page_size * (head / page_size);
		file_offset += page_offset;
		head -= page_offset;
		goto remap;
	}

head < page_size, page_offset stays 0.

David

Quoted 65 lines

wbr,
jirka

Quoted 56 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Jiri Olsa
Sent: Friday, September 30, 2011 12:01 AM
To: [email protected]; [email protected]; [email protected]; [email protected]
Cc: [email protected]; Jiri Olsa
Subject: [PATCH] perf tools: Exit recording if events have non matching sample type

The event processing relies on all events having the same sample_type.

This is being checked when the session is being opened read only. It also needs to be checked when we do record, since events could be read during processing build IDs at the end of the record command.

If we process events with different sample_type the processing might skip some events or hang.

Following command hangs on my setup:

  ./perf record -o perf.data -e ext4:ext4_mb_new_group_pa \
   -e LLC-loads -- date '+%F'

because hardware and tracepoint events have different sample type.

With the patch applied the record command displays "Non matching sample_type" message and exits.

---
 tools/perf/builtin-record.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
tools/perf/builtin-record.c +6 -0
index f4c3fbe..71e2c4e 100644
@@ -832,6 +832,12 @@ int cmd_record(int argc, const char **argv, const char *prefix __used)
 		goto out_symbol_exit;
 	}
 
+	if (!perf_evlist__valid_sample_type(evsel_list)) {
+		pr_err("Non matching sample_type\n");
+		err = -EINVAL;
+		goto out_symbol_exit;
+	}
+
 	if (target_pid != -1)
 		target_tid = target_pid;
 
Signature · 7 lines
1.7.4

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

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

author
#11 lore raw
In reply to David Ahern
Quoted 18 lines · David Ahern
Quoted 15 lines · David Ahern
Quoted 11 lines · Jiri Olsa
Quoted 2 lines · Anhua

I installed the latest kernel and found without such patch( not sure if other patches were added besides this one). That following command works fine. perf record -o perf.data -e ext3:ext3_request_inode -e LLC-loads -- date '+%F'

hi,
was there any ext3 event stored? The issue should be hit when processing stored events.. either in the atexit code or during report.

Following command freezes for me on 3.1.0-rc10-tip+:
./perf record -o perf.data -e ext4:ext4_request_inode -e LLC-loads -- date '+%F'

Quoted 5 lines
Quoted 2 lines

With -B and it doesn't for me. Without the -B argument the backtrace shows it stuck here:

While it doesn't hang with the -B, the data file is worthless -- non-matching sample type. :-)

right :) there's check when the session is opened for reading

jirka