History

Merge tag 'perf-urgent-for-mingo-4.19-20180903' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/urgent

Pull perf/urgent fixes from Arnaldo Carvalho de Melo: Kernel: - Modify breakpoint fixes (Jiri Olsa) perf annotate: - Fix parsing aarch64 branch instructions after objdump update (Kim Phillips) - Fix parsing indirect calls in 'perf annotate' (Martin Liška) perf probe: - Ignore SyS symbols irrespective of endianness on PowerPC (Sandipan Das) perf trace: - Fix include path for asm-generic/unistd.h on arm64 (Kim Phillips) Core libraries: - Fix potential null pointer dereference in perf_evsel__new_idx() (Hisao Tanabe) - Use fixed size string for comms instead of scanf("%m"), that is not present in the bionic libc and leads to a crash (Chris Phlipot) - Fix bad memory access in trace info on 32-bit systems, we were reading 8 bytes from a 4-byte long variable when saving the command line in the perf.data file. (Chris Phlipot) Build system: - Streamline bpf examples and headers installation, clarifying some install messages. (Arnaldo Carvalho de Melo)

Ingo Molnar committed 8 years ago

Commit fa943512 parents 9a56827 4e67b2a15 files · +282 −39Browse files

Showing the changes to kernel (2 of 15 files). Show all

Unified · Split

2 files
  1. kernel/events/core.c +3 −8
  2. kernel/events/hw_breakpoint.c +6 −7
kernel/events/core.c+3−8
@@ -2867,16 +2867,11 @@ static int perf_event_modify_breakpoint(struct perf_event *bp, · 2866 unmodified lines
2867 _perf_event_disable(bp);2867 _perf_event_disable(bp);
2868 2868
2869 err = modify_user_hw_breakpoint_check(bp, attr, true);2869 err = modify_user_hw_breakpoint_check(bp, attr, true);
2870 if (err) {
2871 if (!bp->attr.disabled)
2872 _perf_event_enable(bp);
2873 2870
2874 return err;2871 if (!bp->attr.disabled)
2875 }
2876
2877 if (!attr->disabled)
2878 _perf_event_enable(bp);2872 _perf_event_enable(bp);
2879 return 0;2873
2874 return err;
2880}2875}
2881 2876
2882static int perf_event_modify_attr(struct perf_event *event,2877static int perf_event_modify_attr(struct perf_event *event,
kernel/events/hw_breakpoint.c+6−7
@@ -509,6 +509,8 @@ modify_user_hw_breakpoint_check(struct perf_event *bp, struct perf_event_attr *a · 508 unmodified lines
509 */509 */
510int modify_user_hw_breakpoint(struct perf_event *bp, struct perf_event_attr *attr)510int modify_user_hw_breakpoint(struct perf_event *bp, struct perf_event_attr *attr)
511{511{
512 int err;
513
512 /*514 /*
513 * modify_user_hw_breakpoint can be invoked with IRQs disabled and hence it515 * modify_user_hw_breakpoint can be invoked with IRQs disabled and hence it
514 * will not be possible to raise IPIs that invoke __perf_event_disable.516 * will not be possible to raise IPIs that invoke __perf_event_disable.
@@ -520,15 +522,12 @@ int modify_user_hw_breakpoint(struct perf_event *bp, struct perf_event_attr *att · 5 unmodified lines
520 else522 else
521 perf_event_disable(bp);523 perf_event_disable(bp);
522 524
523 if (!attr->disabled) {525 err = modify_user_hw_breakpoint_check(bp, attr, false);
524 int err = modify_user_hw_breakpoint_check(bp, attr, false);
525 526
526 if (err)527 if (!bp->attr.disabled)
527 return err;
528 perf_event_enable(bp);528 perf_event_enable(bp);
529 bp->attr.disabled = 0;529
530 }530 return err;
531 return 0;
532}531}
533EXPORT_SYMBOL_GPL(modify_user_hw_breakpoint);532EXPORT_SYMBOL_GPL(modify_user_hw_breakpoint);
534 533

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t