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


Groups > linux.kernel > #1197175

Re: [PATCH v5 2/4] bpf: Add new bpf map type to store the pointer to struct perf_event

From Alexei Starovoitov <ast@plumgrid.com>
Newsgroups linux.kernel
Subject Re: [PATCH v5 2/4] bpf: Add new bpf map type to store the pointer to struct perf_event
Date 2015-07-31 18:40 +0200
Message-ID <pSlvJ-2Sa-15@gated-at.bofh.it> (permalink)
References <pShip-53l-5@gated-at.bofh.it> <pShiq-53l-23@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 7/31/15 4:59 AM, Kaixu Xia wrote:
> +	/*
> +	 * prevent some crazy events so we can make our life easier
> +	 */
> +	if (event->attr.type != PERF_TYPE_RAW &&
> +	    event->attr.type != PERF_TYPE_HARDWARE) {
> +		perf_event_release_kernel(event);
> +		return ERR_PTR(-EINVAL);
> +	}

either remove the comment and make it clean.
--
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 v5 2/4] bpf: Add new bpf map type to store the pointer to  struct perf_event Alexei Starovoitov <ast@plumgrid.com> - 2015-07-31 18:40 +0200

csiph-web