public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
  • [parent not found: <1277992175-19821-4-git-send-email-bp@amd64.org>]
  • * [RFC PATCH 00/21] RAS daemon prototype, v1
    @ 2010-07-01 15:55 Borislav Petkov
      2010-07-01 15:55 ` [PATCH 03/21] perf_events: Add a helper to search for an event in a context Borislav Petkov
      0 siblings, 1 reply; 8+ messages in thread
    From: Borislav Petkov @ 2010-07-01 15:55 UTC (permalink / raw)
      To: linux-kernel
    
    From: Borislav Petkov <borislav.petkov@amd.com>
    
    (resubmitting since lkml wasn't on CC list)
    
    Hi guys,
    
    here's the first rough version of all the jerky code that attempts to
    implement a RAS daemon listening for MCEs using perf. This is a preview
    code only, I still need to figure out how to do the sample parsing
    the easiest and flesh out the daemon functionality a bit more. Also,
    I wanted to reuse as much code as possible therefore a lot had to be
    reengineered with the perf tool and all its library-like compilation
    units.
    
    With this, you can do
    
    make perf
    
    or
    
    make ras
    
    and build the respective tool.
    
    Even though I tried to split the patchset for easier review, please bear
    in mind that there are some fat guys there (241K is the biggest one).
    However, they don't do anything special except moving code around. As
    such, they might not appear on lkml due to vger size constraints so I've
    upped the whole patchset also at
    
    git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp.git perf-v1
    
    The patchset is based on tip/perf/core from last week. Here are some
    more details to some of the patches individually:
    
    2: enables the mce tracepoint unconditionally. I had a problem with
    perf_event_attr.sample_period which is checked in perf_swevent_add().
    Currently, I'm setting it to ULLONG_MAX but this is icky. I'd much
    rather have the check do something like
    
    	if (event->type != PERF_EVENT_TYPE_PERSISTENT)
    		if (!hwc->sample_period)
    			return;
    
    or similar.
    
    4: sys_perf_event_open needs to know about already allocated and
    enabled events.
    
    5-10: carves out a bunch of generic perf compilation units into a common
    lib. Split into 5 patches for easier review.
    
    12-14: those are pulled in when exporting parse_events.c for external use.
    
    16: lib/perf/misc.c contains functions and global variables like
    pager_in_use() or perf_guest or usage_with_options() which are used in
    generic utilities but are strictly perf-specific. Long term we should
    strive in making the library self-contained and getting rid of those.
    
    19-20: those are only needed for testing, they'll go in over the edac
    tree in the next merge window. Added for completeness here.
    
    21: only bare-bones implementation, needs a lot of fleshing out
    
    Anyways, please have a look and let me know either way :)
    
    Thanks,
    Boris.
    
    ^ permalink raw reply	[flat|nested] 8+ messages in thread

    end of thread, other threads:[~2010-07-01 21:51 UTC | newest]
    
    Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
    -- links below jump to the message on this page --
         [not found] <1277992175-19821-1-git-send-email-bp@amd64.org>
         [not found] ` <1277992175-19821-6-git-send-email-bp@amd64.org>
         [not found]   ` <20100701154737.GE8902@ghostprotocols.net>
         [not found]     ` <20100701161054.GF8902@ghostprotocols.net>
    2010-07-01 16:17       ` [PATCH 05/21] perf: rewire generic library stuff, p1 Borislav Petkov
    2010-07-01 17:14         ` Arnaldo Carvalho de Melo
    2010-07-01 20:14           ` Borislav Petkov
    2010-07-01 21:13             ` Arnaldo Carvalho de Melo
    2010-07-01 21:37               ` Borislav Petkov
         [not found] ` <1277992175-19821-4-git-send-email-bp@amd64.org>
         [not found]   ` <1277992805.1917.142.camel@laptop>
         [not found]     ` <20100701141352.GA17823@aftab>
         [not found]       ` <20100701161133.GE10616@nowhere>
         [not found]         ` <1278000765.1917.220.camel@laptop>
         [not found]           ` <20100701161448.GF10616@nowhere>
    2010-07-01 16:24             ` [PATCH 03/21] perf_events: Add a helper to search for an event in a context Borislav Petkov
    2010-07-01 16:27               ` Frederic Weisbecker
    2010-07-01 15:55 [RFC PATCH 00/21] RAS daemon prototype, v1 Borislav Petkov
    2010-07-01 15:55 ` [PATCH 03/21] perf_events: Add a helper to search for an event in a context Borislav Petkov
    

    This is a public inbox, see mirroring instructions
    for how to clone and mirror all data and code used for this inbox