lkml.org 
[lkml]   [2002]   [Oct]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH] x86 performance counters driver 3.0-pre2 for 2.5.44: [2/4] x86 support
    From
    Date
    Mikael Pettersson <mikpe@csd.uu.se> writes:

    > +struct per_cpu_cache { /* roughly a subset of perfctr_cpu_state */
    > + union {
    > + unsigned int p5_cesr;
    > + unsigned int id; /* cache owner id */
    > + } k1;
    > + struct {
    > + /* NOTE: these caches have physical indices, not virtual */
    > + unsigned int evntsel[18];
    > + unsigned int escr[0x3E2-0x3A0];
    > + unsigned int pebs_enable;
    > + unsigned int pebs_matrix_vert;
    > + } control;
    > +} __attribute__((__aligned__(SMP_CACHE_BYTES)));
    > +static struct per_cpu_cache per_cpu_cache[NR_CPUS] __cacheline_aligned;

    This should use per cpu data (asm/percpu.h) to save memory.

    -Andi
    -
    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/

    \
     
     \ /
      Last update: 2005-03-22 13:30    [W:4.299 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site