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


Groups > linux.kernel > #1442488

Re: [PATCH v15 09/12] perf record: Read from overwritable ring buffer

From Jiri Olsa <jolsa@redhat.com>
Newsgroups linux.kernel
Subject Re: [PATCH v15 09/12] perf record: Read from overwritable ring buffer
Date 2016-07-13 16:10 +0200
Message-ID <rUt1o-47M-1@gated-at.bofh.it> (permalink)
References <rU2NA-3tA-5@gated-at.bofh.it> <rU2NB-3tA-47@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, Jul 12, 2016 at 10:00:09AM +0000, Wang Nan wrote:

SBIP

> +		default:
> +			goto state_err;
> +		}
> +		break;
> +	}
> +	default:
> +		WARN_ONCE(1, "Shouldn't get there\n");
> +	}
> +
> +	rec->overwrite_evt_state = state;
> +
> +	switch (action) {
> +	case PAUSE:
> +		perf_evlist__pause(rec->evlist);
> +		break;
> +	case RESUME:
> +		perf_evlist__resume(rec->evlist);
> +		break;

so this is called on evlist with uninitialized backward_mmap,
which makes above calls fail, but luckily we dont check the
return values

I think we could set some evlist flag to know we have backward
mmaps and skip this function completely if we dont have any

thanks,
jirka

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


Thread

[PATCH v15 09/12] perf record: Read from overwritable ring buffer Wang Nan <wangnan0@huawei.com> - 2016-07-12 12:10 +0200
  Re: [PATCH v15 09/12] perf record: Read from overwritable ring buffer Jiri Olsa <jolsa@redhat.com> - 2016-07-13 16:10 +0200
  Re: [PATCH v15 09/12] perf record: Read from overwritable ring buffer Jiri Olsa <jolsa@redhat.com> - 2016-07-13 16:10 +0200
  Re: [PATCH v15 09/12] perf record: Read from overwritable ring buffer Jiri Olsa <jolsa@redhat.com> - 2016-07-13 16:10 +0200

csiph-web