20 Dec, 2008

2 commits

  • Impact: move the BTS buffer accounting to the mlock bucket

    Add alloc_locked_buffer() and free_locked_buffer() functions to mm/mlock.c
    to kalloc a buffer and account the locked memory to current.

    Account the memory for the BTS buffer to the tracer.

    Signed-off-by: Markus Metzger
    Signed-off-by: Ingo Molnar

    Markus Metzger
     
  • Impact: introduce new ptrace facility

    Add arch_ptrace_untrace() function that is called when the tracer
    detaches (either voluntarily or when the tracing task dies);
    ptrace_disable() is only called on a voluntary detach.

    Add ptrace_fork() and arch_ptrace_fork(). They are called when a
    traced task is forked.

    Clear DS and BTS related fields on fork.

    Release DS resources and reclaim memory in ptrace_untrace(). This
    releases resources already when the tracing task dies. We used to do
    that when the traced task dies.

    Signed-off-by: Markus Metzger
    Signed-off-by: Ingo Molnar

    Markus Metzger
     

19 Dec, 2008

3 commits


18 Dec, 2008

32 commits

  • Impact: remove dead code

    struct ring_buffer.size is not set after ring_buffer is initialized
    or resized. it is always 0.

    we can use "buffer->pages * PAGE_SIZE" to get ring_buffer's size

    Signed-off-by: Lai Jiangshan
    Signed-off-by: Ingo Molnar

    Lai Jiangshan
     
  • Impact: fix occasionally incorrect trace output

    The tracing code has interesting varieties of printing out task state.

    Unfortunalely only one of the instances is correct as it copies the
    code from sched.c:sched_show_task(). The others are plain wrong as
    they treatthe bitfield as an integer offset into the character
    array. Also the size check of the character array is wrong as it
    includes the trailing \0.

    Use a common state decoder inline which does the Right Thing.

    Signed-off-by: Thomas Gleixner
    Acked-by: Steven Rostedt
    Signed-off-by: Ingo Molnar

    Thomas Gleixner
     
  • Impact: enhancement

    Ingo Molnar has asked about a way to remove items from the filter
    lists. Currently, you can only add or replace items. The way
    items are added to the list is through opening one of the list
    files (set_ftrace_filter or set_ftrace_notrace) via append.
    If the file is opened for truncate, the list is cleared.

    echo spin_lock > /debug/tracing/set_ftrace_filter

    The above will replace the list with only spin_lock

    echo spin_lock >> /debug/tracing/set_ftrace_filter

    The above will add spin_lock to the list.

    Now this patch adds:

    echo '!spin_lock' >> /debug/tracing/set_ftrace_filter

    This will remove spin_lock from the list.

    The limited glob features of these lists also can be notted.

    echo '!spin_*' >> /debug/tracing/set_ftrace_filter

    This will remove all functions that start with 'spin_'

    Note:

    echo '!spin_*' > /debug/tracing/set_ftrace_filter

    will simply clear out the list (notice the '>' instead of '>>')

    Signed-off-by: Steven Rostedt
    Signed-off-by: Ingo Molnar

    Steven Rostedt
     
  • Impact: clean up

    Andrew Morton suggested to use the stack_tracer_enabled variable
    to decide whether or not to start stack tracing on bootup.
    This lets us remove the start_stack_trace variable.

    Reported-by: Andrew Morton
    Signed-off-by: Steven Rostedt
    Signed-off-by: Ingo Molnar

    Steven Rostedt
     
  • Impact: enhancement to stack tracer

    The stack tracer currently is either on when configured in or
    off when it is not. It can not be disabled when it is configured on.
    (besides disabling the function tracer that it uses)

    This patch adds a way to enable or disable the stack tracer at
    run time. It defaults off on bootup, but a kernel parameter 'stacktrace'
    has been added to enable it on bootup.

    A new sysctl has been added "kernel.stack_tracer_enabled" to let
    the user enable or disable the stack tracer at run time.

    Signed-off-by: Steven Rostedt
    Signed-off-by: Ingo Molnar

    Steven Rostedt
     
  • Ingo Molnar
     
  • * 'i2c-fixes' of git://aeryn.fluff.org.uk/bjdooks/linux:
    i2c-s3c2410: fix check for being in suspend.
    i2c-cpm: Detect and report NAK right away instead of timing out

    Linus Torvalds
     
  • * 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mfasheh/ocfs2:
    ocfs2: Add JBD2 compat feature bit.
    ocfs2: Always update xattr search when creating bucket.

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6:
    USB: pl2303: add id for Hewlett-Packard LD220-HP POS pole display
    USB: set correct configuration in probe of ti_usb_3410_5052
    USB: add 5372:2303 to pl2303
    USB: skip Set-Interface(0) if already in altsetting 0
    USB: fix comment about endianness of descriptors
    USB: Documentation/usb/gadget_serial.txt: update to match driver use_acm behaviour
    usbmon: drop bogus 0t from usbmon.txt
    USB: gadget: fix rndis working at high speed
    USB: ftdi_sio: Adding Ewert Energy System's CANdapter PID
    USB: tty: SprogII DCC controller identifiers
    usb-storage: update unusual_devs entry for Nokia 5310
    USB: Unusual devs patch for Nokia 3500c
    USB: storage: unusual_devs.h: Nokia 3109c addition
    USB: fix problem with usbtmc driver not loading properly

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6:
    STAGING: Move staging drivers back to staging-specific menu
    driver core: add newlines to debugging enabled/disabled messages
    xilinx_hwicap: remove improper wording in license statement
    driver core: fix using 'ret' variable in unregister_dynamic_debug_module

    Linus Torvalds
     
  • While testing a kernel with memory poisoning enabled, I saw some warnings
    about the redzone getting clobbered when chasing DFS referrals. The
    buffer allocation for the unicode converted version of the searchName is
    too small and needs to take null termination into account.

    Signed-off-by: Jeff Layton
    Acked-by: Steve French
    Signed-off-by: Linus Torvalds

    Jeff Layton
     
  • * 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/galak/powerpc:
    powerpc: Fix corruption error in rh_alloc_fixed()
    powerpc/fsl-booke: Fix the miss interrupt restore

    Linus Torvalds
     
  • Signed-off-by: Dmitry Baryshkov
    Signed-off-by: Greg Kroah-Hartman

    Dmitry Baryshkov
     
  • Both messages are missing the newline and thus dmesg output gets
    scrambled.

    Signed-off-by: Marcel Holtmann
    Signed-off-by: Greg Kroah-Hartman

    Marcel Holtmann
     
  • GPLv2 doesn't allow additional restrictions to be imposed on any
    code, so this wording needs to be removed from these files.

    Signed-off-by: Stephen Neuendorffer
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • The 'ret' variable is assigned, but not used in the return statement. Fix this.

    Signed-off-by: Johann Felix Soden
    Acked-by: Jason Baron
    Signed-off-by: Greg Kroah-Hartman

    Johann Felix Soden
     
  • Add id for the Hewlett-Packard LD220-HP POS pole display.

    Bus 002 Device 002: ID 03f0:3524 Hewlett-Packard

    Signed-off-by: Mike Provencher
    Signed-off-by: Greg Kroah-Hartman

    Mike Provencher
     
  • This driver transfers firmware. It may just as well set the correct
    configuration.

    Signed-off-by: Oliver Neukum
    Signed-off-by: Greg Kroah-Hartman

    Oliver Neukum
     
  • This patch adds the "Superial" USB-Serial converter to pl2303 so that it
    is detected, by the correct driver. Adds the relevant vendor:product
    (5372:2303) to the device tables in pl2303.c & pl2303.h. The patch has
    been tested against 2.6.24-22-generic.

    Signed-off-by: Matthew D Arnold
    Signed-off-by: Greg Kroah-Hartman

    Matthew Arnold
     
  • When a driver unbinds from an interface, usbcore always sends a
    Set-Interface request to reinstall altsetting 0. Unforunately, quite
    a few devices have buggy firmware that crashes when it receives this
    request.

    To avoid such problems, this patch (as1180) arranges to send the
    Set-Interface request only when the interface is not already in
    altsetting 0.

    Signed-off-by: Alan Stern
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     
  • This patch fixes a comment and clarifies the documentation about the
    endianness of descriptors. The current policy is that descriptors will
    be little-endian at the API even on big-endian systems; however the
    /proc/bus/usb API predates this policy and presents descriptors with
    some multibyte fields byte-swapped.

    Signed-off-by: Phil Endecott
    Signed-off-by: Alan Stern
    Signed-off-by: Greg Kroah-Hartman

    Phil Endecott
     
  • Commit 7bb5ea54 (usb gadget serial: use composite gadget framework)
    changed the default for the use_acm parameter from 0 to 1.
    Update the documentation to match.

    Signed-off-by: Peter Korsgaard
    Acked-by: David Brownell
    Signed-off-by: Greg Kroah-Hartman

    Peter Korsgaard
     
  • The example is incorrect: there is no 0t socket (the '1t' format has no
    bus number in it). Also, correct the broken sentence for USB Tag.

    Signed-off-by: Pete Zaitcev
    Signed-off-by: Greg Kroah-Hartman

    Pete Zaitcev
     
  • Fix a bug specific to highspeed mode in the recently updated RNDIS
    support: it wasn't setting up the high speed notification endpoint,
    which prevented high speed RNDIS links from working.

    Signed-off-by: David Brownell
    Tested-by: Anand Gadiyar
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    David Brownell
     
  • The following patch adds in the USB PID for Ewert Energy System's CANdapter
    device (CANBUS to USB-Serial which uses the FTDI 245R chipset) to the ftdi_sio
    device driver.

    The patch was tested successfully on Linux kernel 2.6.27 under Ubuntu.

    Relevant output from /proc/bus/usb/devices (With patch installed):

    T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 0
    D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
    P: Vendor=0403 ProdID=9f80 Rev= 6.00
    S: Manufacturer=Ewert Energy Systems
    S: Product=CANdapter
    S: SerialNumber=A6RGB3Z3
    C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr= 90mA
    I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=ftdi_sio
    E: Ad=81(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
    E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms

    Signed-off-by: Andrew Ewert
    Signed-off-by: Greg Kroah-Hartman

    Andrew Ewert
     
  • Someone on rmweb reminded me this had been overlooked from ages ago..

    Add the identifiers for the Sprog II USB. This is a DCC control interface
    using the FTDI-SIO hardware: http://www.sprog-dcc.co.uk/. People have been
    using it with insmod options for ages, this just puts it into the driver
    data.

    Signed-off-by: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Greg Kroah-Hartman

    Alan Cox
     
  • This patch (as1179) updates the unusual_devs entry for Nokia's 5310
    phone to include a more recent firmware revision.

    This fixes Bugzilla #12099.

    Signed-off-by: Alan Stern
    Tested-by: Robson Roberto Souza Peixoto
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     
  • T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 3 Spd=12 MxCh= 0
    D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
    P: Vendor=0421 ProdID=0060 Rev= 5.51
    S: Manufacturer=Nokia
    S: Product=Nokia 3500c
    S: SerialNumber=357687010280751
    C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=100mA
    I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
    E: Ad=81(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
    E: Ad=01(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms

    From: Ozan Sener
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Ozan Sener
     
  • 2.6.26(.x, cannot remember) could handle the microSD card in my Nokia
    3109c attached via USB as mass storage, 2.6.27(.x, up to and included
    2.6.27.8) cannot. Please find the attached patch which fixes this
    regression, and a copy of /proc/bus/usb/devices with my phone plugged in
    running with this patch on Frugalware.

    T: Bus=02 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#= 4 Spd=12 MxCh= 0
    D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
    P: Vendor=0421 ProdID=0063 Rev= 6.01
    S: Manufacturer=Nokia
    S: Product=Nokia 3109c
    S: SerialNumber=359561013742570
    C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=100mA
    I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
    E: Ad=81(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
    E: Ad=01(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms

    From: CSÉCSY László
    Cc: Phil Dibowitz
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    CSÉCSY László
     
  • The usbtmc driver forgot to export its device table to userspace.
    Without this, it is never loaded properly when such a device is seen by
    the system.

    Cc: Marcel Janssen
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • There is an error in rh_alloc_fixed() of the Remote Heap code:
    If there is at least one free block blk won't be NULL at the end of the
    search loop, so -ENOMEM won't be returned and the else branch of
    "if (bs == s || be == e)" will be taken, corrupting the management
    structures.

    Signed-off-by: Guillaume Knispel
    Acked-by: Timur Tabi
    Signed-off-by: Kumar Gala

    Guillaume Knispel
     
  • The commit e5e774d8833de1a0037be2384efccadf16935675
    powerpc/fsl-booke: Fix problem with _tlbil_va being interrupted
    introduce one issue. that casue the problem like this:

    Kernel BUG at c00b19fc [verbose debug info unavailable]
    Oops: Exception in kernel mode, sig: 5 [#1]
    MPC8572 DS
    Modules linked in:
    NIP: c00b19fc LR: c00b1c34 CTR: c0064e88
    REGS: ef02b7b0 TRAP: 0700 Not tainted (2.6.28-rc8-00057-g1bda712)
    MSR: 00021000 CR: 44048028 XER: 20000000
    TASK = ef02c000[1] 'init' THREAD: ef02a000
    GPR00: 00000001 ef02b860 ef02c000 eec201a0 c0dec2c0 00000000 000078a1 00000400
    GPR08: c00b4e40 000078a1 c048ec00 a1780000 44048028 ecd26917 00000001 ef02b948
    GPR16: ffffffea 0000020c 00000000 00000000 00000003 0000000a 00000000 000078a1
    GPR24: eec201a0 00000000 ed849000 00000400 ef02b95c 00000001 ef02b978 ef02b984
    NIP [c00b19fc] __find_get_block+0x24/0x238
    LR [c00b1c34] __getblk+0x24/0x2a0
    Call Trace:
    [ef02b860] [c017b768] generic_make_request+0x290/0x328 (unreliable)
    [ef02b8b0] [c00b1c34] __getblk+0x24/0x2a0
    [ef02b910] [c00b4ae4] __bread+0x14/0xf8
    [ef02b920] [c00fc228] ext2_get_branch+0xf0/0x138
    [ef02b940] [c00fcc88] ext2_get_block+0xb8/0x828
    [ef02ba00] [c00bbdc8] do_mpage_readpage+0x188/0x808
    [ef02bac0] [c00bc5b4] mpage_readpages+0xec/0x144
    [ef02bb50] [c00fba38] ext2_readpages+0x24/0x34
    [ef02bb60] [c006ade0] __do_page_cache_readahead+0x150/0x230
    [ef02bbb0] [c0064bdc] filemap_fault+0x31c/0x3e0
    [ef02bbf0] [c00728b8] __do_fault+0x60/0x5b0
    [ef02bc50] [c0011e0c] do_page_fault+0x2d8/0x4c4
    [ef02bd10] [c000ed90] handle_page_fault+0xc/0x80
    [ef02bdd0] [c00c7adc] set_brk+0x74/0x9c
    [ef02bdf0] [c00c9274] load_elf_binary+0x70c/0x1180
    [ef02be70] [c00945f0] search_binary_handler+0xa8/0x274
    [ef02bea0] [c0095818] do_execve+0x19c/0x1d4
    [ef02bed0] [c000766c] sys_execve+0x58/0x84
    [ef02bef0] [c000e950] ret_from_syscall+0x0/0x3c
    [ef02bfb0] [c009c6fc] sys_dup+0x24/0x6c
    [ef02bfc0] [c0001e04] init_post+0xb0/0xf0
    [ef02bfd0] [c046c1ac] kernel_init+0xcc/0xf4
    [ef02bff0] [c000e6d0] kernel_thread+0x4c/0x68
    Instruction dump:
    4bffffa4 813f000c 4bffffac 9421ffb0 7c0802a6 7d800026 90010054 bf210034
    91810030 7c0000a6 68008000 54008ffe 3d20c04e 3b29ffb8 38000008

    The issue was the beqlr returns early but we haven't reenabled interrupts.

    Signed-off-by: Dave Liu
    Signed-off-by: Kumar Gala

    Dave Liu
     

17 Dec, 2008

3 commits

  • Define the OCFS2_FEATURE_COMPAT_JBD2 bit in the filesystem header.

    Signed-off-by: Joel Becker
    Signed-off-by: Mark Fasheh

    Joel Becker
     
  • Impact: clean up

    Itroduce MCOUNT_SAVE/RESTORE_FRAME which allow us to
    save a number of lines on source level.

    Also fix a comment in ftrace.h.

    Signed-off-by: Ingo Molnar

    Cyrill Gorcunov
     
  • Impact: display ftrace_printk messages "as is"

    By default, ftrace_printk() messages find their output with some other
    informations like pid, caller, ...
    Sometimes a developer just want to have the ftrace_printk left "as is", without
    other information.

    This is done by providing a default-off option called printk-msg-only.
    To enable it, just do `echo printk-msg-only > /debugfs/tracing/trace_options`

    Before the patch:

    -2739 [000] 145.692153: __might_sleep: I'm an ftrace_printk msg in __might_sleep
    -2739 [000] 145.692155: __might_sleep: I'm another ftrace_printk msg in __might_sleep

    After the patch and the printk-msg-only option enabled:

    I'm an ftrace_printk msg in __might_sleep
    I'm another ftrace_printk msg in __might_sleep

    Signed-off-by: Frederic Weisbecker
    Cc: Steven Rostedt
    Signed-off-by: Ingo Molnar

    Frederic Weisbecker