Project

General

Profile

Actions

Bug #639

closed

Re-enabling an event is treated inconsistently

Added by Daniel U. Thibault over 10 years ago. Updated over 10 years ago.

Status:
Won't fix
Priority:
Low
Assignee:
-
Target version:
Start date:
09/24/2013
Due date:
% Done:

0%

Estimated time:

Description

In the kernel domain:

Once a kernel event has been created (enabled a first time) and later disabled, some of the enable-event event type options (--tracepoint, --probe, --function, --syscall) are ignored, others not. For instance, using a --probe, we have:

--tracepoint : ignored
--probe : complains if an argument is not supplied, otherwise ignored
--function : complains if an argument is not supplied, otherwise ignored
--syscall : complains that "per-syscall selection [is] not supported yet"

In user-space:

Using a --tracepoint (the only type possible):

--tracepoint : ignored
--probe : complains if an argument is not supplied, otherwise complains that the "event type [is] not available"
--function : (same as --probe)
--syscall : complains that the "event type [is] not available"

Clearly, in both domains the availability of the specified event type should be checked before checking for an event type option argument (this holds for --probe and --function). If the event type is available, then since the kernel does not support multiple events of the same name, unlike user-space, it should complain with an appropriate error message instead of ignoring the option (something like "Error: Multiple events of the same name are not supported").

I'm presuming that, in user-space, once new types become available (such as --probe) it will be possible to have multiple event entries of the same name distinguished by type, since we already have multiple event entries of the same name distinguished by attribute (loglevel, loglevel-only, filter).

Actions

Also available in: Atom PDF